111
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user