package v1 type GetReceiverReq struct { Index int64 `json:"index"` PageSize int64 `json:"pagesize"` Code string `json:"code"` //接收器编码 Status int64 `json:"status"` //状态 } type Receiver struct { ReceiverId int64 `json:"receiverid"` Code string `json:"code"` //接收器编码 Pastureid string `json:"pastureid"` //牧场id BarId string `json:"barid"` //栏舍id BarName string `json:"barname"` //栏舍名称 SimId int64 `json:"simid"` //栏舍id Status int64 `json:"status"` //脖环状态 Location string `json:"location"` //安装位置 设备位置(1:奶厅1,2:奶厅2) UpdateDate string `json:"updatedate"` //最后修改时间 Card string `json:"card"` //sim编码 卡号 PastureName string `json:"pasturename"` //牧场名称 PastureCode string `json:"pasturecode"` //牧场编码 Id int64 `json:"id"` Image string `json:"image"` //图片地址 Style *Style `json:"style"` } type GetReceiverRes struct { List []*Receiver `json:"list"` Total int64 `json:"total"` } type AddReceiverReq struct { Code string `json:"code"` //接收器编码 Pastureid string `json:"pastureid"` //牧场id BarId string `json:"barId"` //栏舍id //BarName string `json:"barname"` //栏舍名称 SimId int64 `json:"simid"` //sim卡id Status int64 `json:"status"` //脖环状态 Location string `json:"location"` //安装位置 //UpdateDate time.Time `json:"updateDate"` //最后修改时间 Card string `json:"card"` //卡号 PastureName string `json:"pasturename"` //牧场名称 } type EditReceiverReq struct { Id int64 `json:"id"` Code string `json:"code"` //接收器编码 Pastureid string `json:"pastureid"` //牧场id BarId string `json:"barid"` //栏舍id //BarName string `json:"barname"` //栏舍名称 SimId int64 `json:"simId"` //sim卡id Status int64 `json:"status"` //脖环状态 Location string `json:"location"` //安装位置 Card string `json:"card"` //卡号 PastureName string `json:"pasturename"` //牧场名称 } type ReceiverPull struct { Id int64 `json:"id"` Code string `json:"code"` } type GetReceiverPullRes struct { List []*ReceiverPull `json:"list"` //Total int64 `json:"total"` } type Style struct { Left string `json:"left"` Top string `json:"top"` } type CoordinatesInfo struct { ID int64 `json:"id"` Pastureid string `json:"pastureid"` //牧场id BarId string `json:"barid"` //栏舍id Style *Style `json:"style"` Status int64 `json:"enable"` //脖环状态 Left string `json:"left"` Top string `json:"top"` } type GetReceiverInfoRes struct { List []*CoordinatesInfo `json:"list"` } type EditReceiverCoordinatesReq struct { List []*CoordinatesInfo `json:"list"` }