package com.template.api;

import com.template.model.pojo.SmartExamtype;
import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: binguo
 * @Date: 2023/3/30 星期四 17:28
 * @Description: com.video.api
 * @Version: 1.0
 */
@RequestMapping("/api/smartExamtype")
@Api(tags = {"SmartExamtypeControllerAPI"}, value = "考试类型")
public interface SmartExamtypeControllerAPI {
    @PostMapping(value = "/insertSmartExamtype")
    @ApiOperation(value = "添加考试类型", notes = "添加考试类型数据", httpMethod = "POST")
    CommonResult insertSmartExamtype(@Validated @RequestBody SmartExamtype smartApply, BindingResult bindingResult);

    @PostMapping(value = "/updateSmartExamtypeById")
    @ApiOperation(value = "编辑考试类型数据", notes = "编辑考试类型数据", httpMethod = "POST")
    CommonResult updateSmartExamtypeById(@Validated @RequestBody SmartExamtype ra, BindingResult bindingResult);

    @GetMapping(value = "/queryPageSmartExamtype")
    @ApiOperation(value = "考试类型分页数据", notes = "考试类型分页数据", httpMethod = "GET")
    CommonResult queryPageSmartExamtypes(@RequestParam int currentPage, @RequestParam int pageCount, String name, Integer gradeId);

    @GetMapping(value = "/deleteSmartExamtypeById")
    @ApiOperation(value = "根据ID删除指定考试类型", notes = "根据ID删除指定考试类型", httpMethod = "GET")
    CommonResult deleteSmartExamtypeById(@RequestParam int id);
}
