package com.keao.edu.controller;

import com.keao.edu.common.controller.BaseController;
import com.keao.edu.common.entity.HttpResponseResult;
import com.keao.edu.user.entity.ExamMusicTheory;
import com.keao.edu.user.service.ExamMusicTheoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Joburgess
 * @Date 2020.07.01
 */
@RestController
@RequestMapping("examMusicTheory")
@Api(tags = "考级乐理")
public class ExamMusicTheoryController extends BaseController {

    @Autowired
    private ExamMusicTheoryService examMusicTheoryService;

    @ApiOperation("获取项目乐理级别列表")
    @GetMapping(value = "/getTheoryLevelList")
    public HttpResponseResult<List<ExamMusicTheory>> getTheoryLevelList(Integer examId) {
        return succeed(examMusicTheoryService.getTheoryLevelList(examId));
    }

}
