fix: 注册功能接口变更
This commit is contained in:
@@ -13,21 +13,24 @@ 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){
|
||||
export function doCheckUserRepeat(body: Api.Auth.CheckBody) {
|
||||
return request<boolean>({
|
||||
url:'/u/user/checkRepeat',
|
||||
method:'post',
|
||||
data:body
|
||||
})
|
||||
url: '/auth/checkRepeat',
|
||||
method: 'post',
|
||||
data: body
|
||||
});
|
||||
}
|
||||
|
||||
//添加注册
|
||||
export function fetchRegister(body: Api.Auth.RegisterBody) {
|
||||
return request({
|
||||
@@ -36,6 +39,7 @@ export function fetchRegister(body: Api.Auth.RegisterBody) {
|
||||
data: body
|
||||
});
|
||||
}
|
||||
|
||||
/** logout */
|
||||
export function doDeleteLogout() {
|
||||
return request<App.Service.Response<null>>({
|
||||
|
||||
Reference in New Issue
Block a user