package home type GetPastureIndexReq struct { PastureId int64 `json:"pastureID"` } type GetPastureIndexResp struct { Budget float64 `json:"budget"` Actual float64 `json:"actual"` Complete float64 `json:"complete"` } func (d GetPastureIndexReq) Validate() bool { return true }