group.go 311 B

12345678910111213141516171819
  1. package model
  2. const (
  3. GroupTypeDefault = 1 // 默认
  4. GroupTypeShare = 2 // 共享
  5. )
  6. type Group struct {
  7. IdModel
  8. Name string `json:"name" gorm:"default:'';not null;"`
  9. Type int `json:"type" gorm:"default:1;not null;"`
  10. TimeModel
  11. }
  12. type GroupList struct {
  13. Groups []*Group `json:"list"`
  14. Pagination
  15. }