This commit is contained in:
Putoo
2026-05-15 17:08:04 +08:00
parent 52ad7e79ec
commit 78759387f7
13 changed files with 511 additions and 632 deletions

View File

@@ -0,0 +1,29 @@
export class LoginService {
/**
* 登录接口
* POST /Login/Login
* 请求体: 登录请求参数
* @param name 登录名/手机号
* @param pwd 密码
* @param code 验证码
*/
static async Login(name: string, pwd: string, code: string) {
return await ApiService.Request("post", "/Login/Login", { name, pwd, code });
}
/**
* 探玩自动登录
* GET /Login/TwLogin
*/
static async TwLogin(code: string) {
return await ApiService.Request("get", "/Login/TwLogin", { code });
}
/**
* 退出登录
* GET /Login/LoginOut
*/
static async LoginOut(sid: string) {
return await ApiService.Request("get", "/Login/LoginOut", { sid });
}
}