From 8e68b3cefdf22c2eb37e02e2bafa06013bab5053 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 03 Sep 2021 17:56:39 +0800
Subject: [PATCH] 注册

---
 src/api/examapi/applyexam.js |  108 ++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 80 insertions(+), 28 deletions(-)

diff --git a/src/api/examapi/applyexam.js b/src/api/examapi/applyexam.js
index 08c81f2..5200c39 100644
--- a/src/api/examapi/applyexam.js
+++ b/src/api/examapi/applyexam.js
@@ -2,46 +2,98 @@
 
 
 export const getApplyList = (current, size, params) => {
-  return request({
-    url: '/api/apply/page',
-    method: 'get',
-    params: {
-      ...params,
-      current,
-      size
-    }
-  })
+    return request({
+        url: '/api/apply/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size
+        }
+    })
 }
 
 export const addApply = (row) => {
-  return request({
-    url: '/api/apply/submit',
-    method: 'post',
-    data: row
-  })
+    return request({
+        url: '/api/apply/save',
+        method: 'post',
+        data: row
+    })
+}
+
+
+export const cancelApply = (row) => {
+    return request({
+        url: '/api/apply/cancelApply',
+        method: 'post',
+        data: row
+    })
+}
+
+
+
+export const cancelApplyNotApplyId = (row) => {
+    return request({
+        url: '/api/apply/cancelApplyNotApplyId',
+        method: 'post',
+        data: row
+    })
+}
+
+export const updateApply = (row) => {
+    return request({
+        url: '/api/apply/submit',
+        method: 'post',
+        data: row
+    })
 }
 
 
 
 export const remove = (ids) => {
-  return request({
-    url: '/api/apply/remove',
-    method: 'post',
-    params: {
-      ids,
-    }
-  })
+    return request({
+        url: '/api/apply/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const addExam = (ids, examTime, startTime, number, endTime) => {
+    return request({
+        url: '/api/apply/batchExam',
+        method: 'post',
+        params: {
+            ids,
+            examTime,
+            startTime,
+            number,
+            endTime
+        }
+    })
 }
 
 
 
 
 export const getMenu = (id) => {
-  return request({
-    url: '/api/apply/detail',
-    method: 'get',
-    params: {
-      id,
-    }
-  })
+    return request({
+        url: '/api/apply/detail',
+        method: 'get',
+        params: {
+            id,
+        }
+    })
 }
+
+export const getSecurityApplyInfo = (id, userId) => {
+    return request({
+        url: '/api/apply/getSecurityApplyDetail',
+        method: 'get',
+        params: {
+            id,
+            userId
+        }
+    })
+}
\ No newline at end of file

--
Gitblit v1.9.3