From c4e67a8942e514b65ab41bb19781d50576c15725 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Sep 2021 19:56:52 +0800
Subject: [PATCH] 用户

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

diff --git a/src/api/examapi/applyexam.js b/src/api/examapi/applyexam.js
index 08c81f2..5530ebd 100644
--- a/src/api/examapi/applyexam.js
+++ b/src/api/examapi/applyexam.js
@@ -2,46 +2,92 @@
 
 
 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 = (params) => {
+    return request({
+        url: '/api/apply/batchExam',
+        method: 'post',
+        data: params
+    })
 }
 
 
 
 
 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