datadef.go 1.06 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"`
	Loginday     int      `json:"loginday"`
	Leftads      int      `json:"leftads"`
	Guangold     int      `json:"guangold"`

}

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

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	//玩家成就完成相关数据
}