o_notify.go 534 B

123456789101112131415161718
  1. package model
  2. type AppNotify struct {
  3. State int `json:"state"` //0:一直在变动的未读消息 1:未读 2:已读
  4. Message string `json:"message"`
  5. CreatedAt string `json:"created_at"`
  6. UpdatedAt string `json:"updated_at"`
  7. Id string `json:"id"`
  8. Type int `json:"type"`
  9. Icon string `json:"icon"`
  10. Name string `json:"name"`
  11. Class int `json:"class"`
  12. CustomId string `gorm:"column:custom_id;primary_key" json:"custom_id"`
  13. }
  14. func (p *AppNotify) TableName() string {
  15. return "o_notify"
  16. }