system_basic.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package model
  2. import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  3. const (
  4. ProactivelyStopBreedingForBackup = "proactively_stop_breeding_for_backup" // 后备牛主动停配
  5. ProactivelyStopBreedingForAdult = "proactively_stop_breeding_for_adult" // 成母牛主动停配
  6. PregnantCheckForFirst = "pregnant_check_for_first" // 怀孕检查-第一次
  7. PregnantCheckForSecond = "pregnant_check_for_second" // 怀孕检查-第二次
  8. PregnancyAge = "pregnancy_age" // 怀孕天数
  9. WeaningAge = "weaning_age" // 断奶天数
  10. ValueTypeFixed = 1 // 固定值
  11. ValueTypeRange = 2 // 范围值
  12. )
  13. var PregnantCheckNameMap = map[string]string{
  14. PregnantCheckForFirst: "初检",
  15. PregnantCheckForSecond: "复检",
  16. }
  17. type SystemBasic struct {
  18. Id int32 `json:"id"`
  19. Name string `json:"name"`
  20. CategoryName string `json:"categoryName"`
  21. CategoryId int32 `json:"categoryId"`
  22. MinValue int32 `json:"minValue"`
  23. MaxValue int32 `json:"maxValue"`
  24. WeekValue pasturePb.Week_Kind `json:"weekValue"`
  25. ValueType int8 `json:"valueType"`
  26. Remarks string `json:"remarks"`
  27. IsShow pasturePb.IsShow_Kind `json:"isShow"`
  28. CreatedAt int64 `json:"createdAt"`
  29. UpdatedAt int64 `json:"updatedAt"`
  30. }
  31. func (s *SystemBasic) TableName() string {
  32. return "system_basic"
  33. }