1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237 |
- 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"
|