-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import info from './info' | ||
import login from './login' | ||
import register from './register' | ||
import reset from './reset' | ||
import send from './send' | ||
|
||
export default { | ||
info: info, | ||
login: login, | ||
register: register, | ||
send: send, | ||
reset: reset | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//@ts-ignore | ||
import { post } from '@/utils/request' | ||
import base from '@/api/base' | ||
|
||
const register = async ( | ||
username: string, | ||
password: string, | ||
confirm_password: string, | ||
email: string, | ||
verify: number, | ||
qq: number | ||
) => { | ||
const rs = post(`${base.api_v2_url}/users/register`, { | ||
username: username, | ||
password: password, | ||
confirm_password: confirm_password, | ||
email: email, | ||
verify: verify, | ||
qq: qq | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default register |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ts-ignore | ||
import { get } from '@/utils/request' | ||
import base from '@/api/base' | ||
|
||
const send = async (email: string) => { | ||
const rs = get(`${base.api_v2_url}/users/send`, { | ||
email: email | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default send |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters