feed_formula_detail.go 1.1 KB

12345678910111213141516171819202122232425
  1. package model
  2. import operationPb "kpt-tmr-group/proto/go/backend/operation"
  3. type FeedFormulaDetail struct {
  4. Id int64 `json:"id"`
  5. PastureId int64 `json:"pasture_id"`
  6. PastureName string `json:"pasture_name"`
  7. PastureDataId int64 `json:"pasture_data_id"`
  8. FeedFormulaId int64 `json:"feed_formula_id"`
  9. ForgeId int64 `json:"forge_id"`
  10. ForageName string `json:"forage_name"`
  11. ForageGroupName string `json:"forage_group_name"`
  12. Weight int32 `json:"weight"`
  13. StirDelay int32 `json:"stir_delay"`
  14. AllowError int32 `json:"allow_error"`
  15. IsShow operationPb.IsShow_Kind `json:"is_show"`
  16. Sort int32 `json:"sort"`
  17. CreatedAt int64 `json:"created_at"`
  18. UpdatedAt int64 `json:"updated_at"`
  19. }
  20. func (f *FeedTemplateDetail) TableName() string {
  21. return "feed_formula_detail"
  22. }