教授修改

This commit is contained in:
86182
2022-12-14 18:22:43 +08:00
parent 5f83b179bd
commit 22a7e416b1

View File

@@ -280,13 +280,13 @@ public class TeacherApi extends ApiBaseController {
* @return
*/
@PostMapping("/update-teacher")
public JsonResponse<TeacherVo> updateTeacher(@RequestBody Teacher teacher) {
public JsonResponse<Teacher> updateTeacher(@RequestBody Teacher teacher) {
if (teacher == null) {
return error("缺少必要参数");
}
try {
service.update(teacher);
} catch (XaskException e) {
} catch (Exception e) {
return error(e.getMessage());
}
return success(teacher);