system_basic.go 1.7 KB

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