basic.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. package eventmodels
  2. type EventBasic struct {
  3. ServerId string `json:"serverId"` // 服务id或者nodeid
  4. IsSuccess bool `json:"is_uccess"` // http响应结果
  5. Status int `json:"status"` // 事件状态 0:表示成功/完成
  6. RewardDrawStatus int `json:"reward_draw_status"` // 奖励领取状态
  7. Reward string `json:"reward"` // 奖励 json字符串 eg:[]ItemReward
  8. CreateAt int64 `json:"create_at"` // 事件创建时间戳
  9. Remark string `json:"remark"` // 备注 建议使用json字符串,以便事件字段扩展
  10. }
  11. type UserBasic struct {
  12. UserId string `json:"user_id"` // 用户id
  13. UserName string `json:"user_name"` // 用户昵称
  14. TgId string `json:"tg_id"` // 绑定tgid
  15. XId string `json:"x_id"` // 绑定推特ID
  16. ParentUserId string `json:"parent_user_id"` // 上级用户id
  17. IsRobot bool `json:"is_robot"` // 是否为机器人
  18. IfTgVip bool `json:"if_tg_vip"` // 是否为telegram会员
  19. TonWall string `json:"tonWall"` // 绑定钱包地址
  20. Email string `json:"email"` // 邮箱
  21. Fingerprint string `json:"fingerprint"` // 指纹数据
  22. Level int `json:"level"` // 等级
  23. UserStatus int `json:"user_status"` // 用户账号状态 1:有效 2:禁用
  24. PointsRankSeq int64 `json:"points_rank_seq"` // 积分排名
  25. ThrowDiceRankSeq int64 `json:"throw_dice_rank_seq"` // 投掷骰子次数排名
  26. InviteUserRankSeq int64 `json:"invite_user_rank_seq"` // 邀请人数排名
  27. }