swagger.json 57 KB

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