milk_configure.go 849 B

1234567891011121314151617181920212223242526
  1. package model
  2. import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  3. const (
  4. FirstClassMilkTime = "first_class_milk_time"
  5. SecondClassMilkTime = "second_class_milk_time"
  6. ThirdClassMilkTime = "third_class_milk_time"
  7. FourthClassMilkTime = "fourth_class_milk_time"
  8. UpdateMilkOriginalMaxId = "update_max_id"
  9. )
  10. type MilkConfigure struct {
  11. Id int64 `json:"id"`
  12. PastureId int64 `json:"pastureId"`
  13. Name string `json:"name"`
  14. Value string `json:"value"`
  15. Remarks string `json:"remarks"`
  16. IsShow pasturePb.IsShow_Kind `json:"is_show"`
  17. CreatedAt int64 `json:"createdAt"`
  18. UpdatedAt int64 `json:"updatedAt"`
  19. }
  20. func (s *MilkConfigure) TableName() string {
  21. return "milk_configure"
  22. }