feat: 新增找回密码功能

This commit is contained in:
橙子
2024-10-04 00:00:44 +08:00
parent d7629763ef
commit 10e1fad7f3
21 changed files with 602 additions and 297 deletions

View File

@@ -1,5 +1,4 @@
import request from "@/config/axios/service";
/**
* 用户登录
* @param {*} data 账号密码
@@ -23,6 +22,17 @@ export function userRegister(data) {
data,
});
}
/**
* 用户找回密码
* @param {*} data 账号密码
*/
export function userRetrievePassword(data) {
return request({
url: `/account/retrieve-password`,
method: "post",
data,
});
}
/**
* 获取用户详细信息
@@ -44,15 +54,6 @@ export function userLogout() {
});
}
/**
* 获取验证码
*/
export function getCodeImg() {
return request({
url: `/account/captcha-image`,
method: "get",
});
}
/**
* 获取短信验证码
*/