|
@@ -4,10 +4,12 @@ import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
import com.qmth.exam.reserve.bean.Constants;
|
|
import com.qmth.exam.reserve.bean.Constants;
|
|
|
|
+import com.qmth.exam.reserve.bean.course.CourseVO;
|
|
import com.qmth.exam.reserve.bean.student.StudentInfo;
|
|
import com.qmth.exam.reserve.bean.student.StudentInfo;
|
|
import com.qmth.exam.reserve.bean.student.WechatBindReq;
|
|
import com.qmth.exam.reserve.bean.student.WechatBindReq;
|
|
import com.qmth.exam.reserve.config.SysProperty;
|
|
import com.qmth.exam.reserve.config.SysProperty;
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
|
|
+import com.qmth.exam.reserve.service.StudentCourseService;
|
|
import com.qmth.exam.reserve.service.StudentService;
|
|
import com.qmth.exam.reserve.service.StudentService;
|
|
import com.qmth.exam.reserve.weixin.OauthAccessTokenRequest;
|
|
import com.qmth.exam.reserve.weixin.OauthAccessTokenRequest;
|
|
import com.qmth.exam.reserve.weixin.response.OauthAccessTokenResponseJson;
|
|
import com.qmth.exam.reserve.weixin.response.OauthAccessTokenResponseJson;
|
|
@@ -19,6 +21,8 @@ import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@Api(tags = "【考生端】考生相关接口")
|
|
@Api(tags = "【考生端】考生相关接口")
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/student")
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/student")
|
|
@@ -30,6 +34,9 @@ public class StudentController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private StudentService studentService;
|
|
private StudentService studentService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentCourseService studentCourseService;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private SysProperty sysProperty;
|
|
private SysProperty sysProperty;
|
|
|
|
|
|
@@ -52,6 +59,12 @@ public class StudentController extends BaseController {
|
|
return studentService.findInfoByStudentId(curLoginStudent().getId());
|
|
return studentService.findInfoByStudentId(curLoginStudent().getId());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取考生科目列表")
|
|
|
|
+ @PostMapping(value = "/courses")
|
|
|
|
+ public List<CourseVO> studentCourses() {
|
|
|
|
+ return studentCourseService.getStudentCourses(curLoginStudent().getId());
|
|
|
|
+ }
|
|
|
|
+
|
|
@Aac(strict = false, auth = false)
|
|
@Aac(strict = false, auth = false)
|
|
@ApiOperation(value = "获取微信用户的openid")
|
|
@ApiOperation(value = "获取微信用户的openid")
|
|
@PostMapping(value = "/wechat/get/openid")
|
|
@PostMapping(value = "/wechat/get/openid")
|