definitions: v1.AddFactoryReq: properties: count: type: integer genre: description: 0 购买,1 置换 type: integer pastureid: type: string recall: description: 关联召回批次数 type: integer recallid: description: 召回id items: type: integer type: array type: object v1.AddRecallReq: properties: count: type: integer factoryid: description: 召回id items: type: integer type: array pastureid: type: string type: object v1.AddReceiverReq: properties: barId: description: 栏舍id type: string card: description: UpdateDate time.Time `json:"updateDate"` //最后修改时间 type: string code: description: 接收器编码 type: string location: description: 安装位置 type: string pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string simid: description: BarName string `json:"barname"` //栏舍名称 type: integer status: description: 脖环状态 type: integer type: object v1.AddSimReq: properties: activatedate: description: 激活日期 type: string card: description: Id int64 `json:"id"` type: string company: description: 公司 type: string enddate: description: 充值日期 type: string pastureid: description: 牧场id type: string purchasedate: description: 购入日期 type: string receiverid: description: 接收器id type: integer remaining: description: 剩余流量 type: string status: description: 状态 type: integer topupdate: description: 充值日期 type: string totalflow: description: 总流量 type: string used: description: 已用流量 type: string type: object v1.BarList: properties: bcode: description: 栏舍编码 type: string bname: description: 栏舍名称 type: string id: type: string pastureid: type: string type: object v1.CoordinatesInfo: properties: barid: description: 栏舍id type: string enable: description: 脖环状态 type: integer id: type: integer left: type: string pastureid: description: 牧场id type: string style: $ref: '#/definitions/v1.Style' top: type: string type: object v1.EditReceiverCoordinatesReq: properties: list: items: $ref: '#/definitions/v1.CoordinatesInfo' type: array type: object v1.EditReceiverReq: properties: barid: description: 栏舍id type: string card: description: 卡号 type: string code: description: 接收器编码 type: string id: type: integer location: description: 安装位置 type: string pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string simId: description: BarName string `json:"barname"` //栏舍名称 type: integer status: description: 脖环状态 type: integer type: object v1.EditSimReq: properties: activatedate: description: 激活日期 type: string card: description: sim卡号 type: string company: description: 公司 type: string enddate: description: 结束日期 type: string id: type: integer pastureid: description: 牧场id type: string purchasedate: description: 购入日期 type: string receiverid: description: 接收器id type: integer remaining: description: 剩余流量 type: string status: description: 状态 type: integer topupdate: description: 充值日期 type: string totalflow: description: 总流量 type: string used: description: 已用流量 type: string type: object v1.Factory: properties: batch: description: 出厂批次 type: string count: description: 出厂数量 type: integer createname: description: 登记人 type: string createtime: description: 登记时间 type: string genre: description: 0 购买,1 置换 type: integer id: type: integer pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string recall: description: 关联召回批次数 type: integer type: object v1.GetBarListRes: properties: list: items: $ref: '#/definitions/v1.BarList' type: array total: type: integer type: object v1.GetFactoryRes: properties: list: items: $ref: '#/definitions/v1.Factory' type: array total: type: integer type: object v1.GetManagementBhRes: properties: list: items: $ref: '#/definitions/v1.ManagementBh' type: array total: type: integer type: object v1.GetManagementRes: properties: list: items: $ref: '#/definitions/v1.Management' type: array total: type: integer type: object v1.GetNeckRingListingRes: properties: list: items: $ref: '#/definitions/v1.NeckRingListing' type: array total: type: integer type: object v1.GetPastureListRes: properties: list: items: $ref: '#/definitions/v1.PastureList' type: array total: type: integer type: object v1.GetRecallRes: properties: list: items: $ref: '#/definitions/v1.Recall' type: array total: type: integer type: object v1.GetReceiverRes: properties: list: items: $ref: '#/definitions/v1.Receiver' type: array total: type: integer type: object v1.GetSimPullRes: properties: list: items: $ref: '#/definitions/v1.SimPull' type: array type: object v1.GetSimRes: properties: list: items: $ref: '#/definitions/v1.Sim' type: array total: type: integer type: object v1.Management: properties: count: description: 出厂数量 type: integer genre: description: 0 售卖,1 返厂 2 置换 type: integer id: type: integer importdate: description: 导入时间 type: string pastureid: description: 牧场id type: string pasturename: description: 牧场id type: string recall: description: 关联召回批次数 type: integer type: object v1.ManagementBh: properties: code: description: 脖环编码 type: string date: description: 日期 type: string managementid: description: 脖环管理ID type: integer type: object v1.NeckRingListing: properties: barid: description: 栏舍id type: integer barname: description: 栏舍名称 type: string batch: description: 批次 type: string cattle: description: 牛号 type: string code: description: 脖环编码 type: integer id: type: integer manufacturedate: description: 生产日期 type: string name: description: 脖环名称 type: string purchasedate: description: 购入日期 type: string status: description: 脖环状态 type: integer type: object v1.PastureList: properties: pasturecode: type: string pastureid: type: string pasturename: type: string type: object v1.Recall: properties: batch: description: 出厂批次 type: string count: description: 出厂数量 type: integer createname: description: 登记人 type: string createtime: description: 登记时间 type: string id: type: integer pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string recall: description: 关联召回批次数 type: integer type: object v1.Receiver: properties: barid: description: 栏舍id type: string barname: description: 栏舍名称 type: string card: description: sim编码 卡号 type: string code: description: 接收器编码 type: string id: type: integer image: description: 图片地址 type: string location: description: 安装位置 设备位置(1:奶厅1,2:奶厅2) type: string pasturecode: description: 牧场编码 type: string pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string receiverid: type: integer simid: description: 栏舍id type: integer status: description: 脖环状态 type: integer style: $ref: '#/definitions/v1.Style' updatedate: description: 最后修改时间 type: string type: object v1.Sim: properties: activatedate: description: 激活日期 type: string barid: description: 栏舍id type: string barname: description: 栏舍名称 type: string card: description: sim卡号 type: string company: description: 公司 type: string enddate: description: 充值日期 type: string id: type: integer pasturecode: description: 牧场编码 type: string pastureid: description: 牧场id type: string pasturename: description: 牧场名称 type: string purchasedate: description: 购入日期 type: string receivercode: description: 接收器编码 type: string receiverid: description: 接收器id type: integer remaining: description: 剩余流量 type: string status: description: 状态 type: integer topupdate: description: 充值日期 type: string totalflow: description: 总流量 type: string used: description: 已用流量 type: string type: object v1.SimPull: properties: card: description: sim卡号 type: string id: type: integer type: object v1.Style: properties: left: type: string top: type: string type: object info: contact: {} paths: /factory/add: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.AddFactoryReq' produces: - application/json responses: {} summary: 脖环出厂登记添加 tags: - 脖环出厂登记 /factory/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 批次 in: path name: batch required: true type: string - description: string 0 购买,1 置换 -1 全部 in: path name: genre required: true type: integer - description: string 数量 in: path name: startcount required: true type: string - description: string 数量 in: path name: endcount required: true type: string - description: string 登记人 in: path name: createname required: true type: string - description: string 登记时间 in: path name: startdate required: true type: string - description: string 登记时间 in: path name: enddate required: true type: string - description: string 查看关联出厂批次 in: path name: recallid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetFactoryRes' summary: 脖环出厂登记查看 tags: - 脖环出厂登记 /housephy/image: post: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: id required: true type: integer produces: - application/json responses: {} summary: 上传接收器图片 tags: - 接收器管理 /image: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetBarListRes' summary: 接收器图片查看 tags: - 接收器管理 /management/add: post: consumes: - application/json description: add by json account produces: - application/json responses: {} summary: 脖环管理导入 tags: - 脖环管理 /management/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 脖环编码 in: path name: code required: true type: string - description: string 脖环状态 in: path name: status required: true type: string - description: string 牧场id in: path name: pastureid required: true type: string - description: int64 0 售卖,1 返厂 2 置换 -1 全部 in: path name: genre required: true type: integer - description: string 导入开始时间 in: path name: startdate required: true type: string - description: string 导入结束时间 in: path name: enddate required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetManagementRes' summary: 脖环管理查看 tags: - 脖环管理 /managementbh/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: 'int ' in: path name: managementid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetManagementBhRes' summary: 脖环管理明细查看 tags: - 脖环管理 /public/bar: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 栏舍名称 in: path name: barname required: true type: string - description: string 牧场编码 in: path name: pastureid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetBarListRes' summary: 栏舍查看 tags: - 公共接口 /public/housephy: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: 'string ' in: path name: pastureid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetBarListRes' summary: 物理栏舍查看 tags: - 公共接口 /public/pasture: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetPastureListRes' summary: 牧场信息查看 tags: - 公共接口 /recall/add: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.AddRecallReq' produces: - application/json responses: {} summary: 脖环召回计划添加 tags: - 脖环召回计划 /recall/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 批次 in: path name: batch required: true type: string - description: string 数量 in: path name: startcount required: true type: string - description: string 数量 in: path name: endcount required: true type: string - description: string 登记人 in: path name: createname required: true type: string - description: string 登记时间 in: path name: startdate required: true type: string - description: string 登记时间 in: path name: enddate required: true type: string - description: string 查看召回批次 in: path name: factoryid required: true type: integer - description: string 置换时查看传 1 in: path name: replacement required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetRecallRes' summary: 脖环召回查看 tags: - 脖环召回计划 /receiver/add: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.AddReceiverReq' produces: - application/json responses: {} summary: 添加接收器 tags: - 接收器管理 /receiver/coordinates: get: consumes: - application/json description: add by json account parameters: - description: string 栏舍 in: path name: barid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetReceiverRes' summary: 接收器位置信息 tags: - 接收器管理 /receiver/coordinates/edit: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.EditReceiverCoordinatesReq' produces: - application/json responses: {} summary: 编辑接收器坐标 tags: - 接收器管理 /receiver/edit: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.EditReceiverReq' produces: - application/json responses: {} summary: 编辑接收器 tags: - 接收器管理 /receiver/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 接收器编码 in: path name: code required: true type: string - description: string 状态 in: path name: status required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetReceiverRes' summary: 接收器管理查看 tags: - 接收器管理 /receiver/pull: get: consumes: - application/json description: add by json account produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetReceiverRes' summary: 接口器下拉 tags: - 公共接口 /ring/listing: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string 脖环编码 in: path name: code required: true type: string - description: string 脖环状态 in: path name: status required: true type: string - description: int 牛号 in: path name: cattle required: true type: integer - description: string 栏舍名称 in: path name: barname required: true type: string - description: string 购入开始日期 in: path name: purchasestart required: true type: string - description: string 购入结束日期 in: path name: purchaseend required: true type: string - description: string 生产开始日期 in: path name: manufacturestart required: true type: string - description: string 生产结束日期 in: path name: manufactureend required: true type: string - description: string 出厂数量 in: path name: factoryid required: true type: string - description: string 召回 in: path name: recallid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetNeckRingListingRes' summary: 脖环清单查看 tags: - 脖环清单 /sim/add: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.AddSimReq' produces: - application/json responses: {} summary: SIM卡添加 tags: - SIM卡管理 /sim/edit: post: consumes: - application/json description: add by json account parameters: - description: Add account in: body name: account required: true schema: $ref: '#/definitions/v1.EditSimReq' produces: - application/json responses: {} summary: SIM卡修改 tags: - SIM卡管理 /sim/list: get: consumes: - application/json description: add by json account parameters: - description: 'int ' in: path name: index required: true type: integer - description: 'int ' in: path name: pagesize required: true type: integer - description: string sim卡号 in: path name: card required: true type: string - description: string 公司 in: path name: company required: true type: string - description: string 状态 in: path name: status required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetSimRes' summary: SIM卡查看 tags: - SIM卡管理 /sim/pull: get: consumes: - application/json description: add by json account produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/v1.GetSimPullRes' summary: SIM卡下拉 tags: - 公共接口 swagger: "2.0"