|
@@ -59,7 +59,14 @@ public class SubjectChangeController extends BaseController {
|
|
|
@ApiOperation(value = "添加乐器更换")
|
|
|
@PostMapping("/add")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subjectChange/add')")
|
|
|
- public Object add(SubjectChange subjectChange) throws Exception {
|
|
|
+ public HttpResponseResult<SubjectChange> add(SubjectChange subjectChange) throws Exception {
|
|
|
return succeed(subjectChangeService.addChange(subjectChange));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "取消乐器更换")
|
|
|
+ @PostMapping("/cancel")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('subjectChange/cancel')")
|
|
|
+ public HttpResponseResult<SubjectChange> cancel(Integer id) throws Exception {
|
|
|
+ return succeed(subjectChangeService.cancel(id));
|
|
|
+ }
|
|
|
}
|