This commit is contained in:
Putoo
2026-05-19 15:10:59 +08:00
parent 2037d1e577
commit 24c784e6a4
14 changed files with 429 additions and 19 deletions

View File

@@ -22,4 +22,12 @@ export class PubService {
static async GetNoticeInfo(id: string) {
return await ApiService.Request("get", "/Pub/GetNoticeInfo", { id });
}
/**
* 获取用户游戏角色
* GET /Pub/GetMyGame
*/
static async GetMyGame(sid: string) {
return await ApiService.Request("get", "/Pub/GetMyGame", { sid });
}
}

View File

@@ -29,9 +29,27 @@ export class LoginService {
/**
* 注册基础账号信息
* GET /Login/Regist
* GET /Login/Register
*/
static async Register(sid: string, area: number) {
return await ApiService.Request("get", "/Login/Register", { sid, area });
}
/**
* 登录到游戏
* GET /Login/LoginGame
*/
static async LoginGame(sid: string, user: string) {
return await ApiService.Request("get", "/Login/LoginGame", { sid, user });
}
/**
* 注册角色信息
* POST /Login/RegisterInfo
* @param nick body
* @param sex body
*/
static async RegisterInfo(nick: string, sex: number) {
return await ApiService.Request("post", "/Login/RegisterInfo", { nick, sex });
}
}