deason 1 rok temu
rodzic
commit
67df53eef6

+ 38 - 0
src/main/java/com/qmth/exam/reserve/bean/apply/ApplyVO.java

@@ -0,0 +1,38 @@
+package com.qmth.exam.reserve.bean.apply;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class ApplyVO {
+
+    @ApiModelProperty(value = "预约ID")
+    private Long applyId;
+
+    @ApiModelProperty(value = "预约的开始时间")
+    private Long timePeriodStart;
+
+    @ApiModelProperty(value = "预约的结束时间")
+    private Long timePeriodEnd;
+
+    @ApiModelProperty(value = "教学点名称")
+    private String teachingName;
+
+    @ApiModelProperty(value = "考点名称")
+    private String examSiteName;
+
+    @ApiModelProperty(value = "考点地址")
+    private String examSiteAddress;
+
+    @ApiModelProperty(value = "状态")
+    private String status;
+
+    @ApiModelProperty(value = "是否允许取消预约")
+    private Boolean allowCancel;
+
+    @ApiModelProperty(value = "是否显示电子准考证标志")
+    private Boolean showTicket;
+
+}

+ 15 - 0
src/main/java/com/qmth/exam/reserve/controller/student/StudentApplyController.java

@@ -4,6 +4,7 @@ import com.qmth.boot.api.annotation.Aac;
 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.ApplyVO;
 import com.qmth.exam.reserve.bean.apply.TicketInfo;
 import com.qmth.exam.reserve.controller.BaseController;
 import io.swagger.annotations.Api;
@@ -40,6 +41,20 @@ public class StudentApplyController extends BaseController {
         //todo
     }
 
+    @ApiOperation(value = "获取考生预约结果列表(个人中心)")
+    @PostMapping(value = "/apply/list")
+    public List<ApplyVO> list(@ApiParam("包含状态:多个值逗号分隔;不填时代表全部状态") @RequestParam String includeStatus) {
+        //todo
+        return new ArrayList<>();
+    }
+
+    @ApiOperation(value = "获取考生当前进行中的预约列表(首页)")
+    @PostMapping(value = "/apply/list/for/current")
+    public List<ApplyVO> listForCurrent() {
+        //todo
+        return new ArrayList<>();
+    }
+
     @ApiOperation(value = "获取考生预约-电子准考证")
     @PostMapping(value = "/apply/ticket")
     public TicketInfo ticket(@ApiParam("预约ID") @RequestParam Long applyId) {