|
@@ -50,7 +50,7 @@ public class TeacherController extends BaseController {
|
|
* @param user
|
|
* @param user
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- // @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:list')")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@ApiOperation("查询教师列表")
|
|
@ApiOperation("查询教师列表")
|
|
public TableDataInfo list() {
|
|
public TableDataInfo list() {
|
|
@@ -59,10 +59,12 @@ public class TeacherController extends BaseController {
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:query')")
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 新增教师
|
|
* 新增教师
|
|
*/
|
|
*/
|
|
- // @PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:add')")
|
|
// @Log(title = "用户管理", businessType = BusinessType.INSERT)
|
|
// @Log(title = "用户管理", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
@ApiOperation("新增教师")
|
|
@ApiOperation("新增教师")
|
|
@@ -94,7 +96,7 @@ public class TeacherController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改教师
|
|
* 修改教师
|
|
*/
|
|
*/
|
|
- // @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:edit')")
|
|
// @Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
// @Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
@ApiOperation("修改教师")
|
|
@ApiOperation("修改教师")
|
|
@@ -120,7 +122,7 @@ public class TeacherController extends BaseController {
|
|
/**
|
|
/**
|
|
* 删除教师
|
|
* 删除教师
|
|
*/
|
|
*/
|
|
- // @PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:remove')")
|
|
// @Log(title = "用户管理", businessType = BusinessType.DELETE)
|
|
// @Log(title = "用户管理", businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{userIds}")
|
|
@DeleteMapping("/{userIds}")
|
|
@ApiOperation("删除教师")
|
|
@ApiOperation("删除教师")
|
|
@@ -132,4 +134,6 @@ public class TeacherController extends BaseController {
|
|
}
|
|
}
|
|
return toAjax(userService.deleteUserByIds(userIds));
|
|
return toAjax(userService.deleteUserByIds(userIds));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:teacher:resetPwd')")
|
|
}
|
|
}
|