|
@@ -74,6 +74,11 @@ public class TeachingController extends BaseController {
|
|
|
@ApiOperation(value = "教学点是否开启考生自主预约")
|
|
|
@PostMapping(value = "/selfApplyEnable")
|
|
|
public void selfApplyEnable(@ApiParam("教学点ID") @RequestParam Long id, @ApiParam("启用、禁用") @RequestParam Boolean enable) {
|
|
|
+ LoginUser loginUser = curLoginUser();
|
|
|
+ // 学校管理员无权限
|
|
|
+ if(loginUser.getRole() == Role.ADMIN){
|
|
|
+ throw new StatusException("无权限");
|
|
|
+ }
|
|
|
categoryService.selfApplyEnable(id, enable);
|
|
|
}
|
|
|
|