2
0

fix:注册界面及相关功能

This commit is contained in:
zhongzm
2024-11-29 09:04:06 +08:00
parent a3a6aeb40e
commit 650a180778
10 changed files with 222 additions and 33 deletions

View File

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