signin.go 972 B

123456789101112131415161718192021222324252627
  1. package model
  2. type SignInBasicConf struct {
  3. Theme string `json:"theme"`
  4. Options Options2 `json:"options"`
  5. }
  6. // TSignInWeeklyConfig 7天签到配置表
  7. type TSignInWeeklyConfig struct {
  8. Id int64 `db:"id" json:"id"`
  9. Type string `db:"type" json:"type"` // 配置类型
  10. MinLevel int64 `db:"min_level" json:"min_level"` // 等级下限
  11. MaxLevel int64 `db:"max_level" json:"max_level"` // 等级上限
  12. SsGroup []int64 `db:"ss_group" json:"ss_group"` // 数数分组,json 数组
  13. PrizeJson []SignInPrize `db:"prize_json" json:"prize_json"` // 奖励JSON
  14. OtherJson []any `db:"other_json" json:"other_json"` // 其他新增字段
  15. }
  16. // TableName get sql table name.获取数据库表名
  17. func (TSignInWeeklyConfig) TableName() string {
  18. return "crazygod_api_config.t_sign_in_weekly_config"
  19. }
  20. type SignInPrize struct {
  21. Day int64 `json:"day"`
  22. Prize []PropPrize `json:"prize"`
  23. }