datadef.go 2.03 KB
package logic

type UserLoginReq struct {
	Fromid    int `json:"fromid"`
	Sharetype int `json:"sharetype"`
}

type UserLoginResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Walletgold     int      `json:"walletgold"`
	Leftads      int      `json:"leftads"`
	Guangold     int      `json:"guangold"`

}


type WatchadsResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Leftads      int     `json:"leftads"`

}

type QueryguaninfoResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Leftcnt     int      `json:"leftcnt"`
	Totalcnt      int      `json:"totalcnt"`
	Guangold     int      `json:"guangold"`
	Minget     int      `json:"minget"`
	Maxget     int      `json:"maxget"`
	Loginday     int      `json:"loginday"`
}


type GetguangoldReq struct {
	Goldnum    int `json:"goldnum"`
}

type GetguangoldResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Guangold      int     `json:"guangold"`
}

type DrawguangoldReq struct {
	Goldnum    int `json:"goldnum"`
}

type DrawguangoldResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Guangold      int     `json:"guangold"`
	Wallgold      int     `json:"wallgold"`
}

//**********************************************************************************************************

type TaskInfo struct {

}

type AchieveMentInfo struct {

}

//玩家数据
type UserData struct {
	Userid 			int			//玩家id
	Lv				int			//玩家当前等级
	Exp 			int			//玩家当前经验值
	GuanGold		int			//玩家存钱罐中金币数量
	RealGold		int			//玩家实际金币数量(可用于提现的)
	WatchAddsTime	int			//当天观看激励视频次数
	LastLoginTime	int			//上次登陆时间
	ContinueLoginDay 	int		//连续登录天数
	GetFromGuanCnt		int		//当天从存钱款提取金币次数
	Task			TaskInfo	//玩家任务完成相关信息
	Achieve			AchieveMentInfo	//玩家成就完成相关数据
}