From b7143b51f3a50b6fac9c139d291c1fad017daee6 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期五, 08 十二月 2023 15:50:50 +0800 Subject: [PATCH] 使用tinymce富文本 --- src/api/login.js | 61 +++++++++++++++++++++++++++++- 1 files changed, 59 insertions(+), 2 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 69a8d71..804aaea 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -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,53 @@ 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: '/system/common/removeFile', + headers: { + isToken: false + }, + 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