feed.go 279 B

123456789101112
  1. package model
  2. type FeedPasture struct {
  3. Id int64 `json:"id"`
  4. PastureId int64 `json:"pasture_id"`
  5. PastureName string `json:"pasture_name"`
  6. PastureDataId int64 `json:"pasture_data_id"`
  7. }
  8. func (f *FeedPasture) TableName() string {
  9. return "feed_pasture"
  10. }