2
0

perf: 合并用户平台框架修改

This commit is contained in:
TsMask
2024-12-03 16:46:39 +08:00
parent 13ee5a3849
commit c6b0c60392
30 changed files with 631 additions and 874 deletions

View File

@@ -13,14 +13,23 @@ export function fetchLogin(body: Api.Auth.LoginBody) {
data: body
});
}
//邮箱验证码接口
export function sendCaptcha(body:Api.Auth.EmailCaptcha){
export function sendCaptcha(body: Api.Auth.EmailCaptcha) {
return request({
url:`/system/email/code?email=${body.email}`,
method:'get',
})
url: `/code?email=${body.email}`,
method: 'get'
});
}
//验证注册
export function doCheckUserRepeat(body: Api.Auth.CheckBody) {
return request<boolean>({
url: '/auth/checkRepeat',
method: 'post',
data: body
});
}
//添加注册
export function fetchRegister(body: Api.Auth.RegisterBody) {
@@ -30,6 +39,7 @@ export function fetchRegister(body: Api.Auth.RegisterBody) {
data: body
});
}
/** logout */
export function doDeleteLogout() {
return request<App.Service.Response<null>>({