group.go 736 B

12345678910111213141516171819202122232425262728293031
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // CardGroup card group info.
  6. type CardGroup struct {
  7. ID int64 `json:"id"`
  8. Name string `json:"name"`
  9. State int8 `json:"state"`
  10. Deleted int8 `json:"deleted"`
  11. Operator string `json:"operator"`
  12. OrderNum int64 `json:"order_num"`
  13. Ctime time.Time `json:"ctime"`
  14. Mtime time.Time `json:"mtime"`
  15. }
  16. // AllGroupResp all group resp.
  17. type AllGroupResp struct {
  18. List []*GroupInfo `json:"list"`
  19. UserCard *UserCard `json:"user_card,omitempty"`
  20. }
  21. // GroupInfo group info
  22. type GroupInfo struct {
  23. GroupID int64 `json:"group_id"`
  24. GroupName string `json:"group_name"`
  25. Cards []*Card `json:"cards"`
  26. OrderNum int64 `json:"-"`
  27. }