docs.go 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/factory/add": {
  18. "post": {
  19. "description": "add by json account",
  20. "consumes": [
  21. "application/json"
  22. ],
  23. "produces": [
  24. "application/json"
  25. ],
  26. "tags": [
  27. "脖环出厂登记"
  28. ],
  29. "summary": "脖环出厂登记添加",
  30. "parameters": [
  31. {
  32. "description": "Add account",
  33. "name": "account",
  34. "in": "body",
  35. "required": true,
  36. "schema": {
  37. "$ref": "#/definitions/v1.AddFactoryReq"
  38. }
  39. }
  40. ],
  41. "responses": {}
  42. }
  43. },
  44. "/factory/list": {
  45. "get": {
  46. "description": "add by json account",
  47. "consumes": [
  48. "application/json"
  49. ],
  50. "produces": [
  51. "application/json"
  52. ],
  53. "tags": [
  54. "脖环出厂登记"
  55. ],
  56. "summary": "脖环出厂登记查看",
  57. "parameters": [
  58. {
  59. "type": "integer",
  60. "description": "int ",
  61. "name": "index",
  62. "in": "path",
  63. "required": true
  64. },
  65. {
  66. "type": "integer",
  67. "description": "int ",
  68. "name": "pagesize",
  69. "in": "path",
  70. "required": true
  71. },
  72. {
  73. "type": "string",
  74. "description": "string 批次",
  75. "name": "batch",
  76. "in": "path",
  77. "required": true
  78. },
  79. {
  80. "type": "integer",
  81. "description": "string 0 购买,1 置换 -1 全部",
  82. "name": "genre",
  83. "in": "path",
  84. "required": true
  85. },
  86. {
  87. "type": "string",
  88. "description": "string 数量",
  89. "name": "startcount",
  90. "in": "path",
  91. "required": true
  92. },
  93. {
  94. "type": "string",
  95. "description": "string 数量",
  96. "name": "endcount",
  97. "in": "path",
  98. "required": true
  99. },
  100. {
  101. "type": "string",
  102. "description": "string 登记人",
  103. "name": "createname",
  104. "in": "path",
  105. "required": true
  106. },
  107. {
  108. "type": "string",
  109. "description": "string 登记时间",
  110. "name": "startdate",
  111. "in": "path",
  112. "required": true
  113. },
  114. {
  115. "type": "string",
  116. "description": "string 登记时间",
  117. "name": "enddate",
  118. "in": "path",
  119. "required": true
  120. },
  121. {
  122. "type": "integer",
  123. "description": "string 查看关联出厂批次",
  124. "name": "recallid",
  125. "in": "path",
  126. "required": true
  127. }
  128. ],
  129. "responses": {
  130. "200": {
  131. "description": "OK",
  132. "schema": {
  133. "$ref": "#/definitions/v1.GetFactoryRes"
  134. }
  135. }
  136. }
  137. }
  138. },
  139. "/housephy/image": {
  140. "post": {
  141. "description": "add by json account",
  142. "consumes": [
  143. "application/json"
  144. ],
  145. "produces": [
  146. "application/json"
  147. ],
  148. "tags": [
  149. "接收器管理"
  150. ],
  151. "summary": "上传接收器图片",
  152. "parameters": [
  153. {
  154. "type": "integer",
  155. "description": "int ",
  156. "name": "id",
  157. "in": "path",
  158. "required": true
  159. }
  160. ],
  161. "responses": {}
  162. }
  163. },
  164. "/image": {
  165. "get": {
  166. "description": "add by json account",
  167. "consumes": [
  168. "application/json"
  169. ],
  170. "produces": [
  171. "application/json"
  172. ],
  173. "tags": [
  174. "接收器管理"
  175. ],
  176. "summary": "接收器图片查看",
  177. "parameters": [
  178. {
  179. "type": "integer",
  180. "description": "int ",
  181. "name": "id",
  182. "in": "path",
  183. "required": true
  184. }
  185. ],
  186. "responses": {
  187. "200": {
  188. "description": "OK",
  189. "schema": {
  190. "$ref": "#/definitions/v1.GetBarListRes"
  191. }
  192. }
  193. }
  194. }
  195. },
  196. "/management/add": {
  197. "post": {
  198. "description": "add by json account",
  199. "consumes": [
  200. "application/json"
  201. ],
  202. "produces": [
  203. "application/json"
  204. ],
  205. "tags": [
  206. "脖环管理"
  207. ],
  208. "summary": "脖环管理导入",
  209. "responses": {}
  210. }
  211. },
  212. "/management/list": {
  213. "get": {
  214. "description": "add by json account",
  215. "consumes": [
  216. "application/json"
  217. ],
  218. "produces": [
  219. "application/json"
  220. ],
  221. "tags": [
  222. "脖环管理"
  223. ],
  224. "summary": "脖环管理查看",
  225. "parameters": [
  226. {
  227. "type": "integer",
  228. "description": "int ",
  229. "name": "index",
  230. "in": "path",
  231. "required": true
  232. },
  233. {
  234. "type": "integer",
  235. "description": "int ",
  236. "name": "pagesize",
  237. "in": "path",
  238. "required": true
  239. },
  240. {
  241. "type": "string",
  242. "description": "string 脖环编码",
  243. "name": "code",
  244. "in": "path",
  245. "required": true
  246. },
  247. {
  248. "type": "string",
  249. "description": "string 脖环状态",
  250. "name": "status",
  251. "in": "path",
  252. "required": true
  253. },
  254. {
  255. "type": "string",
  256. "description": "string 牧场id",
  257. "name": "pastureid",
  258. "in": "path",
  259. "required": true
  260. },
  261. {
  262. "type": "integer",
  263. "description": "int64 0 售卖,1 返厂 2 置换 -1 全部",
  264. "name": "genre",
  265. "in": "path",
  266. "required": true
  267. },
  268. {
  269. "type": "string",
  270. "description": "string 导入开始时间",
  271. "name": "startdate",
  272. "in": "path",
  273. "required": true
  274. },
  275. {
  276. "type": "string",
  277. "description": "string 导入结束时间",
  278. "name": "enddate",
  279. "in": "path",
  280. "required": true
  281. }
  282. ],
  283. "responses": {
  284. "200": {
  285. "description": "OK",
  286. "schema": {
  287. "$ref": "#/definitions/v1.GetManagementRes"
  288. }
  289. }
  290. }
  291. }
  292. },
  293. "/managementbh/list": {
  294. "get": {
  295. "description": "add by json account",
  296. "consumes": [
  297. "application/json"
  298. ],
  299. "produces": [
  300. "application/json"
  301. ],
  302. "tags": [
  303. "脖环管理"
  304. ],
  305. "summary": "脖环管理明细查看",
  306. "parameters": [
  307. {
  308. "type": "integer",
  309. "description": "int ",
  310. "name": "index",
  311. "in": "path",
  312. "required": true
  313. },
  314. {
  315. "type": "integer",
  316. "description": "int ",
  317. "name": "pagesize",
  318. "in": "path",
  319. "required": true
  320. },
  321. {
  322. "type": "integer",
  323. "description": "int ",
  324. "name": "managementid",
  325. "in": "path",
  326. "required": true
  327. }
  328. ],
  329. "responses": {
  330. "200": {
  331. "description": "OK",
  332. "schema": {
  333. "$ref": "#/definitions/v1.GetManagementBhRes"
  334. }
  335. }
  336. }
  337. }
  338. },
  339. "/public/bar": {
  340. "get": {
  341. "description": "add by json account",
  342. "consumes": [
  343. "application/json"
  344. ],
  345. "produces": [
  346. "application/json"
  347. ],
  348. "tags": [
  349. "公共接口"
  350. ],
  351. "summary": "栏舍查看",
  352. "parameters": [
  353. {
  354. "type": "integer",
  355. "description": "int ",
  356. "name": "index",
  357. "in": "path",
  358. "required": true
  359. },
  360. {
  361. "type": "integer",
  362. "description": "int ",
  363. "name": "pagesize",
  364. "in": "path",
  365. "required": true
  366. },
  367. {
  368. "type": "string",
  369. "description": "string 栏舍名称",
  370. "name": "barname",
  371. "in": "path",
  372. "required": true
  373. },
  374. {
  375. "type": "string",
  376. "description": "string 牧场编码",
  377. "name": "pastureid",
  378. "in": "path",
  379. "required": true
  380. }
  381. ],
  382. "responses": {
  383. "200": {
  384. "description": "OK",
  385. "schema": {
  386. "$ref": "#/definitions/v1.GetBarListRes"
  387. }
  388. }
  389. }
  390. }
  391. },
  392. "/public/housephy": {
  393. "get": {
  394. "description": "add by json account",
  395. "consumes": [
  396. "application/json"
  397. ],
  398. "produces": [
  399. "application/json"
  400. ],
  401. "tags": [
  402. "公共接口"
  403. ],
  404. "summary": "物理栏舍查看",
  405. "parameters": [
  406. {
  407. "type": "integer",
  408. "description": "int ",
  409. "name": "index",
  410. "in": "path",
  411. "required": true
  412. },
  413. {
  414. "type": "integer",
  415. "description": "int ",
  416. "name": "pagesize",
  417. "in": "path",
  418. "required": true
  419. },
  420. {
  421. "type": "string",
  422. "description": "string ",
  423. "name": "pastureid",
  424. "in": "path",
  425. "required": true
  426. }
  427. ],
  428. "responses": {
  429. "200": {
  430. "description": "OK",
  431. "schema": {
  432. "$ref": "#/definitions/v1.GetBarListRes"
  433. }
  434. }
  435. }
  436. }
  437. },
  438. "/public/pasture": {
  439. "get": {
  440. "description": "add by json account",
  441. "consumes": [
  442. "application/json"
  443. ],
  444. "produces": [
  445. "application/json"
  446. ],
  447. "tags": [
  448. "公共接口"
  449. ],
  450. "summary": "牧场信息查看",
  451. "parameters": [
  452. {
  453. "type": "integer",
  454. "description": "int ",
  455. "name": "index",
  456. "in": "path",
  457. "required": true
  458. },
  459. {
  460. "type": "integer",
  461. "description": "int ",
  462. "name": "pagesize",
  463. "in": "path",
  464. "required": true
  465. }
  466. ],
  467. "responses": {
  468. "200": {
  469. "description": "OK",
  470. "schema": {
  471. "$ref": "#/definitions/v1.GetPastureListRes"
  472. }
  473. }
  474. }
  475. }
  476. },
  477. "/recall/add": {
  478. "post": {
  479. "description": "add by json account",
  480. "consumes": [
  481. "application/json"
  482. ],
  483. "produces": [
  484. "application/json"
  485. ],
  486. "tags": [
  487. "脖环召回计划"
  488. ],
  489. "summary": "脖环召回计划添加",
  490. "parameters": [
  491. {
  492. "description": "Add account",
  493. "name": "account",
  494. "in": "body",
  495. "required": true,
  496. "schema": {
  497. "$ref": "#/definitions/v1.AddRecallReq"
  498. }
  499. }
  500. ],
  501. "responses": {}
  502. }
  503. },
  504. "/recall/list": {
  505. "get": {
  506. "description": "add by json account",
  507. "consumes": [
  508. "application/json"
  509. ],
  510. "produces": [
  511. "application/json"
  512. ],
  513. "tags": [
  514. "脖环召回计划"
  515. ],
  516. "summary": "脖环召回查看",
  517. "parameters": [
  518. {
  519. "type": "integer",
  520. "description": "int ",
  521. "name": "index",
  522. "in": "path",
  523. "required": true
  524. },
  525. {
  526. "type": "integer",
  527. "description": "int ",
  528. "name": "pagesize",
  529. "in": "path",
  530. "required": true
  531. },
  532. {
  533. "type": "string",
  534. "description": "string 批次",
  535. "name": "batch",
  536. "in": "path",
  537. "required": true
  538. },
  539. {
  540. "type": "string",
  541. "description": "string 数量",
  542. "name": "startcount",
  543. "in": "path",
  544. "required": true
  545. },
  546. {
  547. "type": "string",
  548. "description": "string 数量",
  549. "name": "endcount",
  550. "in": "path",
  551. "required": true
  552. },
  553. {
  554. "type": "string",
  555. "description": "string 登记人",
  556. "name": "createname",
  557. "in": "path",
  558. "required": true
  559. },
  560. {
  561. "type": "string",
  562. "description": "string 登记时间",
  563. "name": "startdate",
  564. "in": "path",
  565. "required": true
  566. },
  567. {
  568. "type": "string",
  569. "description": "string 登记时间",
  570. "name": "enddate",
  571. "in": "path",
  572. "required": true
  573. },
  574. {
  575. "type": "integer",
  576. "description": "string 查看召回批次",
  577. "name": "factoryid",
  578. "in": "path",
  579. "required": true
  580. },
  581. {
  582. "type": "integer",
  583. "description": "string 置换时查看传 1",
  584. "name": "replacement",
  585. "in": "path",
  586. "required": true
  587. }
  588. ],
  589. "responses": {
  590. "200": {
  591. "description": "OK",
  592. "schema": {
  593. "$ref": "#/definitions/v1.GetRecallRes"
  594. }
  595. }
  596. }
  597. }
  598. },
  599. "/receiver/add": {
  600. "post": {
  601. "description": "add by json account",
  602. "consumes": [
  603. "application/json"
  604. ],
  605. "produces": [
  606. "application/json"
  607. ],
  608. "tags": [
  609. "接收器管理"
  610. ],
  611. "summary": "添加接收器",
  612. "parameters": [
  613. {
  614. "description": "Add account",
  615. "name": "account",
  616. "in": "body",
  617. "required": true,
  618. "schema": {
  619. "$ref": "#/definitions/v1.AddReceiverReq"
  620. }
  621. }
  622. ],
  623. "responses": {}
  624. }
  625. },
  626. "/receiver/coordinates": {
  627. "get": {
  628. "description": "add by json account",
  629. "consumes": [
  630. "application/json"
  631. ],
  632. "produces": [
  633. "application/json"
  634. ],
  635. "tags": [
  636. "接收器管理"
  637. ],
  638. "summary": "接收器位置信息",
  639. "parameters": [
  640. {
  641. "type": "integer",
  642. "description": "string 栏舍",
  643. "name": "barid",
  644. "in": "path",
  645. "required": true
  646. }
  647. ],
  648. "responses": {
  649. "200": {
  650. "description": "OK",
  651. "schema": {
  652. "$ref": "#/definitions/v1.GetReceiverRes"
  653. }
  654. }
  655. }
  656. }
  657. },
  658. "/receiver/coordinates/edit": {
  659. "post": {
  660. "description": "add by json account",
  661. "consumes": [
  662. "application/json"
  663. ],
  664. "produces": [
  665. "application/json"
  666. ],
  667. "tags": [
  668. "接收器管理"
  669. ],
  670. "summary": "编辑接收器坐标",
  671. "parameters": [
  672. {
  673. "description": "Add account",
  674. "name": "account",
  675. "in": "body",
  676. "required": true,
  677. "schema": {
  678. "$ref": "#/definitions/v1.EditReceiverCoordinatesReq"
  679. }
  680. }
  681. ],
  682. "responses": {}
  683. }
  684. },
  685. "/receiver/edit": {
  686. "post": {
  687. "description": "add by json account",
  688. "consumes": [
  689. "application/json"
  690. ],
  691. "produces": [
  692. "application/json"
  693. ],
  694. "tags": [
  695. "接收器管理"
  696. ],
  697. "summary": "编辑接收器",
  698. "parameters": [
  699. {
  700. "description": "Add account",
  701. "name": "account",
  702. "in": "body",
  703. "required": true,
  704. "schema": {
  705. "$ref": "#/definitions/v1.EditReceiverReq"
  706. }
  707. }
  708. ],
  709. "responses": {}
  710. }
  711. },
  712. "/receiver/list": {
  713. "get": {
  714. "description": "add by json account",
  715. "consumes": [
  716. "application/json"
  717. ],
  718. "produces": [
  719. "application/json"
  720. ],
  721. "tags": [
  722. "接收器管理"
  723. ],
  724. "summary": "接收器管理查看",
  725. "parameters": [
  726. {
  727. "type": "integer",
  728. "description": "int ",
  729. "name": "index",
  730. "in": "path",
  731. "required": true
  732. },
  733. {
  734. "type": "integer",
  735. "description": "int ",
  736. "name": "pagesize",
  737. "in": "path",
  738. "required": true
  739. },
  740. {
  741. "type": "string",
  742. "description": "string 接收器编码",
  743. "name": "code",
  744. "in": "path",
  745. "required": true
  746. },
  747. {
  748. "type": "integer",
  749. "description": "string 状态",
  750. "name": "status",
  751. "in": "path",
  752. "required": true
  753. }
  754. ],
  755. "responses": {
  756. "200": {
  757. "description": "OK",
  758. "schema": {
  759. "$ref": "#/definitions/v1.GetReceiverRes"
  760. }
  761. }
  762. }
  763. }
  764. },
  765. "/receiver/pull": {
  766. "get": {
  767. "description": "add by json account",
  768. "consumes": [
  769. "application/json"
  770. ],
  771. "produces": [
  772. "application/json"
  773. ],
  774. "tags": [
  775. "公共接口"
  776. ],
  777. "summary": "接口器下拉",
  778. "responses": {
  779. "200": {
  780. "description": "OK",
  781. "schema": {
  782. "$ref": "#/definitions/v1.GetReceiverRes"
  783. }
  784. }
  785. }
  786. }
  787. },
  788. "/ring/listing": {
  789. "get": {
  790. "description": "add by json account",
  791. "consumes": [
  792. "application/json"
  793. ],
  794. "produces": [
  795. "application/json"
  796. ],
  797. "tags": [
  798. "脖环清单"
  799. ],
  800. "summary": "脖环清单查看",
  801. "parameters": [
  802. {
  803. "type": "integer",
  804. "description": "int ",
  805. "name": "index",
  806. "in": "path",
  807. "required": true
  808. },
  809. {
  810. "type": "integer",
  811. "description": "int ",
  812. "name": "pagesize",
  813. "in": "path",
  814. "required": true
  815. },
  816. {
  817. "type": "string",
  818. "description": "string 脖环编码",
  819. "name": "code",
  820. "in": "path",
  821. "required": true
  822. },
  823. {
  824. "type": "string",
  825. "description": "string 脖环状态",
  826. "name": "status",
  827. "in": "path",
  828. "required": true
  829. },
  830. {
  831. "type": "integer",
  832. "description": "int 牛号",
  833. "name": "cattle",
  834. "in": "path",
  835. "required": true
  836. },
  837. {
  838. "type": "string",
  839. "description": "string 栏舍名称",
  840. "name": "barname",
  841. "in": "path",
  842. "required": true
  843. },
  844. {
  845. "type": "string",
  846. "description": "string 购入开始日期",
  847. "name": "purchasestart",
  848. "in": "path",
  849. "required": true
  850. },
  851. {
  852. "type": "string",
  853. "description": "string 购入结束日期",
  854. "name": "purchaseend",
  855. "in": "path",
  856. "required": true
  857. },
  858. {
  859. "type": "string",
  860. "description": "string 生产开始日期",
  861. "name": "manufacturestart",
  862. "in": "path",
  863. "required": true
  864. },
  865. {
  866. "type": "string",
  867. "description": "string 生产结束日期",
  868. "name": "manufactureend",
  869. "in": "path",
  870. "required": true
  871. },
  872. {
  873. "type": "string",
  874. "description": "string 出厂数量",
  875. "name": "factoryid",
  876. "in": "path",
  877. "required": true
  878. },
  879. {
  880. "type": "string",
  881. "description": "string 召回",
  882. "name": "recallid",
  883. "in": "path",
  884. "required": true
  885. }
  886. ],
  887. "responses": {
  888. "200": {
  889. "description": "OK",
  890. "schema": {
  891. "$ref": "#/definitions/v1.GetNeckRingListingRes"
  892. }
  893. }
  894. }
  895. }
  896. },
  897. "/sim/add": {
  898. "post": {
  899. "description": "add by json account",
  900. "consumes": [
  901. "application/json"
  902. ],
  903. "produces": [
  904. "application/json"
  905. ],
  906. "tags": [
  907. "SIM卡管理"
  908. ],
  909. "summary": "SIM卡添加",
  910. "parameters": [
  911. {
  912. "description": "Add account",
  913. "name": "account",
  914. "in": "body",
  915. "required": true,
  916. "schema": {
  917. "$ref": "#/definitions/v1.AddSimReq"
  918. }
  919. }
  920. ],
  921. "responses": {}
  922. }
  923. },
  924. "/sim/edit": {
  925. "post": {
  926. "description": "add by json account",
  927. "consumes": [
  928. "application/json"
  929. ],
  930. "produces": [
  931. "application/json"
  932. ],
  933. "tags": [
  934. "SIM卡管理"
  935. ],
  936. "summary": "SIM卡修改",
  937. "parameters": [
  938. {
  939. "description": "Add account",
  940. "name": "account",
  941. "in": "body",
  942. "required": true,
  943. "schema": {
  944. "$ref": "#/definitions/v1.EditSimReq"
  945. }
  946. }
  947. ],
  948. "responses": {}
  949. }
  950. },
  951. "/sim/list": {
  952. "get": {
  953. "description": "add by json account",
  954. "consumes": [
  955. "application/json"
  956. ],
  957. "produces": [
  958. "application/json"
  959. ],
  960. "tags": [
  961. "SIM卡管理"
  962. ],
  963. "summary": "SIM卡查看",
  964. "parameters": [
  965. {
  966. "type": "integer",
  967. "description": "int ",
  968. "name": "index",
  969. "in": "path",
  970. "required": true
  971. },
  972. {
  973. "type": "integer",
  974. "description": "int ",
  975. "name": "pagesize",
  976. "in": "path",
  977. "required": true
  978. },
  979. {
  980. "type": "string",
  981. "description": "string sim卡号",
  982. "name": "card",
  983. "in": "path",
  984. "required": true
  985. },
  986. {
  987. "type": "string",
  988. "description": "string 公司",
  989. "name": "company",
  990. "in": "path",
  991. "required": true
  992. },
  993. {
  994. "type": "integer",
  995. "description": "string 状态",
  996. "name": "status",
  997. "in": "path",
  998. "required": true
  999. }
  1000. ],
  1001. "responses": {
  1002. "200": {
  1003. "description": "OK",
  1004. "schema": {
  1005. "$ref": "#/definitions/v1.GetSimRes"
  1006. }
  1007. }
  1008. }
  1009. }
  1010. },
  1011. "/sim/pull": {
  1012. "get": {
  1013. "description": "add by json account",
  1014. "consumes": [
  1015. "application/json"
  1016. ],
  1017. "produces": [
  1018. "application/json"
  1019. ],
  1020. "tags": [
  1021. "公共接口"
  1022. ],
  1023. "summary": "SIM卡下拉",
  1024. "responses": {
  1025. "200": {
  1026. "description": "OK",
  1027. "schema": {
  1028. "$ref": "#/definitions/v1.GetSimPullRes"
  1029. }
  1030. }
  1031. }
  1032. }
  1033. }
  1034. },
  1035. "definitions": {
  1036. "v1.AddFactoryReq": {
  1037. "type": "object",
  1038. "properties": {
  1039. "count": {
  1040. "type": "integer"
  1041. },
  1042. "genre": {
  1043. "description": "0 购买,1 置换",
  1044. "type": "integer"
  1045. },
  1046. "pastureid": {
  1047. "type": "string"
  1048. },
  1049. "recall": {
  1050. "description": "关联召回批次数",
  1051. "type": "integer"
  1052. },
  1053. "recallid": {
  1054. "description": "召回id",
  1055. "type": "array",
  1056. "items": {
  1057. "type": "integer"
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "v1.AddRecallReq": {
  1063. "type": "object",
  1064. "properties": {
  1065. "count": {
  1066. "type": "integer"
  1067. },
  1068. "factoryid": {
  1069. "description": "召回id",
  1070. "type": "array",
  1071. "items": {
  1072. "type": "integer"
  1073. }
  1074. },
  1075. "pastureid": {
  1076. "type": "string"
  1077. }
  1078. }
  1079. },
  1080. "v1.AddReceiverReq": {
  1081. "type": "object",
  1082. "properties": {
  1083. "barId": {
  1084. "description": "栏舍id",
  1085. "type": "string"
  1086. },
  1087. "card": {
  1088. "description": "UpdateDate time.Time ` + "`" + `json:\"updateDate\"` + "`" + ` //最后修改时间",
  1089. "type": "string"
  1090. },
  1091. "code": {
  1092. "description": "接收器编码",
  1093. "type": "string"
  1094. },
  1095. "location": {
  1096. "description": "安装位置",
  1097. "type": "string"
  1098. },
  1099. "pastureid": {
  1100. "description": "牧场id",
  1101. "type": "string"
  1102. },
  1103. "pasturename": {
  1104. "description": "牧场名称",
  1105. "type": "string"
  1106. },
  1107. "simid": {
  1108. "description": "BarName string ` + "`" + `json:\"barname\"` + "`" + ` //栏舍名称",
  1109. "type": "integer"
  1110. },
  1111. "status": {
  1112. "description": "脖环状态",
  1113. "type": "integer"
  1114. }
  1115. }
  1116. },
  1117. "v1.AddSimReq": {
  1118. "type": "object",
  1119. "properties": {
  1120. "activatedate": {
  1121. "description": "激活日期",
  1122. "type": "string"
  1123. },
  1124. "card": {
  1125. "description": "Id int64 ` + "`" + `json:\"id\"` + "`" + `",
  1126. "type": "string"
  1127. },
  1128. "company": {
  1129. "description": "公司",
  1130. "type": "string"
  1131. },
  1132. "enddate": {
  1133. "description": "充值日期",
  1134. "type": "string"
  1135. },
  1136. "pastureid": {
  1137. "description": "牧场id",
  1138. "type": "string"
  1139. },
  1140. "purchasedate": {
  1141. "description": "购入日期",
  1142. "type": "string"
  1143. },
  1144. "receiverid": {
  1145. "description": "接收器id",
  1146. "type": "integer"
  1147. },
  1148. "remaining": {
  1149. "description": "剩余流量",
  1150. "type": "string"
  1151. },
  1152. "status": {
  1153. "description": "状态",
  1154. "type": "integer"
  1155. },
  1156. "topupdate": {
  1157. "description": "充值日期",
  1158. "type": "string"
  1159. },
  1160. "totalflow": {
  1161. "description": "总流量",
  1162. "type": "string"
  1163. },
  1164. "used": {
  1165. "description": "已用流量",
  1166. "type": "string"
  1167. }
  1168. }
  1169. },
  1170. "v1.BarList": {
  1171. "type": "object",
  1172. "properties": {
  1173. "bcode": {
  1174. "description": "栏舍编码",
  1175. "type": "string"
  1176. },
  1177. "bname": {
  1178. "description": "栏舍名称",
  1179. "type": "string"
  1180. },
  1181. "id": {
  1182. "type": "string"
  1183. },
  1184. "pastureid": {
  1185. "type": "string"
  1186. }
  1187. }
  1188. },
  1189. "v1.CoordinatesInfo": {
  1190. "type": "object",
  1191. "properties": {
  1192. "barid": {
  1193. "description": "栏舍id",
  1194. "type": "string"
  1195. },
  1196. "enable": {
  1197. "description": "脖环状态",
  1198. "type": "integer"
  1199. },
  1200. "id": {
  1201. "type": "integer"
  1202. },
  1203. "left": {
  1204. "type": "string"
  1205. },
  1206. "pastureid": {
  1207. "description": "牧场id",
  1208. "type": "string"
  1209. },
  1210. "style": {
  1211. "$ref": "#/definitions/v1.Style"
  1212. },
  1213. "top": {
  1214. "type": "string"
  1215. }
  1216. }
  1217. },
  1218. "v1.EditReceiverCoordinatesReq": {
  1219. "type": "object",
  1220. "properties": {
  1221. "list": {
  1222. "type": "array",
  1223. "items": {
  1224. "$ref": "#/definitions/v1.CoordinatesInfo"
  1225. }
  1226. }
  1227. }
  1228. },
  1229. "v1.EditReceiverReq": {
  1230. "type": "object",
  1231. "properties": {
  1232. "barid": {
  1233. "description": "栏舍id",
  1234. "type": "string"
  1235. },
  1236. "card": {
  1237. "description": "卡号",
  1238. "type": "string"
  1239. },
  1240. "code": {
  1241. "description": "接收器编码",
  1242. "type": "string"
  1243. },
  1244. "id": {
  1245. "type": "integer"
  1246. },
  1247. "location": {
  1248. "description": "安装位置",
  1249. "type": "string"
  1250. },
  1251. "pastureid": {
  1252. "description": "牧场id",
  1253. "type": "string"
  1254. },
  1255. "pasturename": {
  1256. "description": "牧场名称",
  1257. "type": "string"
  1258. },
  1259. "simId": {
  1260. "description": "BarName string ` + "`" + `json:\"barname\"` + "`" + ` //栏舍名称",
  1261. "type": "integer"
  1262. },
  1263. "status": {
  1264. "description": "脖环状态",
  1265. "type": "integer"
  1266. }
  1267. }
  1268. },
  1269. "v1.EditSimReq": {
  1270. "type": "object",
  1271. "properties": {
  1272. "activatedate": {
  1273. "description": "激活日期",
  1274. "type": "string"
  1275. },
  1276. "card": {
  1277. "description": "sim卡号",
  1278. "type": "string"
  1279. },
  1280. "company": {
  1281. "description": "公司",
  1282. "type": "string"
  1283. },
  1284. "enddate": {
  1285. "description": "结束日期",
  1286. "type": "string"
  1287. },
  1288. "id": {
  1289. "type": "integer"
  1290. },
  1291. "pastureid": {
  1292. "description": "牧场id",
  1293. "type": "string"
  1294. },
  1295. "purchasedate": {
  1296. "description": "购入日期",
  1297. "type": "string"
  1298. },
  1299. "receiverid": {
  1300. "description": "接收器id",
  1301. "type": "integer"
  1302. },
  1303. "remaining": {
  1304. "description": "剩余流量",
  1305. "type": "string"
  1306. },
  1307. "status": {
  1308. "description": "状态",
  1309. "type": "integer"
  1310. },
  1311. "topupdate": {
  1312. "description": "充值日期",
  1313. "type": "string"
  1314. },
  1315. "totalflow": {
  1316. "description": "总流量",
  1317. "type": "string"
  1318. },
  1319. "used": {
  1320. "description": "已用流量",
  1321. "type": "string"
  1322. }
  1323. }
  1324. },
  1325. "v1.Factory": {
  1326. "type": "object",
  1327. "properties": {
  1328. "batch": {
  1329. "description": "出厂批次",
  1330. "type": "string"
  1331. },
  1332. "count": {
  1333. "description": "出厂数量",
  1334. "type": "integer"
  1335. },
  1336. "createname": {
  1337. "description": "登记人",
  1338. "type": "string"
  1339. },
  1340. "createtime": {
  1341. "description": "登记时间",
  1342. "type": "string"
  1343. },
  1344. "genre": {
  1345. "description": "0 购买,1 置换",
  1346. "type": "integer"
  1347. },
  1348. "id": {
  1349. "type": "integer"
  1350. },
  1351. "pastureid": {
  1352. "description": "牧场id",
  1353. "type": "string"
  1354. },
  1355. "pasturename": {
  1356. "description": "牧场名称",
  1357. "type": "string"
  1358. },
  1359. "recall": {
  1360. "description": "关联召回批次数",
  1361. "type": "integer"
  1362. }
  1363. }
  1364. },
  1365. "v1.GetBarListRes": {
  1366. "type": "object",
  1367. "properties": {
  1368. "list": {
  1369. "type": "array",
  1370. "items": {
  1371. "$ref": "#/definitions/v1.BarList"
  1372. }
  1373. },
  1374. "total": {
  1375. "type": "integer"
  1376. }
  1377. }
  1378. },
  1379. "v1.GetFactoryRes": {
  1380. "type": "object",
  1381. "properties": {
  1382. "list": {
  1383. "type": "array",
  1384. "items": {
  1385. "$ref": "#/definitions/v1.Factory"
  1386. }
  1387. },
  1388. "total": {
  1389. "type": "integer"
  1390. }
  1391. }
  1392. },
  1393. "v1.GetManagementBhRes": {
  1394. "type": "object",
  1395. "properties": {
  1396. "list": {
  1397. "type": "array",
  1398. "items": {
  1399. "$ref": "#/definitions/v1.ManagementBh"
  1400. }
  1401. },
  1402. "total": {
  1403. "type": "integer"
  1404. }
  1405. }
  1406. },
  1407. "v1.GetManagementRes": {
  1408. "type": "object",
  1409. "properties": {
  1410. "list": {
  1411. "type": "array",
  1412. "items": {
  1413. "$ref": "#/definitions/v1.Management"
  1414. }
  1415. },
  1416. "total": {
  1417. "type": "integer"
  1418. }
  1419. }
  1420. },
  1421. "v1.GetNeckRingListingRes": {
  1422. "type": "object",
  1423. "properties": {
  1424. "list": {
  1425. "type": "array",
  1426. "items": {
  1427. "$ref": "#/definitions/v1.NeckRingListing"
  1428. }
  1429. },
  1430. "total": {
  1431. "type": "integer"
  1432. }
  1433. }
  1434. },
  1435. "v1.GetPastureListRes": {
  1436. "type": "object",
  1437. "properties": {
  1438. "list": {
  1439. "type": "array",
  1440. "items": {
  1441. "$ref": "#/definitions/v1.PastureList"
  1442. }
  1443. },
  1444. "total": {
  1445. "type": "integer"
  1446. }
  1447. }
  1448. },
  1449. "v1.GetRecallRes": {
  1450. "type": "object",
  1451. "properties": {
  1452. "list": {
  1453. "type": "array",
  1454. "items": {
  1455. "$ref": "#/definitions/v1.Recall"
  1456. }
  1457. },
  1458. "total": {
  1459. "type": "integer"
  1460. }
  1461. }
  1462. },
  1463. "v1.GetReceiverRes": {
  1464. "type": "object",
  1465. "properties": {
  1466. "list": {
  1467. "type": "array",
  1468. "items": {
  1469. "$ref": "#/definitions/v1.Receiver"
  1470. }
  1471. },
  1472. "total": {
  1473. "type": "integer"
  1474. }
  1475. }
  1476. },
  1477. "v1.GetSimPullRes": {
  1478. "type": "object",
  1479. "properties": {
  1480. "list": {
  1481. "type": "array",
  1482. "items": {
  1483. "$ref": "#/definitions/v1.SimPull"
  1484. }
  1485. }
  1486. }
  1487. },
  1488. "v1.GetSimRes": {
  1489. "type": "object",
  1490. "properties": {
  1491. "list": {
  1492. "type": "array",
  1493. "items": {
  1494. "$ref": "#/definitions/v1.Sim"
  1495. }
  1496. },
  1497. "total": {
  1498. "type": "integer"
  1499. }
  1500. }
  1501. },
  1502. "v1.Management": {
  1503. "type": "object",
  1504. "properties": {
  1505. "count": {
  1506. "description": "出厂数量",
  1507. "type": "integer"
  1508. },
  1509. "genre": {
  1510. "description": "0 售卖,1 返厂 2 置换",
  1511. "type": "integer"
  1512. },
  1513. "id": {
  1514. "type": "integer"
  1515. },
  1516. "importdate": {
  1517. "description": "导入时间",
  1518. "type": "string"
  1519. },
  1520. "pastureid": {
  1521. "description": "牧场id",
  1522. "type": "string"
  1523. },
  1524. "pasturename": {
  1525. "description": "牧场id",
  1526. "type": "string"
  1527. },
  1528. "recall": {
  1529. "description": "关联召回批次数",
  1530. "type": "integer"
  1531. }
  1532. }
  1533. },
  1534. "v1.ManagementBh": {
  1535. "type": "object",
  1536. "properties": {
  1537. "code": {
  1538. "description": "脖环编码",
  1539. "type": "string"
  1540. },
  1541. "date": {
  1542. "description": "日期",
  1543. "type": "string"
  1544. },
  1545. "managementid": {
  1546. "description": "脖环管理ID",
  1547. "type": "integer"
  1548. }
  1549. }
  1550. },
  1551. "v1.NeckRingListing": {
  1552. "type": "object",
  1553. "properties": {
  1554. "barid": {
  1555. "description": "栏舍id",
  1556. "type": "integer"
  1557. },
  1558. "barname": {
  1559. "description": "栏舍名称",
  1560. "type": "string"
  1561. },
  1562. "batch": {
  1563. "description": "批次",
  1564. "type": "string"
  1565. },
  1566. "cattle": {
  1567. "description": "牛号",
  1568. "type": "string"
  1569. },
  1570. "code": {
  1571. "description": "脖环编码",
  1572. "type": "integer"
  1573. },
  1574. "id": {
  1575. "type": "integer"
  1576. },
  1577. "manufacturedate": {
  1578. "description": "生产日期",
  1579. "type": "string"
  1580. },
  1581. "name": {
  1582. "description": "脖环名称",
  1583. "type": "string"
  1584. },
  1585. "purchasedate": {
  1586. "description": "购入日期",
  1587. "type": "string"
  1588. },
  1589. "status": {
  1590. "description": "脖环状态",
  1591. "type": "integer"
  1592. }
  1593. }
  1594. },
  1595. "v1.PastureList": {
  1596. "type": "object",
  1597. "properties": {
  1598. "pasturecode": {
  1599. "type": "string"
  1600. },
  1601. "pastureid": {
  1602. "type": "string"
  1603. },
  1604. "pasturename": {
  1605. "type": "string"
  1606. }
  1607. }
  1608. },
  1609. "v1.Recall": {
  1610. "type": "object",
  1611. "properties": {
  1612. "batch": {
  1613. "description": "出厂批次",
  1614. "type": "string"
  1615. },
  1616. "count": {
  1617. "description": "出厂数量",
  1618. "type": "integer"
  1619. },
  1620. "createname": {
  1621. "description": "登记人",
  1622. "type": "string"
  1623. },
  1624. "createtime": {
  1625. "description": "登记时间",
  1626. "type": "string"
  1627. },
  1628. "id": {
  1629. "type": "integer"
  1630. },
  1631. "pastureid": {
  1632. "description": "牧场id",
  1633. "type": "string"
  1634. },
  1635. "pasturename": {
  1636. "description": "牧场名称",
  1637. "type": "string"
  1638. },
  1639. "recall": {
  1640. "description": "关联召回批次数",
  1641. "type": "integer"
  1642. }
  1643. }
  1644. },
  1645. "v1.Receiver": {
  1646. "type": "object",
  1647. "properties": {
  1648. "barid": {
  1649. "description": "栏舍id",
  1650. "type": "string"
  1651. },
  1652. "barname": {
  1653. "description": "栏舍名称",
  1654. "type": "string"
  1655. },
  1656. "card": {
  1657. "description": "sim编码 卡号",
  1658. "type": "string"
  1659. },
  1660. "code": {
  1661. "description": "接收器编码",
  1662. "type": "string"
  1663. },
  1664. "id": {
  1665. "type": "integer"
  1666. },
  1667. "image": {
  1668. "description": "图片地址",
  1669. "type": "string"
  1670. },
  1671. "location": {
  1672. "description": "安装位置 设备位置(1:奶厅1,2:奶厅2)",
  1673. "type": "string"
  1674. },
  1675. "pasturecode": {
  1676. "description": "牧场编码",
  1677. "type": "string"
  1678. },
  1679. "pastureid": {
  1680. "description": "牧场id",
  1681. "type": "string"
  1682. },
  1683. "pasturename": {
  1684. "description": "牧场名称",
  1685. "type": "string"
  1686. },
  1687. "receiverid": {
  1688. "type": "integer"
  1689. },
  1690. "simid": {
  1691. "description": "栏舍id",
  1692. "type": "integer"
  1693. },
  1694. "status": {
  1695. "description": "脖环状态",
  1696. "type": "integer"
  1697. },
  1698. "style": {
  1699. "$ref": "#/definitions/v1.Style"
  1700. },
  1701. "updatedate": {
  1702. "description": "最后修改时间",
  1703. "type": "string"
  1704. }
  1705. }
  1706. },
  1707. "v1.Sim": {
  1708. "type": "object",
  1709. "properties": {
  1710. "activatedate": {
  1711. "description": "激活日期",
  1712. "type": "string"
  1713. },
  1714. "barid": {
  1715. "description": "栏舍id",
  1716. "type": "string"
  1717. },
  1718. "barname": {
  1719. "description": "栏舍名称",
  1720. "type": "string"
  1721. },
  1722. "card": {
  1723. "description": "sim卡号",
  1724. "type": "string"
  1725. },
  1726. "company": {
  1727. "description": "公司",
  1728. "type": "string"
  1729. },
  1730. "enddate": {
  1731. "description": "充值日期",
  1732. "type": "string"
  1733. },
  1734. "id": {
  1735. "type": "integer"
  1736. },
  1737. "pasturecode": {
  1738. "description": "牧场编码",
  1739. "type": "string"
  1740. },
  1741. "pastureid": {
  1742. "description": "牧场id",
  1743. "type": "string"
  1744. },
  1745. "pasturename": {
  1746. "description": "牧场名称",
  1747. "type": "string"
  1748. },
  1749. "purchasedate": {
  1750. "description": "购入日期",
  1751. "type": "string"
  1752. },
  1753. "receivercode": {
  1754. "description": "接收器编码",
  1755. "type": "string"
  1756. },
  1757. "receiverid": {
  1758. "description": "接收器id",
  1759. "type": "integer"
  1760. },
  1761. "remaining": {
  1762. "description": "剩余流量",
  1763. "type": "string"
  1764. },
  1765. "status": {
  1766. "description": "状态",
  1767. "type": "integer"
  1768. },
  1769. "topupdate": {
  1770. "description": "充值日期",
  1771. "type": "string"
  1772. },
  1773. "totalflow": {
  1774. "description": "总流量",
  1775. "type": "string"
  1776. },
  1777. "used": {
  1778. "description": "已用流量",
  1779. "type": "string"
  1780. }
  1781. }
  1782. },
  1783. "v1.SimPull": {
  1784. "type": "object",
  1785. "properties": {
  1786. "card": {
  1787. "description": "sim卡号",
  1788. "type": "string"
  1789. },
  1790. "id": {
  1791. "type": "integer"
  1792. }
  1793. }
  1794. },
  1795. "v1.Style": {
  1796. "type": "object",
  1797. "properties": {
  1798. "left": {
  1799. "type": "string"
  1800. },
  1801. "top": {
  1802. "type": "string"
  1803. }
  1804. }
  1805. }
  1806. }
  1807. }`
  1808. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1809. var SwaggerInfo = &swag.Spec{
  1810. Version: "",
  1811. Host: "",
  1812. BasePath: "",
  1813. Schemes: []string{},
  1814. Title: "",
  1815. Description: "",
  1816. InfoInstanceName: "swagger",
  1817. SwaggerTemplate: docTemplate,
  1818. }
  1819. func init() {
  1820. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  1821. }