neck_ring_configure.go 907 B

123456789101112131415161718192021222324252627282930
  1. package model
  2. import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  3. const (
  4. High = "high"
  5. Rumina = "rumina"
  6. WeeklyActive = "weekly_active"
  7. XRuminaDisc = "x_rumina_disc"
  8. XChangeDiscount = "x_change_discount"
  9. ActiveLow = "active_low"
  10. ActiveMiddle = "active_middle"
  11. ActiveHigh = "active_high"
  12. MaxHabit = "max_habit"
  13. )
  14. type NeckRingConfigure struct {
  15. Id int64 `json:"id"`
  16. PastureId int64 `json:"pastureId"`
  17. Name string `json:"name"`
  18. Value int64 `json:"value"`
  19. Remarks string `json:"remarks"`
  20. IsShow pasturePb.IsShow_Kind `json:"is_show"`
  21. CreatedAt int64 `json:"createdAt"`
  22. UpdatedAt int64 `json:"updatedAt"`
  23. }
  24. func (s *NeckRingConfigure) TableName() string {
  25. return "neck_ring_configure"
  26. }