From 2532353e2b4a256fba0fa93a768b389ccb631ee2 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 30 十一月 2023 16:11:43 +0800
Subject: [PATCH] 新增

---
 src/api/login.js |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/api/login.js b/src/api/login.js
index 85e37b4..0aa798c 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -82,4 +82,28 @@
     params: path,
     timeout: 20000
   })
+}
+
+// 校验用户名
+export function checkUserName(data) {
+  return request({
+    url: '/system/user/checkUserNameUnique',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 校验手机号
+export function checkPhone(data) {
+  return request({
+    url: '/system/user/checkPhoneUnique',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
 }
\ No newline at end of file

--
Gitblit v1.9.2