|
@@ -6,9 +6,7 @@ import com.ym.mec.biz.service.SysExamSongAccompanimentService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RequestMapping("sysExamSongAccompaniment")
|
|
@@ -19,20 +17,6 @@ public class SysExamSongAccompanimentController extends BaseController {
|
|
|
@Autowired
|
|
|
private SysExamSongAccompanimentService sysExamSongAccompanimentService;
|
|
|
|
|
|
- @ApiOperation(value = "修改")
|
|
|
- @PostMapping("/update")
|
|
|
- public Object update(@RequestBody SysExamSongAccompaniment sysExamSongAccompaniment) {
|
|
|
- sysExamSongAccompanimentService.updateAcc(sysExamSongAccompaniment);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "删除")
|
|
|
- @PostMapping("/del/{id}")
|
|
|
- public Object del(@ApiParam(value = "收费类型编号", required = true) @PathVariable("id") Integer id) {
|
|
|
- sysExamSongAccompanimentService.delete(id);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "分页查询")
|
|
|
@GetMapping("/queryPage")
|
|
|
public Object queryPage(SysExamSongQueryInfo queryInfo) {
|
|
@@ -40,4 +24,10 @@ public class SysExamSongAccompanimentController extends BaseController {
|
|
|
return succeed(sysExamSongAccompanimentService.queryAccPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "详情")
|
|
|
+ @GetMapping("/getDetail")
|
|
|
+ public Object queryPage(Integer id) {
|
|
|
+ return succeed(sysExamSongAccompanimentService.get(id));
|
|
|
+ }
|
|
|
+
|
|
|
}
|