|
@@ -2,6 +2,9 @@ package com.qmth.exam.reserve.controller.student;
|
|
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
|
+import com.qmth.exam.reserve.bean.RichTextBean;
|
|
|
|
+import com.qmth.exam.reserve.bean.apply.ApplyTimePeriodResult;
|
|
|
|
+import com.qmth.exam.reserve.bean.apply.TicketInfo;
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -13,6 +16,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@Api(tags = "考生预约相关接口")
|
|
@Api(tags = "考生预约相关接口")
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/student")
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/student")
|
|
@@ -34,4 +40,43 @@ public class StudentApplyController extends BaseController {
|
|
//todo
|
|
//todo
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取考生预约-电子准考证")
|
|
|
|
+ @PostMapping(value = "/apply/ticket")
|
|
|
|
+ public TicketInfo ticket(@ApiParam("预约ID") @RequestParam Long applyId) {
|
|
|
|
+ //todo
|
|
|
|
+ return new TicketInfo();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "获取考试须知")
|
|
|
|
+ @PostMapping(value = "/exam/notice")
|
|
|
|
+ public RichTextBean examNotice(@ApiParam("预约ID") @RequestParam Long applyId) {
|
|
|
|
+ //todo
|
|
|
|
+ return new RichTextBean();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "获取考场引导")
|
|
|
|
+ @PostMapping(value = "/exam/room/guide")
|
|
|
|
+ public RichTextBean examRoomGuide(@ApiParam("预约ID") @RequestParam Long applyId) {
|
|
|
|
+ //todo
|
|
|
|
+ return new RichTextBean();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "获取可预约的“日期”列表")
|
|
|
|
+ @PostMapping(value = "/apply/date/list")
|
|
|
|
+ public List<String> dateList() {
|
|
|
|
+ List<String> dateList = new ArrayList<>();
|
|
|
|
+ dateList.add("20240401");
|
|
|
|
+ //todo
|
|
|
|
+ return dateList;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "获取可预约的“时段”列表")
|
|
|
|
+ @PostMapping(value = "/apply/time/period/list")
|
|
|
|
+ public ApplyTimePeriodResult timePeriodList(@ApiParam("考点ID") @RequestParam Long examSiteId,
|
|
|
|
+ @ApiParam("预约日期:yyyyMMdd") @RequestParam String date) {
|
|
|
|
+ ApplyTimePeriodResult result = new ApplyTimePeriodResult();
|
|
|
|
+ //todo
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|