feat: 逻辑调整

This commit is contained in:
rd
2025-09-11 16:08:28 +08:00
parent 7e6e086098
commit b5abdb0887
9 changed files with 279 additions and 153 deletions

View File

@ -44,7 +44,7 @@ export const fetchBindPhone = (params = {}) => {
};
// 根据id获取企业信息
export const fetchEnterpriseInfo = (id: number) => {
export const fetchEnterpriseInfo = (id: number | string) => {
return Http.get(`/v1/enterprises/${id}`);
};
@ -59,22 +59,22 @@ export const postRegister = (params = {}) => {
};
// 发送注册验证码
export const postRegisterCaptcha = (params = {}) => {
export const postRegisterCaptcha = (params = {}) => {
return Http.post('/v1/sms/register-captcha', params);
};
// 发送忘记密码验证码
export const postForgetPasswordCaptcha = (params = {}) => {
export const postForgetPasswordCaptcha = (params = {}) => {
return Http.post('/v1/sms/forget-password-captcha', params);
};
// 忘记密码
export const postForgetPassword = (params = {}) => {
export const postForgetPassword = (params = {}) => {
return Http.post('/v1/users/forget-password', params);
};
// 创建企业
export const postCreateEnterprises = (params = {}) => {
export const postCreateEnterprises = (params = {}) => {
return Http.post('/v1/enterprises', params);
};
@ -86,4 +86,4 @@ export const getMyEnterprises = () => {
// 获取我的主企业信息
export const getMyPrimaryEnterprise = () => {
return Http.get('/v1/me/primary-enterprise');
};
};