pastureIndex.go 288 B

123456789101112131415
  1. package home
  2. type GetPastureIndexReq struct {
  3. PastureId int64 `json:"pastureID"`
  4. }
  5. type GetPastureIndexResp struct {
  6. Budget float64 `json:"budget"`
  7. Actual float64 `json:"actual"`
  8. Complete float64 `json:"complete"`
  9. }
  10. func (d GetPastureIndexReq) Validate() bool {
  11. return true
  12. }