feat: 邀请注册

This commit is contained in:
archer
2023-04-16 23:26:14 +08:00
parent faf722fa15
commit 03f1ab1a2f
5 changed files with 35 additions and 5 deletions

View File

@@ -20,15 +20,18 @@ export const getTokenLogin = () => GET<UserType>('/user/tokenLogin');
export const postRegister = ({
phone,
password,
code
code,
inviterId
}: {
phone: string;
code: string;
password: string;
inviterId: string;
}) =>
POST<ResLogin>('/user/register', {
phone,
code,
inviterId,
password: createHashPassword(password)
});