push.go 825 B

123456789101112131415161718192021222324252627282930
  1. package model
  2. // PushConfig [...]
  3. type PushRepoConfig struct {
  4. Id int64 `db:"id" json:"id"`
  5. Name string `db:"name" json:"name"`
  6. Class string `db:"class" json:"class"`
  7. Type string `db:"type" json:"type"`
  8. Status int64 `db:"status" json:"status"`
  9. Conf map[string]PushContentConf `db:"conf" json:"conf"` // 皮肤资源id
  10. }
  11. func (PushRepoConfig) TableName() string {
  12. return "crazygod_api_config.t_fasebase_push_conf"
  13. }
  14. type PushShowConfig struct {
  15. List []PushRepoConfig ` json:"list"`
  16. LangList []EnCnTag ` json:"langList"`
  17. }
  18. type PushContentConf struct {
  19. Title string `json:"title"`
  20. Content string `json:"content"`
  21. }
  22. type EnCnTag struct {
  23. En string `json:"en"`
  24. Cn string `json:"cn"`
  25. }