|
|
@@ -4,6 +4,7 @@ import com.education.auth.AuthUtil;
|
|
|
import com.education.auth.LoginToken;
|
|
|
import com.education.business.service.education.StudentInfoService;
|
|
|
import com.education.business.session.StudentSession;
|
|
|
+import com.education.business.session.UserSessionContext;
|
|
|
import com.education.common.annotation.Param;
|
|
|
import com.education.common.annotation.ParamsType;
|
|
|
import com.education.common.annotation.ParamsValidate;
|
|
|
@@ -16,10 +17,8 @@ import com.education.common.utils.ResultCode;
|
|
|
import com.education.model.dto.StudentInfoDto;
|
|
|
import com.education.model.entity.StudentInfo;
|
|
|
import com.education.model.request.UserLoginRequest;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
@@ -86,4 +85,14 @@ public class StudentInfoController extends BaseController {
|
|
|
public Result updateInfo(@RequestBody StudentInfo studentInfo) {
|
|
|
return Result.success(studentInfoService.updateInfo(studentInfo));
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 获取学生基础信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("selectStudentInfo")
|
|
|
+ public Result selectStudentInfo() {
|
|
|
+ return Result.success(studentInfoService.selectStudentInfo());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|