From a6a8e49af8c8172f4209dd94e65f53f17825cc44 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 21 十一月 2024 17:30:12 +0800 Subject: [PATCH] 项目管理 --- src/api/login.js | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 57 insertions(+), 3 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 7b7388f..a494c70 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -6,7 +6,7 @@ username, password, code, - uuid + uuid, } return request({ url: '/login', @@ -22,11 +22,19 @@ // 注册方法 export function register(data) { return request({ - url: '/register', + url: '/system/user/addAgency', headers: { isToken: false }, method: 'post', + data: data + }) +} +// 编辑机构 +export function editAgency(data) { + return request({ + url: `/system/user/editAgency`, + method: 'put', data: data }) } @@ -57,4 +65,50 @@ method: 'get', timeout: 20000 }) -} \ No newline at end of file +} + +// 获取字典 +export function getDict(type) { + return request({ + url: '/system/dictType/getDictDataByType', + headers: { + isToken: false + }, + method: 'get', + params: type + }) +} + +// 删除图片 +export function delPic(path) { + return request({ + url: '/common/removeFile', + method: 'delete', + 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 + }) +} -- Gitblit v1.9.2