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.ExaminationBasic;
import com.keao.edu.user.service.ExaminationBasicService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Joburgess
 * @Date 2020.06.18
 */
@RestController
@RequestMapping("examinationBasic")
@Api(tags = "考级项目服务")
public class ExaminationBasicController extends BaseController {

    @Autowired
    private ExaminationBasicService examinationBasicService;

    @ApiOperation("获取考级项目信息")
    @PostMapping(value = "/getInfo")
    public HttpResponseResult<ExaminationBasic> getInfo(Integer examId){
        return succeed(examinationBasicService.getInfo(examId));
    }
}
