Jelajahi Sumber

曲库修改

zouxuan 4 tahun lalu
induk
melakukan
2df9a8ebd1

+ 1 - 4
mec-student/src/main/java/com/ym/mec/student/controller/StudentManageController.java

@@ -1,7 +1,5 @@
 package com.ym.mec.student.controller;
 
-import com.ym.mec.biz.dal.entity.Student;
-import com.ym.mec.biz.dal.entity.Teacher;
 import com.ym.mec.biz.service.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -99,8 +97,7 @@ public class StudentManageController extends BaseController {
         if (user == null) {
             return failed(HttpStatus.FORBIDDEN, "请登录");
         }
-        Student student = studentService.get(user.getId());
-        return succeed(student);
+        return succeed(studentService.get(user.getId()));
     }
 
     @ApiOperation(value = "根据群编号,获取群组所有成员基本信息")