mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交上阵
This commit is contained in:
@@ -13,20 +13,29 @@ const RData = (data:any,isTips:boolean = true) => {
|
||||
}
|
||||
}
|
||||
|
||||
/************** 请求类 *******************/
|
||||
export interface NewsContext{
|
||||
state:number,
|
||||
msg:string,
|
||||
data:any,
|
||||
}
|
||||
//玩家登录返回
|
||||
export interface UserLoginVO{
|
||||
token:string, //token
|
||||
user:UserVO, //玩家信息
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************** 实体类 **************************/
|
||||
|
||||
//玩家信息
|
||||
export interface UserVO{
|
||||
userId:number, //玩家Id
|
||||
userName:string, //玩家名称
|
||||
userPass:string, //玩家密码
|
||||
}
|
||||
export interface UserLoginVO{
|
||||
token:string, //token
|
||||
user:UserVO, //玩家信息
|
||||
}
|
||||
//游戏玩家信息
|
||||
export interface PlayerInfoOV{
|
||||
playerId:number, //玩家Id
|
||||
userId: number, //用户Id
|
||||
@@ -34,12 +43,18 @@ export interface PlayerInfoOV{
|
||||
playerCreateTime:number, //玩家创建时间
|
||||
novice: false, //是否过引导
|
||||
}
|
||||
//玩家宠物信息
|
||||
export interface PlayerPetOV{
|
||||
petId:number, //宠物唯一Id
|
||||
petPlayerId:number; //宠物的玩家Id
|
||||
petTbId:number; //宠物配置表Id
|
||||
petGrade:number; //宠物等级
|
||||
}
|
||||
//玩家阵法信息
|
||||
export interface PlayerTacticalOV{
|
||||
playerId:number, //玩家Id
|
||||
tacticalData:string, //阵法数据
|
||||
}
|
||||
|
||||
export const API = {
|
||||
|
||||
@@ -54,5 +69,9 @@ export const API = {
|
||||
|
||||
/********** 宠物接口 ******************/
|
||||
GetPlayerPets: async () => RData(await app.api.get(`/game/pet/list`),false) as PlayerPetOV[], //获取玩家全部宠物
|
||||
|
||||
/********** 阵法接口 ******************/
|
||||
GetPlayerTactical: async () => RData(await app.api.get(`/game/tactical/get`),false) as PlayerTacticalOV, //获取玩家阵法
|
||||
SetPlayerTactical: async (data:PlayerTacticalOV) => RData(await app.api.post(`/game/tactical/set`,data),false) as PlayerTacticalOV, //更新玩家阵法
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user