resource.go 703 B

1234567891011121314151617181920212223
  1. package model
  2. import "time"
  3. // Resource def
  4. type Resource struct {
  5. ID int64 `json:"id" gorm:"column:id"`
  6. Platform string `json:"platform" form:"platform"`
  7. Build int64 `json:"build" form:"build"`
  8. LimitType int64 `json:"limit" form:"limit_type"`
  9. StartTime time.Time `json:"start_time" form:"start_time"`
  10. EndTime time.Time `json:"end_time" form:"end_time"`
  11. Type string `json:"type" form:"type"`
  12. Title string `json:"title" form:"title"`
  13. ImageInfo string `json:"image_info" form:"image_info"`
  14. Ctime time.Time `json:"ctime"`
  15. Mtime time.Time `json:"mtime"`
  16. }
  17. // TableName resource
  18. func (c Resource) TableName() string {
  19. return "resource"
  20. }