Ver Fonte

以分页的形式查询 评卷员一览 的功能。

nikang há 6 anos atrás
pai
commit
623834c829

+ 28 - 6
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/request/GetMarkerReq.java

@@ -1,6 +1,7 @@
 package cn.com.qmth.examcloud.marking.api.request;
 
 import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+import cn.com.qmth.examcloud.marking.api.bean.MarkerBean;
 
 /**
  * @ClassName GetMarkerReq
@@ -11,16 +12,37 @@ import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
  */
 public class GetMarkerReq extends BaseRequest {
     private static final long serialVersionUID = 3317091136678710156L;
-    private long workId;
 
-    public long getWorkId() {
-        return workId;
+    private MarkerBean markerBean;
+
+    private Integer curPage;
+
+    private Integer pageSize;
+
+    public GetMarkerReq() {
     }
 
-    public void setWorkId(long workId) {
-        this.workId = workId;
+    public MarkerBean getMarkerBean() {
+        return markerBean;
     }
 
-    public GetMarkerReq() {
+    public void setMarkerBean(MarkerBean markerBean) {
+        this.markerBean = markerBean;
+    }
+
+    public Integer getCurPage() {
+        return curPage;
+    }
+
+    public void setCurPage(Integer curPage) {
+        this.curPage = curPage;
+    }
+
+    public Integer getPageSize() {
+        return pageSize;
+    }
+
+    public void setPageSize(Integer pageSize) {
+        this.pageSize = pageSize;
     }
 }

+ 67 - 0
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/response/GetMarkerResp.java

@@ -14,7 +14,34 @@ import java.util.List;
  */
 public class GetMarkerResp extends BaseResponse {
     private static final long serialVersionUID = 6101833806539265492L;
+    /**
+     * 当前页码
+     */
+    private long index = 1;
 
+    /**
+     * 每页的数量
+     */
+    private long limit = 10;
+
+    /**
+     * 当前页的数量
+     */
+    private long size;
+
+    /**
+     * 总记录数
+     */
+    private long total;
+
+    /**
+     * 总页数
+     */
+    private long pages;
+
+    /**
+     * 结果集
+     */
     private List<MarkerBean> markerList;
 
     public List<MarkerBean> getMarkerList() {
@@ -28,4 +55,44 @@ public class GetMarkerResp extends BaseResponse {
     public GetMarkerResp() {
 
     }
+
+    public long getIndex() {
+        return index;
+    }
+
+    public void setIndex(long index) {
+        this.index = index;
+    }
+
+    public long getLimit() {
+        return limit;
+    }
+
+    public void setLimit(long limit) {
+        this.limit = limit;
+    }
+
+    public long getSize() {
+        return size;
+    }
+
+    public void setSize(long size) {
+        this.size = size;
+    }
+
+    public long getTotal() {
+        return total;
+    }
+
+    public void setTotal(long total) {
+        this.total = total;
+    }
+
+    public long getPages() {
+        return pages;
+    }
+
+    public void setPages(long pages) {
+        this.pages = pages;
+    }
 }