swagger.yaml 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237
  1. definitions:
  2. v1.AddFactoryReq:
  3. properties:
  4. count:
  5. type: integer
  6. genre:
  7. description: 0 购买,1 置换
  8. type: integer
  9. pastureid:
  10. type: string
  11. recall:
  12. description: 关联召回批次数
  13. type: integer
  14. recallid:
  15. description: 召回id
  16. items:
  17. type: integer
  18. type: array
  19. type: object
  20. v1.AddRecallReq:
  21. properties:
  22. count:
  23. type: integer
  24. factoryid:
  25. description: 召回id
  26. items:
  27. type: integer
  28. type: array
  29. pastureid:
  30. type: string
  31. type: object
  32. v1.AddReceiverReq:
  33. properties:
  34. barId:
  35. description: 栏舍id
  36. type: string
  37. card:
  38. description: UpdateDate time.Time `json:"updateDate"` //最后修改时间
  39. type: string
  40. code:
  41. description: 接收器编码
  42. type: string
  43. location:
  44. description: 安装位置
  45. type: string
  46. pastureid:
  47. description: 牧场id
  48. type: string
  49. pasturename:
  50. description: 牧场名称
  51. type: string
  52. simid:
  53. description: BarName string `json:"barname"` //栏舍名称
  54. type: integer
  55. status:
  56. description: 脖环状态
  57. type: integer
  58. type: object
  59. v1.AddSimReq:
  60. properties:
  61. activatedate:
  62. description: 激活日期
  63. type: string
  64. card:
  65. description: Id int64 `json:"id"`
  66. type: string
  67. company:
  68. description: 公司
  69. type: string
  70. enddate:
  71. description: 充值日期
  72. type: string
  73. pastureid:
  74. description: 牧场id
  75. type: string
  76. purchasedate:
  77. description: 购入日期
  78. type: string
  79. receiverid:
  80. description: 接收器id
  81. type: integer
  82. remaining:
  83. description: 剩余流量
  84. type: string
  85. status:
  86. description: 状态
  87. type: integer
  88. topupdate:
  89. description: 充值日期
  90. type: string
  91. totalflow:
  92. description: 总流量
  93. type: string
  94. used:
  95. description: 已用流量
  96. type: string
  97. type: object
  98. v1.BarList:
  99. properties:
  100. bcode:
  101. description: 栏舍编码
  102. type: string
  103. bname:
  104. description: 栏舍名称
  105. type: string
  106. id:
  107. type: string
  108. pastureid:
  109. type: string
  110. type: object
  111. v1.CoordinatesInfo:
  112. properties:
  113. barid:
  114. description: 栏舍id
  115. type: string
  116. enable:
  117. description: 脖环状态
  118. type: integer
  119. id:
  120. type: integer
  121. left:
  122. type: string
  123. pastureid:
  124. description: 牧场id
  125. type: string
  126. style:
  127. $ref: '#/definitions/v1.Style'
  128. top:
  129. type: string
  130. type: object
  131. v1.EditReceiverCoordinatesReq:
  132. properties:
  133. list:
  134. items:
  135. $ref: '#/definitions/v1.CoordinatesInfo'
  136. type: array
  137. type: object
  138. v1.EditReceiverReq:
  139. properties:
  140. barid:
  141. description: 栏舍id
  142. type: string
  143. card:
  144. description: 卡号
  145. type: string
  146. code:
  147. description: 接收器编码
  148. type: string
  149. id:
  150. type: integer
  151. location:
  152. description: 安装位置
  153. type: string
  154. pastureid:
  155. description: 牧场id
  156. type: string
  157. pasturename:
  158. description: 牧场名称
  159. type: string
  160. simId:
  161. description: BarName string `json:"barname"` //栏舍名称
  162. type: integer
  163. status:
  164. description: 脖环状态
  165. type: integer
  166. type: object
  167. v1.EditSimReq:
  168. properties:
  169. activatedate:
  170. description: 激活日期
  171. type: string
  172. card:
  173. description: sim卡号
  174. type: string
  175. company:
  176. description: 公司
  177. type: string
  178. enddate:
  179. description: 结束日期
  180. type: string
  181. id:
  182. type: integer
  183. pastureid:
  184. description: 牧场id
  185. type: string
  186. purchasedate:
  187. description: 购入日期
  188. type: string
  189. receiverid:
  190. description: 接收器id
  191. type: integer
  192. remaining:
  193. description: 剩余流量
  194. type: string
  195. status:
  196. description: 状态
  197. type: integer
  198. topupdate:
  199. description: 充值日期
  200. type: string
  201. totalflow:
  202. description: 总流量
  203. type: string
  204. used:
  205. description: 已用流量
  206. type: string
  207. type: object
  208. v1.Factory:
  209. properties:
  210. batch:
  211. description: 出厂批次
  212. type: string
  213. count:
  214. description: 出厂数量
  215. type: integer
  216. createname:
  217. description: 登记人
  218. type: string
  219. createtime:
  220. description: 登记时间
  221. type: string
  222. genre:
  223. description: 0 购买,1 置换
  224. type: integer
  225. id:
  226. type: integer
  227. pastureid:
  228. description: 牧场id
  229. type: string
  230. pasturename:
  231. description: 牧场名称
  232. type: string
  233. recall:
  234. description: 关联召回批次数
  235. type: integer
  236. type: object
  237. v1.GetBarListRes:
  238. properties:
  239. list:
  240. items:
  241. $ref: '#/definitions/v1.BarList'
  242. type: array
  243. total:
  244. type: integer
  245. type: object
  246. v1.GetFactoryRes:
  247. properties:
  248. list:
  249. items:
  250. $ref: '#/definitions/v1.Factory'
  251. type: array
  252. total:
  253. type: integer
  254. type: object
  255. v1.GetManagementBhRes:
  256. properties:
  257. list:
  258. items:
  259. $ref: '#/definitions/v1.ManagementBh'
  260. type: array
  261. total:
  262. type: integer
  263. type: object
  264. v1.GetManagementRes:
  265. properties:
  266. list:
  267. items:
  268. $ref: '#/definitions/v1.Management'
  269. type: array
  270. total:
  271. type: integer
  272. type: object
  273. v1.GetNeckRingListingRes:
  274. properties:
  275. list:
  276. items:
  277. $ref: '#/definitions/v1.NeckRingListing'
  278. type: array
  279. total:
  280. type: integer
  281. type: object
  282. v1.GetPastureListRes:
  283. properties:
  284. list:
  285. items:
  286. $ref: '#/definitions/v1.PastureList'
  287. type: array
  288. total:
  289. type: integer
  290. type: object
  291. v1.GetRecallRes:
  292. properties:
  293. list:
  294. items:
  295. $ref: '#/definitions/v1.Recall'
  296. type: array
  297. total:
  298. type: integer
  299. type: object
  300. v1.GetReceiverRes:
  301. properties:
  302. list:
  303. items:
  304. $ref: '#/definitions/v1.Receiver'
  305. type: array
  306. total:
  307. type: integer
  308. type: object
  309. v1.GetSimPullRes:
  310. properties:
  311. list:
  312. items:
  313. $ref: '#/definitions/v1.SimPull'
  314. type: array
  315. type: object
  316. v1.GetSimRes:
  317. properties:
  318. list:
  319. items:
  320. $ref: '#/definitions/v1.Sim'
  321. type: array
  322. total:
  323. type: integer
  324. type: object
  325. v1.Management:
  326. properties:
  327. count:
  328. description: 出厂数量
  329. type: integer
  330. genre:
  331. description: 0 售卖,1 返厂 2 置换
  332. type: integer
  333. id:
  334. type: integer
  335. importdate:
  336. description: 导入时间
  337. type: string
  338. pastureid:
  339. description: 牧场id
  340. type: string
  341. pasturename:
  342. description: 牧场id
  343. type: string
  344. recall:
  345. description: 关联召回批次数
  346. type: integer
  347. type: object
  348. v1.ManagementBh:
  349. properties:
  350. code:
  351. description: 脖环编码
  352. type: string
  353. date:
  354. description: 日期
  355. type: string
  356. managementid:
  357. description: 脖环管理ID
  358. type: integer
  359. type: object
  360. v1.NeckRingListing:
  361. properties:
  362. barid:
  363. description: 栏舍id
  364. type: integer
  365. barname:
  366. description: 栏舍名称
  367. type: string
  368. batch:
  369. description: 批次
  370. type: string
  371. cattle:
  372. description: 牛号
  373. type: string
  374. code:
  375. description: 脖环编码
  376. type: integer
  377. id:
  378. type: integer
  379. manufacturedate:
  380. description: 生产日期
  381. type: string
  382. name:
  383. description: 脖环名称
  384. type: string
  385. purchasedate:
  386. description: 购入日期
  387. type: string
  388. status:
  389. description: 脖环状态
  390. type: integer
  391. type: object
  392. v1.PastureList:
  393. properties:
  394. pasturecode:
  395. type: string
  396. pastureid:
  397. type: string
  398. pasturename:
  399. type: string
  400. type: object
  401. v1.Recall:
  402. properties:
  403. batch:
  404. description: 出厂批次
  405. type: string
  406. count:
  407. description: 出厂数量
  408. type: integer
  409. createname:
  410. description: 登记人
  411. type: string
  412. createtime:
  413. description: 登记时间
  414. type: string
  415. id:
  416. type: integer
  417. pastureid:
  418. description: 牧场id
  419. type: string
  420. pasturename:
  421. description: 牧场名称
  422. type: string
  423. recall:
  424. description: 关联召回批次数
  425. type: integer
  426. type: object
  427. v1.Receiver:
  428. properties:
  429. barid:
  430. description: 栏舍id
  431. type: string
  432. barname:
  433. description: 栏舍名称
  434. type: string
  435. card:
  436. description: sim编码 卡号
  437. type: string
  438. code:
  439. description: 接收器编码
  440. type: string
  441. id:
  442. type: integer
  443. image:
  444. description: 图片地址
  445. type: string
  446. location:
  447. description: 安装位置 设备位置(1:奶厅1,2:奶厅2)
  448. type: string
  449. pasturecode:
  450. description: 牧场编码
  451. type: string
  452. pastureid:
  453. description: 牧场id
  454. type: string
  455. pasturename:
  456. description: 牧场名称
  457. type: string
  458. receiverid:
  459. type: integer
  460. simid:
  461. description: 栏舍id
  462. type: integer
  463. status:
  464. description: 脖环状态
  465. type: integer
  466. style:
  467. $ref: '#/definitions/v1.Style'
  468. updatedate:
  469. description: 最后修改时间
  470. type: string
  471. type: object
  472. v1.Sim:
  473. properties:
  474. activatedate:
  475. description: 激活日期
  476. type: string
  477. barid:
  478. description: 栏舍id
  479. type: string
  480. barname:
  481. description: 栏舍名称
  482. type: string
  483. card:
  484. description: sim卡号
  485. type: string
  486. company:
  487. description: 公司
  488. type: string
  489. enddate:
  490. description: 充值日期
  491. type: string
  492. id:
  493. type: integer
  494. pasturecode:
  495. description: 牧场编码
  496. type: string
  497. pastureid:
  498. description: 牧场id
  499. type: string
  500. pasturename:
  501. description: 牧场名称
  502. type: string
  503. purchasedate:
  504. description: 购入日期
  505. type: string
  506. receivercode:
  507. description: 接收器编码
  508. type: string
  509. receiverid:
  510. description: 接收器id
  511. type: integer
  512. remaining:
  513. description: 剩余流量
  514. type: string
  515. status:
  516. description: 状态
  517. type: integer
  518. topupdate:
  519. description: 充值日期
  520. type: string
  521. totalflow:
  522. description: 总流量
  523. type: string
  524. used:
  525. description: 已用流量
  526. type: string
  527. type: object
  528. v1.SimPull:
  529. properties:
  530. card:
  531. description: sim卡号
  532. type: string
  533. id:
  534. type: integer
  535. type: object
  536. v1.Style:
  537. properties:
  538. left:
  539. type: string
  540. top:
  541. type: string
  542. type: object
  543. info:
  544. contact: {}
  545. paths:
  546. /factory/add:
  547. post:
  548. consumes:
  549. - application/json
  550. description: add by json account
  551. parameters:
  552. - description: Add account
  553. in: body
  554. name: account
  555. required: true
  556. schema:
  557. $ref: '#/definitions/v1.AddFactoryReq'
  558. produces:
  559. - application/json
  560. responses: {}
  561. summary: 脖环出厂登记添加
  562. tags:
  563. - 脖环出厂登记
  564. /factory/list:
  565. get:
  566. consumes:
  567. - application/json
  568. description: add by json account
  569. parameters:
  570. - description: 'int '
  571. in: path
  572. name: index
  573. required: true
  574. type: integer
  575. - description: 'int '
  576. in: path
  577. name: pagesize
  578. required: true
  579. type: integer
  580. - description: string 批次
  581. in: path
  582. name: batch
  583. required: true
  584. type: string
  585. - description: string 0 购买,1 置换 -1 全部
  586. in: path
  587. name: genre
  588. required: true
  589. type: integer
  590. - description: string 数量
  591. in: path
  592. name: startcount
  593. required: true
  594. type: string
  595. - description: string 数量
  596. in: path
  597. name: endcount
  598. required: true
  599. type: string
  600. - description: string 登记人
  601. in: path
  602. name: createname
  603. required: true
  604. type: string
  605. - description: string 登记时间
  606. in: path
  607. name: startdate
  608. required: true
  609. type: string
  610. - description: string 登记时间
  611. in: path
  612. name: enddate
  613. required: true
  614. type: string
  615. - description: string 查看关联出厂批次
  616. in: path
  617. name: recallid
  618. required: true
  619. type: integer
  620. produces:
  621. - application/json
  622. responses:
  623. "200":
  624. description: OK
  625. schema:
  626. $ref: '#/definitions/v1.GetFactoryRes'
  627. summary: 脖环出厂登记查看
  628. tags:
  629. - 脖环出厂登记
  630. /housephy/image:
  631. post:
  632. consumes:
  633. - application/json
  634. description: add by json account
  635. parameters:
  636. - description: 'int '
  637. in: path
  638. name: id
  639. required: true
  640. type: integer
  641. produces:
  642. - application/json
  643. responses: {}
  644. summary: 上传接收器图片
  645. tags:
  646. - 接收器管理
  647. /image:
  648. get:
  649. consumes:
  650. - application/json
  651. description: add by json account
  652. parameters:
  653. - description: 'int '
  654. in: path
  655. name: id
  656. required: true
  657. type: integer
  658. produces:
  659. - application/json
  660. responses:
  661. "200":
  662. description: OK
  663. schema:
  664. $ref: '#/definitions/v1.GetBarListRes'
  665. summary: 接收器图片查看
  666. tags:
  667. - 接收器管理
  668. /management/add:
  669. post:
  670. consumes:
  671. - application/json
  672. description: add by json account
  673. produces:
  674. - application/json
  675. responses: {}
  676. summary: 脖环管理导入
  677. tags:
  678. - 脖环管理
  679. /management/list:
  680. get:
  681. consumes:
  682. - application/json
  683. description: add by json account
  684. parameters:
  685. - description: 'int '
  686. in: path
  687. name: index
  688. required: true
  689. type: integer
  690. - description: 'int '
  691. in: path
  692. name: pagesize
  693. required: true
  694. type: integer
  695. - description: string 脖环编码
  696. in: path
  697. name: code
  698. required: true
  699. type: string
  700. - description: string 脖环状态
  701. in: path
  702. name: status
  703. required: true
  704. type: string
  705. - description: string 牧场id
  706. in: path
  707. name: pastureid
  708. required: true
  709. type: string
  710. - description: int64 0 售卖,1 返厂 2 置换 -1 全部
  711. in: path
  712. name: genre
  713. required: true
  714. type: integer
  715. - description: string 导入开始时间
  716. in: path
  717. name: startdate
  718. required: true
  719. type: string
  720. - description: string 导入结束时间
  721. in: path
  722. name: enddate
  723. required: true
  724. type: string
  725. produces:
  726. - application/json
  727. responses:
  728. "200":
  729. description: OK
  730. schema:
  731. $ref: '#/definitions/v1.GetManagementRes'
  732. summary: 脖环管理查看
  733. tags:
  734. - 脖环管理
  735. /managementbh/list:
  736. get:
  737. consumes:
  738. - application/json
  739. description: add by json account
  740. parameters:
  741. - description: 'int '
  742. in: path
  743. name: index
  744. required: true
  745. type: integer
  746. - description: 'int '
  747. in: path
  748. name: pagesize
  749. required: true
  750. type: integer
  751. - description: 'int '
  752. in: path
  753. name: managementid
  754. required: true
  755. type: integer
  756. produces:
  757. - application/json
  758. responses:
  759. "200":
  760. description: OK
  761. schema:
  762. $ref: '#/definitions/v1.GetManagementBhRes'
  763. summary: 脖环管理明细查看
  764. tags:
  765. - 脖环管理
  766. /public/bar:
  767. get:
  768. consumes:
  769. - application/json
  770. description: add by json account
  771. parameters:
  772. - description: 'int '
  773. in: path
  774. name: index
  775. required: true
  776. type: integer
  777. - description: 'int '
  778. in: path
  779. name: pagesize
  780. required: true
  781. type: integer
  782. - description: string 栏舍名称
  783. in: path
  784. name: barname
  785. required: true
  786. type: string
  787. - description: string 牧场编码
  788. in: path
  789. name: pastureid
  790. required: true
  791. type: string
  792. produces:
  793. - application/json
  794. responses:
  795. "200":
  796. description: OK
  797. schema:
  798. $ref: '#/definitions/v1.GetBarListRes'
  799. summary: 栏舍查看
  800. tags:
  801. - 公共接口
  802. /public/housephy:
  803. get:
  804. consumes:
  805. - application/json
  806. description: add by json account
  807. parameters:
  808. - description: 'int '
  809. in: path
  810. name: index
  811. required: true
  812. type: integer
  813. - description: 'int '
  814. in: path
  815. name: pagesize
  816. required: true
  817. type: integer
  818. - description: 'string '
  819. in: path
  820. name: pastureid
  821. required: true
  822. type: string
  823. produces:
  824. - application/json
  825. responses:
  826. "200":
  827. description: OK
  828. schema:
  829. $ref: '#/definitions/v1.GetBarListRes'
  830. summary: 物理栏舍查看
  831. tags:
  832. - 公共接口
  833. /public/pasture:
  834. get:
  835. consumes:
  836. - application/json
  837. description: add by json account
  838. parameters:
  839. - description: 'int '
  840. in: path
  841. name: index
  842. required: true
  843. type: integer
  844. - description: 'int '
  845. in: path
  846. name: pagesize
  847. required: true
  848. type: integer
  849. produces:
  850. - application/json
  851. responses:
  852. "200":
  853. description: OK
  854. schema:
  855. $ref: '#/definitions/v1.GetPastureListRes'
  856. summary: 牧场信息查看
  857. tags:
  858. - 公共接口
  859. /recall/add:
  860. post:
  861. consumes:
  862. - application/json
  863. description: add by json account
  864. parameters:
  865. - description: Add account
  866. in: body
  867. name: account
  868. required: true
  869. schema:
  870. $ref: '#/definitions/v1.AddRecallReq'
  871. produces:
  872. - application/json
  873. responses: {}
  874. summary: 脖环召回计划添加
  875. tags:
  876. - 脖环召回计划
  877. /recall/list:
  878. get:
  879. consumes:
  880. - application/json
  881. description: add by json account
  882. parameters:
  883. - description: 'int '
  884. in: path
  885. name: index
  886. required: true
  887. type: integer
  888. - description: 'int '
  889. in: path
  890. name: pagesize
  891. required: true
  892. type: integer
  893. - description: string 批次
  894. in: path
  895. name: batch
  896. required: true
  897. type: string
  898. - description: string 数量
  899. in: path
  900. name: startcount
  901. required: true
  902. type: string
  903. - description: string 数量
  904. in: path
  905. name: endcount
  906. required: true
  907. type: string
  908. - description: string 登记人
  909. in: path
  910. name: createname
  911. required: true
  912. type: string
  913. - description: string 登记时间
  914. in: path
  915. name: startdate
  916. required: true
  917. type: string
  918. - description: string 登记时间
  919. in: path
  920. name: enddate
  921. required: true
  922. type: string
  923. - description: string 查看召回批次
  924. in: path
  925. name: factoryid
  926. required: true
  927. type: integer
  928. - description: string 置换时查看传 1
  929. in: path
  930. name: replacement
  931. required: true
  932. type: integer
  933. produces:
  934. - application/json
  935. responses:
  936. "200":
  937. description: OK
  938. schema:
  939. $ref: '#/definitions/v1.GetRecallRes'
  940. summary: 脖环召回查看
  941. tags:
  942. - 脖环召回计划
  943. /receiver/add:
  944. post:
  945. consumes:
  946. - application/json
  947. description: add by json account
  948. parameters:
  949. - description: Add account
  950. in: body
  951. name: account
  952. required: true
  953. schema:
  954. $ref: '#/definitions/v1.AddReceiverReq'
  955. produces:
  956. - application/json
  957. responses: {}
  958. summary: 添加接收器
  959. tags:
  960. - 接收器管理
  961. /receiver/coordinates:
  962. get:
  963. consumes:
  964. - application/json
  965. description: add by json account
  966. parameters:
  967. - description: string 栏舍
  968. in: path
  969. name: barid
  970. required: true
  971. type: integer
  972. produces:
  973. - application/json
  974. responses:
  975. "200":
  976. description: OK
  977. schema:
  978. $ref: '#/definitions/v1.GetReceiverRes'
  979. summary: 接收器位置信息
  980. tags:
  981. - 接收器管理
  982. /receiver/coordinates/edit:
  983. post:
  984. consumes:
  985. - application/json
  986. description: add by json account
  987. parameters:
  988. - description: Add account
  989. in: body
  990. name: account
  991. required: true
  992. schema:
  993. $ref: '#/definitions/v1.EditReceiverCoordinatesReq'
  994. produces:
  995. - application/json
  996. responses: {}
  997. summary: 编辑接收器坐标
  998. tags:
  999. - 接收器管理
  1000. /receiver/edit:
  1001. post:
  1002. consumes:
  1003. - application/json
  1004. description: add by json account
  1005. parameters:
  1006. - description: Add account
  1007. in: body
  1008. name: account
  1009. required: true
  1010. schema:
  1011. $ref: '#/definitions/v1.EditReceiverReq'
  1012. produces:
  1013. - application/json
  1014. responses: {}
  1015. summary: 编辑接收器
  1016. tags:
  1017. - 接收器管理
  1018. /receiver/list:
  1019. get:
  1020. consumes:
  1021. - application/json
  1022. description: add by json account
  1023. parameters:
  1024. - description: 'int '
  1025. in: path
  1026. name: index
  1027. required: true
  1028. type: integer
  1029. - description: 'int '
  1030. in: path
  1031. name: pagesize
  1032. required: true
  1033. type: integer
  1034. - description: string 接收器编码
  1035. in: path
  1036. name: code
  1037. required: true
  1038. type: string
  1039. - description: string 状态
  1040. in: path
  1041. name: status
  1042. required: true
  1043. type: integer
  1044. produces:
  1045. - application/json
  1046. responses:
  1047. "200":
  1048. description: OK
  1049. schema:
  1050. $ref: '#/definitions/v1.GetReceiverRes'
  1051. summary: 接收器管理查看
  1052. tags:
  1053. - 接收器管理
  1054. /receiver/pull:
  1055. get:
  1056. consumes:
  1057. - application/json
  1058. description: add by json account
  1059. produces:
  1060. - application/json
  1061. responses:
  1062. "200":
  1063. description: OK
  1064. schema:
  1065. $ref: '#/definitions/v1.GetReceiverRes'
  1066. summary: 接口器下拉
  1067. tags:
  1068. - 公共接口
  1069. /ring/listing:
  1070. get:
  1071. consumes:
  1072. - application/json
  1073. description: add by json account
  1074. parameters:
  1075. - description: 'int '
  1076. in: path
  1077. name: index
  1078. required: true
  1079. type: integer
  1080. - description: 'int '
  1081. in: path
  1082. name: pagesize
  1083. required: true
  1084. type: integer
  1085. - description: string 脖环编码
  1086. in: path
  1087. name: code
  1088. required: true
  1089. type: string
  1090. - description: string 脖环状态
  1091. in: path
  1092. name: status
  1093. required: true
  1094. type: string
  1095. - description: int 牛号
  1096. in: path
  1097. name: cattle
  1098. required: true
  1099. type: integer
  1100. - description: string 栏舍名称
  1101. in: path
  1102. name: barname
  1103. required: true
  1104. type: string
  1105. - description: string 购入开始日期
  1106. in: path
  1107. name: purchasestart
  1108. required: true
  1109. type: string
  1110. - description: string 购入结束日期
  1111. in: path
  1112. name: purchaseend
  1113. required: true
  1114. type: string
  1115. - description: string 生产开始日期
  1116. in: path
  1117. name: manufacturestart
  1118. required: true
  1119. type: string
  1120. - description: string 生产结束日期
  1121. in: path
  1122. name: manufactureend
  1123. required: true
  1124. type: string
  1125. - description: string 出厂数量
  1126. in: path
  1127. name: factoryid
  1128. required: true
  1129. type: string
  1130. - description: string 召回
  1131. in: path
  1132. name: recallid
  1133. required: true
  1134. type: string
  1135. produces:
  1136. - application/json
  1137. responses:
  1138. "200":
  1139. description: OK
  1140. schema:
  1141. $ref: '#/definitions/v1.GetNeckRingListingRes'
  1142. summary: 脖环清单查看
  1143. tags:
  1144. - 脖环清单
  1145. /sim/add:
  1146. post:
  1147. consumes:
  1148. - application/json
  1149. description: add by json account
  1150. parameters:
  1151. - description: Add account
  1152. in: body
  1153. name: account
  1154. required: true
  1155. schema:
  1156. $ref: '#/definitions/v1.AddSimReq'
  1157. produces:
  1158. - application/json
  1159. responses: {}
  1160. summary: SIM卡添加
  1161. tags:
  1162. - SIM卡管理
  1163. /sim/edit:
  1164. post:
  1165. consumes:
  1166. - application/json
  1167. description: add by json account
  1168. parameters:
  1169. - description: Add account
  1170. in: body
  1171. name: account
  1172. required: true
  1173. schema:
  1174. $ref: '#/definitions/v1.EditSimReq'
  1175. produces:
  1176. - application/json
  1177. responses: {}
  1178. summary: SIM卡修改
  1179. tags:
  1180. - SIM卡管理
  1181. /sim/list:
  1182. get:
  1183. consumes:
  1184. - application/json
  1185. description: add by json account
  1186. parameters:
  1187. - description: 'int '
  1188. in: path
  1189. name: index
  1190. required: true
  1191. type: integer
  1192. - description: 'int '
  1193. in: path
  1194. name: pagesize
  1195. required: true
  1196. type: integer
  1197. - description: string sim卡号
  1198. in: path
  1199. name: card
  1200. required: true
  1201. type: string
  1202. - description: string 公司
  1203. in: path
  1204. name: company
  1205. required: true
  1206. type: string
  1207. - description: string 状态
  1208. in: path
  1209. name: status
  1210. required: true
  1211. type: integer
  1212. produces:
  1213. - application/json
  1214. responses:
  1215. "200":
  1216. description: OK
  1217. schema:
  1218. $ref: '#/definitions/v1.GetSimRes'
  1219. summary: SIM卡查看
  1220. tags:
  1221. - SIM卡管理
  1222. /sim/pull:
  1223. get:
  1224. consumes:
  1225. - application/json
  1226. description: add by json account
  1227. produces:
  1228. - application/json
  1229. responses:
  1230. "200":
  1231. description: OK
  1232. schema:
  1233. $ref: '#/definitions/v1.GetSimPullRes'
  1234. summary: SIM卡下拉
  1235. tags:
  1236. - 公共接口
  1237. swagger: "2.0"