From b609f77709c4646daf155341475ae14fc0c7943d Mon Sep 17 00:00:00 2001 From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com> Date: 星期五, 27 六月 2025 13:25:30 +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