system_basic.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 PregnantCheckNameKeyMap = map[string]string{
  14. PregnantCheckForFirst: "初检",
  15. PregnantCheckForSecond: "复检",
  16. }
  17. var PregnantCheckNameValueMap = map[int32]string{
  18. 1: "pregnant_check_for_first",
  19. 2: "pregnant_check_for_second",
  20. }
  21. type SystemBasic struct {
  22. Id int32 `json:"id"`
  23. Name string `json:"name"`
  24. CategoryName string `json:"categoryName"`
  25. CategoryId int32 `json:"categoryId"`
  26. MinValue int32 `json:"minValue"`
  27. MaxValue int32 `json:"maxValue"`
  28. WeekValue pasturePb.Week_Kind `json:"weekValue"`
  29. ValueType int8 `json:"valueType"`
  30. Remarks string `json:"remarks"`
  31. IsShow pasturePb.IsShow_Kind `json:"isShow"`
  32. CreatedAt int64 `json:"createdAt"`
  33. UpdatedAt int64 `json:"updatedAt"`
  34. }
  35. func (s *SystemBasic) TableName() string {
  36. return "system_basic"
  37. }