swagger.yaml 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886
  1. basePath: /api
  2. definitions:
  3. dto.BatchStockTemplateInInsertReq:
  4. properties:
  5. stockInList:
  6. items:
  7. properties:
  8. date:
  9. description: 入库日期
  10. type: string
  11. forwardingUnit:
  12. description: 发货单位
  13. type: string
  14. medicineInfo:
  15. additionalProperties: true
  16. description: 药品信息
  17. type: object
  18. operator:
  19. description: 经办人
  20. type: string
  21. quantity:
  22. description: 数量
  23. type: integer
  24. unitPrice:
  25. description: 购入单价
  26. type: number
  27. type: object
  28. type: array
  29. type: object
  30. dto.DosageFormDeleteReq:
  31. properties:
  32. id:
  33. type: integer
  34. type: object
  35. dto.DosageFormGetReq:
  36. properties:
  37. id:
  38. type: integer
  39. type: object
  40. dto.DosageFormInsertReq:
  41. properties:
  42. name:
  43. description: 剂型
  44. example: 剂型
  45. type: string
  46. type: object
  47. dto.DosageFormPageReq:
  48. properties:
  49. name:
  50. description: 名称
  51. example: ""
  52. type: string
  53. page:
  54. description: 页数
  55. example: 1
  56. type: integer
  57. pageSize:
  58. description: 每页条数
  59. example: 10
  60. type: integer
  61. type: object
  62. dto.DosageFormUpdateReq:
  63. properties:
  64. id:
  65. example: 1
  66. type: integer
  67. name:
  68. description: 剂型
  69. example: 剂型
  70. type: string
  71. type: object
  72. dto.EnterpriseDeleteReq:
  73. properties:
  74. id:
  75. type: integer
  76. type: object
  77. dto.EnterpriseGetReq:
  78. properties:
  79. id:
  80. type: integer
  81. type: object
  82. dto.EnterpriseInsertReq:
  83. properties:
  84. name:
  85. description: 生产企业
  86. example: 生产企业
  87. type: string
  88. type: object
  89. dto.EnterprisePageReq:
  90. properties:
  91. name:
  92. description: 名称
  93. example: ""
  94. type: string
  95. page:
  96. description: 页数
  97. example: 1
  98. type: integer
  99. pageSize:
  100. description: 每页条数
  101. example: 10
  102. type: integer
  103. type: object
  104. dto.EnterpriseUpdateReq:
  105. properties:
  106. id:
  107. example: 1
  108. type: integer
  109. name:
  110. description: 生产企业
  111. example: 生产企业
  112. type: string
  113. type: object
  114. dto.MedicineBatchNumberReq:
  115. properties:
  116. batchNumber:
  117. description: 批号
  118. type: string
  119. enterpriseId:
  120. description: 生产企业id
  121. type: integer
  122. productId:
  123. description: 药品名称id
  124. type: integer
  125. type: object
  126. dto.MedicineTemplateDeleteReq:
  127. properties:
  128. id:
  129. type: integer
  130. type: object
  131. dto.MedicineTemplateInitializeReq:
  132. properties:
  133. deptId:
  134. description: 更新者
  135. type: integer
  136. type: object
  137. dto.MedicineTemplateInsertReq:
  138. properties:
  139. name:
  140. description: 标签名称
  141. type: string
  142. show:
  143. description: 1-显示 2-隐藏
  144. type: integer
  145. sort:
  146. description: 排序
  147. type: integer
  148. text:
  149. description: 描述
  150. type: string
  151. type:
  152. description: 数据类型
  153. type: integer
  154. width:
  155. description: 宽度
  156. type: integer
  157. type: object
  158. dto.MedicineTemplateUpdateReq:
  159. properties:
  160. id:
  161. type: integer
  162. name:
  163. description: 标签名称
  164. type: string
  165. show:
  166. description: 1-显示 2-隐藏
  167. type: integer
  168. sort:
  169. description: 排序
  170. type: integer
  171. text:
  172. description: 描述
  173. type: string
  174. width:
  175. description: 宽度
  176. type: integer
  177. type: object
  178. dto.ProductDeleteReq:
  179. properties:
  180. id:
  181. type: integer
  182. type: object
  183. dto.ProductGetReq:
  184. properties:
  185. id:
  186. type: integer
  187. type: object
  188. dto.ProductInsertReq:
  189. properties:
  190. name:
  191. description: 品名
  192. example: 品名
  193. type: string
  194. type: object
  195. dto.ProductPageReq:
  196. properties:
  197. name:
  198. description: 名称
  199. example: ""
  200. type: string
  201. page:
  202. description: 页数
  203. example: 1
  204. type: integer
  205. pageSize:
  206. description: 每页条数
  207. example: 10
  208. type: integer
  209. type: object
  210. dto.ProductUpdateReq:
  211. properties:
  212. id:
  213. example: 1
  214. type: integer
  215. name:
  216. description: 品名
  217. example: 品名
  218. type: string
  219. type: object
  220. dto.RoleApiUpdateReq:
  221. properties:
  222. apiList:
  223. description: api路由列表
  224. items:
  225. $ref: '#/definitions/model.BeegoApi'
  226. type: array
  227. roleKey:
  228. description: 服务id
  229. example: test
  230. type: string
  231. type: object
  232. dto.SalesOrderPageReq:
  233. properties:
  234. batchNumber:
  235. description: 批号
  236. type: string
  237. date:
  238. description: 下单日期
  239. type: string
  240. enterpriseId:
  241. description: 生产企业id
  242. type: integer
  243. page:
  244. description: 页数
  245. example: 1
  246. type: integer
  247. pageSize:
  248. description: 每页条数
  249. example: 10
  250. type: integer
  251. productId:
  252. description: 药品名称id
  253. type: integer
  254. receivingUnit:
  255. description: 收货单位
  256. type: string
  257. type: object
  258. dto.SalesPageReq:
  259. properties:
  260. batchNumber:
  261. description: 批号
  262. type: string
  263. endDate:
  264. description: 出库结束时间
  265. type: string
  266. enterpriseId:
  267. description: 生产企业id
  268. type: integer
  269. page:
  270. description: 页数
  271. example: 1
  272. type: integer
  273. pageSize:
  274. description: 每页条数
  275. example: 10
  276. type: integer
  277. productId:
  278. description: 药品名称id
  279. type: integer
  280. receivingUnit:
  281. description: 收货单位
  282. type: string
  283. startDate:
  284. description: 出库开始时间
  285. type: string
  286. type: object
  287. dto.SalesStockOutExcelReq:
  288. properties:
  289. consignee:
  290. description: 收货人
  291. type: string
  292. consigner:
  293. description: 发货人
  294. type: string
  295. date:
  296. description: 下单日期
  297. type: string
  298. drawer:
  299. description: 开票员
  300. type: string
  301. finance:
  302. description: 财务
  303. type: string
  304. receivingUnit:
  305. description: 收货单位
  306. type: string
  307. type:
  308. type: string
  309. type: object
  310. dto.SpecDeleteReq:
  311. properties:
  312. id:
  313. type: integer
  314. type: object
  315. dto.SpecGetReq:
  316. properties:
  317. id:
  318. type: integer
  319. type: object
  320. dto.SpecInsertReq:
  321. properties:
  322. name:
  323. description: 规格
  324. example: 规格
  325. type: string
  326. type: object
  327. dto.SpecPageReq:
  328. properties:
  329. name:
  330. description: 名称
  331. example: ""
  332. type: string
  333. page:
  334. description: 页数
  335. example: 1
  336. type: integer
  337. pageSize:
  338. description: 每页条数
  339. example: 10
  340. type: integer
  341. type: object
  342. dto.SpecUpdateReq:
  343. properties:
  344. id:
  345. example: 1
  346. type: integer
  347. name:
  348. description: 规格
  349. example: 规格
  350. type: string
  351. type: object
  352. dto.StockOperatorListReq:
  353. properties:
  354. name:
  355. type: string
  356. type: object
  357. dto.StockStatListReq:
  358. properties:
  359. batchNumber:
  360. description: 批号
  361. type: string
  362. endDate:
  363. description: 失效日期结束时间
  364. type: string
  365. enterpriseId:
  366. description: 生产企业id
  367. type: integer
  368. page:
  369. description: 页数
  370. example: 1
  371. type: integer
  372. pageSize:
  373. description: 每页条数
  374. example: 10
  375. type: integer
  376. productId:
  377. description: 药品名称id
  378. type: integer
  379. startDate:
  380. description: 失效日期开始时间
  381. type: string
  382. type: object
  383. dto.StockTemplateInDeleteReq:
  384. properties:
  385. id:
  386. description: 入库id
  387. type: integer
  388. type: object
  389. dto.StockTemplateInEditReq:
  390. properties:
  391. date:
  392. description: 入库日期
  393. type: string
  394. forwarding_unit:
  395. description: 发货单位
  396. type: string
  397. id:
  398. description: 入库id
  399. type: integer
  400. medicineInfo:
  401. additionalProperties: true
  402. description: 药品信息
  403. type: object
  404. operator:
  405. description: 经办人
  406. type: string
  407. quantity:
  408. description: 数量
  409. type: integer
  410. unit_Price:
  411. description: 购入单价
  412. type: number
  413. type: object
  414. dto.StockTemplateInInsertReq:
  415. properties:
  416. date:
  417. description: 入库日期
  418. type: string
  419. forwardingUnit:
  420. description: 发货单位
  421. type: string
  422. medicineInfo:
  423. additionalProperties: true
  424. description: 药品信息
  425. type: object
  426. operator:
  427. description: 经办人
  428. type: string
  429. quantity:
  430. description: 数量
  431. type: integer
  432. unitPrice:
  433. description: 购入单价
  434. type: number
  435. type: object
  436. dto.StockTemplateInPageReq:
  437. properties:
  438. batchNumber:
  439. description: 批号
  440. type: string
  441. endDate:
  442. description: 入库结束时间
  443. type: string
  444. enterpriseId:
  445. description: 生产企业id
  446. type: integer
  447. forwardingUnit:
  448. description: 发货单位
  449. type: string
  450. page:
  451. description: 页数
  452. example: 1
  453. type: integer
  454. pageSize:
  455. description: 每页条数
  456. example: 10
  457. type: integer
  458. productId:
  459. description: 药品名称id
  460. type: integer
  461. startDate:
  462. description: 入库开始时间
  463. type: string
  464. type: object
  465. dto.StockTemplateInventoryExcelReq:
  466. properties:
  467. batchNumber:
  468. description: 批号
  469. type: string
  470. endDate:
  471. description: 出/入库结束时间
  472. type: string
  473. enterpriseId:
  474. description: 生产企业id
  475. type: integer
  476. productId:
  477. description: 药品名称id
  478. type: integer
  479. specId:
  480. description: 规格id
  481. type: integer
  482. startDate:
  483. description: 出/入库开始时间
  484. type: string
  485. type:
  486. description: 类型 excel pdf
  487. type: string
  488. type: object
  489. dto.StockTemplateInventoryPageReq:
  490. properties:
  491. SendReceiveUnit:
  492. description: 收发单位
  493. type: string
  494. batchNumber:
  495. description: 批号
  496. type: string
  497. endDate:
  498. description: 出/入库结束时间
  499. type: string
  500. enterpriseId:
  501. description: 生产企业id
  502. type: integer
  503. page:
  504. description: 页数
  505. example: 1
  506. type: integer
  507. pageSize:
  508. description: 每页条数
  509. example: 10
  510. type: integer
  511. productId:
  512. description: 药品名称id
  513. type: integer
  514. startDate:
  515. description: 出/入库开始时间
  516. type: string
  517. type: object
  518. dto.StockTemplateOutDeleteReq:
  519. properties:
  520. id:
  521. type: integer
  522. type: object
  523. dto.StockTemplateOutEditReq:
  524. properties:
  525. date:
  526. description: 出库日期
  527. type: string
  528. id:
  529. type: integer
  530. medicineInfo:
  531. additionalProperties: true
  532. description: 药品信息
  533. type: object
  534. operator:
  535. description: 经办人
  536. type: string
  537. quantity:
  538. description: 数量
  539. type: integer
  540. receiving_unit:
  541. description: 收货单位
  542. type: string
  543. unit_price:
  544. description: 购入单价
  545. type: number
  546. type: object
  547. dto.StockTemplateOutInsertReq:
  548. properties:
  549. date:
  550. description: 出库日期
  551. type: string
  552. medicineInfo:
  553. additionalProperties: true
  554. description: 药品信息
  555. type: object
  556. operator:
  557. description: 经办人
  558. type: string
  559. quantity:
  560. description: 数量
  561. type: integer
  562. receivingUnit:
  563. description: 收货单位
  564. type: string
  565. unitPrice:
  566. description: 购入单价
  567. type: number
  568. type: object
  569. dto.StockTemplateOutPageReq:
  570. properties:
  571. batchNumber:
  572. description: 批号
  573. type: string
  574. endDate:
  575. description: 出库结束时间
  576. type: string
  577. enterpriseId:
  578. description: 生产企业id
  579. type: integer
  580. page:
  581. description: 页数
  582. example: 1
  583. type: integer
  584. pageSize:
  585. description: 每页条数
  586. example: 10
  587. type: integer
  588. productId:
  589. description: 药品名称id
  590. type: integer
  591. receivingUnit:
  592. description: 收货单位
  593. type: string
  594. startDate:
  595. description: 出库开始时间
  596. type: string
  597. type: object
  598. dto.StockUnitListReq:
  599. properties:
  600. name:
  601. type: string
  602. type:
  603. description: 1-入库 2-出库 3-库存
  604. type: integer
  605. type: object
  606. dto.TransportRecordWordReq:
  607. properties:
  608. date:
  609. description: 出库时间
  610. type: string
  611. productId:
  612. description: 药品名称id
  613. type: integer
  614. receivingUnit:
  615. description: 收货单位
  616. type: string
  617. type:
  618. description: 类型
  619. type: string
  620. type: object
  621. dto.UnitDeleteReq:
  622. properties:
  623. id:
  624. type: integer
  625. type: object
  626. dto.UnitGetReq:
  627. properties:
  628. id:
  629. type: integer
  630. type: object
  631. dto.UnitInsertReq:
  632. properties:
  633. name:
  634. description: 规格
  635. example: 规格
  636. type: string
  637. type: object
  638. dto.UnitPageReq:
  639. properties:
  640. name:
  641. description: 名称
  642. example: ""
  643. type: string
  644. page:
  645. description: 页数
  646. example: 1
  647. type: integer
  648. pageSize:
  649. description: 每页条数
  650. example: 10
  651. type: integer
  652. type: object
  653. dto.UnitUpdateReq:
  654. properties:
  655. id:
  656. example: 1
  657. type: integer
  658. name:
  659. description: 规格
  660. example: 规格
  661. type: string
  662. type: object
  663. model.BeegoApi:
  664. properties:
  665. action:
  666. description: 请求类型
  667. example: Get
  668. type: string
  669. name:
  670. description: 标题
  671. example: test
  672. type: string
  673. path:
  674. description: 地址
  675. example: /test
  676. type: string
  677. serviceId:
  678. description: 服务ID
  679. example: 1
  680. type: integer
  681. type: object
  682. models.DosageForm:
  683. properties:
  684. createBy:
  685. description: 创建者
  686. type: integer
  687. createdAt:
  688. description: 创建时间
  689. type: string
  690. deptId:
  691. description: 更新者
  692. type: integer
  693. id:
  694. description: 主键编码
  695. type: integer
  696. name:
  697. description: 剂型名称
  698. type: string
  699. updateBy:
  700. description: 更新者
  701. type: integer
  702. updatedAt:
  703. description: 最后更新时间
  704. type: string
  705. type: object
  706. models.Enterprise:
  707. properties:
  708. createBy:
  709. description: 创建者
  710. type: integer
  711. createdAt:
  712. description: 创建时间
  713. type: string
  714. deptId:
  715. description: 更新者
  716. type: integer
  717. id:
  718. description: 主键编码
  719. type: integer
  720. name:
  721. description: 生产企业名称
  722. type: string
  723. updateBy:
  724. description: 更新者
  725. type: integer
  726. updatedAt:
  727. description: 最后更新时间
  728. type: string
  729. type: object
  730. models.MedicineTemplate:
  731. properties:
  732. createBy:
  733. description: 创建者
  734. type: integer
  735. createdAt:
  736. description: 创建时间
  737. type: string
  738. deptId:
  739. description: 更新者
  740. type: integer
  741. field_name:
  742. description: 英语名称
  743. type: string
  744. id:
  745. description: 主键编码
  746. type: integer
  747. name:
  748. description: 标签名称
  749. type: string
  750. show:
  751. description: 1-显示 2-隐藏
  752. type: integer
  753. sort:
  754. description: 排序
  755. type: integer
  756. state:
  757. description: 1-系统初始化 2-用户添加
  758. type: integer
  759. text:
  760. description: 描述
  761. type: string
  762. type:
  763. description: 数据类型
  764. type: integer
  765. updateBy:
  766. description: 更新者
  767. type: integer
  768. updatedAt:
  769. description: 最后更新时间
  770. type: string
  771. width:
  772. description: 宽度
  773. type: integer
  774. type: object
  775. models.Product:
  776. properties:
  777. createBy:
  778. description: 创建者
  779. type: integer
  780. createdAt:
  781. description: 创建时间
  782. type: string
  783. deptId:
  784. description: 更新者
  785. type: integer
  786. id:
  787. description: 主键编码
  788. type: integer
  789. name:
  790. description: 产品名称
  791. type: string
  792. updateBy:
  793. description: 更新者
  794. type: integer
  795. updatedAt:
  796. description: 最后更新时间
  797. type: string
  798. type: object
  799. models.Spec:
  800. properties:
  801. createBy:
  802. description: 创建者
  803. type: integer
  804. createdAt:
  805. description: 创建时间
  806. type: string
  807. deptId:
  808. description: 更新者
  809. type: integer
  810. id:
  811. description: 主键编码
  812. type: integer
  813. name:
  814. description: 规格名称
  815. type: string
  816. updateBy:
  817. description: 更新者
  818. type: integer
  819. updatedAt:
  820. description: 最后更新时间
  821. type: string
  822. type: object
  823. models.Unit:
  824. properties:
  825. createBy:
  826. description: 创建者
  827. type: integer
  828. createdAt:
  829. description: 创建时间
  830. type: string
  831. deptId:
  832. description: 更新者
  833. type: integer
  834. id:
  835. description: 主键编码
  836. type: integer
  837. name:
  838. description: 单位名称
  839. type: string
  840. updateBy:
  841. description: 更新者
  842. type: integer
  843. updatedAt:
  844. description: 最后更新时间
  845. type: string
  846. type: object
  847. response.Data:
  848. properties:
  849. count:
  850. description: 总数
  851. type: integer
  852. list: {}
  853. page:
  854. description: 页码
  855. type: integer
  856. pageSize:
  857. description: 页条数
  858. type: integer
  859. type: object
  860. response.Page:
  861. properties:
  862. code:
  863. type: integer
  864. data:
  865. $ref: '#/definitions/response.Data'
  866. msg:
  867. type: string
  868. requestId:
  869. type: string
  870. status:
  871. type: string
  872. type: object
  873. response.Response:
  874. properties:
  875. code:
  876. type: integer
  877. data: {}
  878. msg:
  879. type: string
  880. requestId:
  881. type: string
  882. status:
  883. type: string
  884. type: object
  885. host: 192.168.11.77:8110
  886. info:
  887. contact: {}
  888. description: 药品进销存管理系统
  889. title: 药品进销存管理系统
  890. version: "1.0"
  891. paths:
  892. /api/role-api:
  893. post:
  894. consumes:
  895. - application/json
  896. description: 修改角色路由权限
  897. parameters:
  898. - description: body
  899. in: body
  900. name: body
  901. required: true
  902. schema:
  903. $ref: '#/definitions/dto.RoleApiUpdateReq'
  904. responses:
  905. "200":
  906. description: '{"code": 200, "data": [...]}'
  907. schema:
  908. $ref: '#/definitions/response.Response'
  909. security:
  910. - Bearer: []
  911. summary: 对接统一身份认证(前端暂时忽略)
  912. tags:
  913. - 角色
  914. /dosage-form/add:
  915. post:
  916. consumes:
  917. - application/json
  918. description: 添加剂型
  919. parameters:
  920. - description: data
  921. in: body
  922. name: data
  923. required: true
  924. schema:
  925. $ref: '#/definitions/dto.DosageFormInsertReq'
  926. responses:
  927. "200":
  928. description: '{"code": 200, "data": [...]}'
  929. schema:
  930. $ref: '#/definitions/response.Response'
  931. security:
  932. - Bearer: []
  933. summary: 添加剂型
  934. tags:
  935. - 剂型
  936. /dosage-form/delete:
  937. post:
  938. consumes:
  939. - application/json
  940. description: 删除剂型
  941. parameters:
  942. - description: 请求参数
  943. in: body
  944. name: id
  945. required: true
  946. schema:
  947. $ref: '#/definitions/dto.DosageFormDeleteReq'
  948. responses:
  949. "200":
  950. description: '{"code": 200, "data": [...]}'
  951. schema:
  952. $ref: '#/definitions/response.Response'
  953. security:
  954. - Bearer: []
  955. summary: 删除剂型
  956. tags:
  957. - 剂型
  958. /dosage-form/detail:
  959. post:
  960. description: 通过id获取剂型
  961. parameters:
  962. - description: body
  963. in: body
  964. name: body
  965. required: true
  966. schema:
  967. $ref: '#/definitions/dto.DosageFormGetReq'
  968. responses:
  969. "200":
  970. description: '{"code": 200, "data": [...]}'
  971. schema:
  972. allOf:
  973. - $ref: '#/definitions/response.Response'
  974. - properties:
  975. data:
  976. $ref: '#/definitions/models.DosageForm'
  977. type: object
  978. security:
  979. - Bearer: []
  980. summary: 通过id获取剂型
  981. tags:
  982. - 剂型
  983. /dosage-form/edit:
  984. post:
  985. consumes:
  986. - application/json
  987. description: 修改剂型
  988. parameters:
  989. - description: body
  990. in: body
  991. name: data
  992. required: true
  993. schema:
  994. $ref: '#/definitions/dto.DosageFormUpdateReq'
  995. responses:
  996. "200":
  997. description: '{"code": 200, "data": [...]}'
  998. schema:
  999. $ref: '#/definitions/response.Response'
  1000. security:
  1001. - Bearer: []
  1002. summary: 修改剂型
  1003. tags:
  1004. - 剂型
  1005. /dosage-form/list:
  1006. post:
  1007. description: 获取剂型列表
  1008. parameters:
  1009. - description: body
  1010. in: body
  1011. name: body
  1012. required: true
  1013. schema:
  1014. $ref: '#/definitions/dto.DosageFormPageReq'
  1015. responses:
  1016. "200":
  1017. description: '{"code": 200, "data": [...]}'
  1018. schema:
  1019. allOf:
  1020. - $ref: '#/definitions/response.Page'
  1021. - properties:
  1022. list:
  1023. items:
  1024. $ref: '#/definitions/models.DosageForm'
  1025. type: array
  1026. type: object
  1027. security:
  1028. - Bearer: []
  1029. summary: 获取剂型列表
  1030. tags:
  1031. - 剂型
  1032. /enterprise/add:
  1033. post:
  1034. consumes:
  1035. - application/json
  1036. description: 添加生产企业
  1037. parameters:
  1038. - description: data
  1039. in: body
  1040. name: data
  1041. required: true
  1042. schema:
  1043. $ref: '#/definitions/dto.EnterpriseInsertReq'
  1044. responses:
  1045. "200":
  1046. description: '{"code": 200, "data": [...]}'
  1047. schema:
  1048. $ref: '#/definitions/response.Response'
  1049. security:
  1050. - Bearer: []
  1051. summary: 添加生产企业
  1052. tags:
  1053. - 生产企业
  1054. /enterprise/delete:
  1055. post:
  1056. consumes:
  1057. - application/json
  1058. description: 删除生产企业
  1059. parameters:
  1060. - description: 请求参数
  1061. in: body
  1062. name: id
  1063. required: true
  1064. schema:
  1065. $ref: '#/definitions/dto.EnterpriseDeleteReq'
  1066. responses:
  1067. "200":
  1068. description: '{"code": 200, "data": [...]}'
  1069. schema:
  1070. $ref: '#/definitions/response.Response'
  1071. security:
  1072. - Bearer: []
  1073. summary: 删除生产企业
  1074. tags:
  1075. - 生产企业
  1076. /enterprise/detail:
  1077. post:
  1078. description: 通过id获取生产企业
  1079. parameters:
  1080. - description: body
  1081. in: body
  1082. name: body
  1083. required: true
  1084. schema:
  1085. $ref: '#/definitions/dto.EnterpriseGetReq'
  1086. responses:
  1087. "200":
  1088. description: '{"code": 200, "data": [...]}'
  1089. schema:
  1090. allOf:
  1091. - $ref: '#/definitions/response.Response'
  1092. - properties:
  1093. data:
  1094. $ref: '#/definitions/models.Enterprise'
  1095. type: object
  1096. security:
  1097. - Bearer: []
  1098. summary: 通过id获取生产企业
  1099. tags:
  1100. - 生产企业
  1101. /enterprise/edit:
  1102. post:
  1103. consumes:
  1104. - application/json
  1105. description: 修改生产企业
  1106. parameters:
  1107. - description: body
  1108. in: body
  1109. name: data
  1110. required: true
  1111. schema:
  1112. $ref: '#/definitions/dto.EnterpriseUpdateReq'
  1113. responses:
  1114. "200":
  1115. description: '{"code": 200, "data": [...]}'
  1116. schema:
  1117. $ref: '#/definitions/response.Response'
  1118. security:
  1119. - Bearer: []
  1120. summary: 修改生产企业
  1121. tags:
  1122. - 生产企业
  1123. /enterprise/list:
  1124. post:
  1125. description: 获取生产企业列表
  1126. parameters:
  1127. - description: body
  1128. in: body
  1129. name: body
  1130. required: true
  1131. schema:
  1132. $ref: '#/definitions/dto.EnterprisePageReq'
  1133. responses:
  1134. "200":
  1135. description: '{"code": 200, "data": [...]}'
  1136. schema:
  1137. allOf:
  1138. - $ref: '#/definitions/response.Page'
  1139. - properties:
  1140. list:
  1141. items:
  1142. $ref: '#/definitions/models.Enterprise'
  1143. type: array
  1144. type: object
  1145. security:
  1146. - Bearer: []
  1147. summary: 获取生产企业列表
  1148. tags:
  1149. - 生产企业
  1150. /medicine-template/add:
  1151. post:
  1152. description: 添加模版字段
  1153. parameters:
  1154. - description: data
  1155. in: body
  1156. name: data
  1157. required: true
  1158. schema:
  1159. $ref: '#/definitions/dto.MedicineTemplateInsertReq'
  1160. responses:
  1161. "200":
  1162. description: '{"code": 200, "data": [...]}'
  1163. schema:
  1164. $ref: '#/definitions/response.Response'
  1165. security:
  1166. - Bearer: []
  1167. summary: 添加模版字段
  1168. tags:
  1169. - 药品信息模板
  1170. /medicine-template/columns:
  1171. post:
  1172. description: 获取品名列表
  1173. responses:
  1174. "200":
  1175. description: '{"code": 200, "data": [...]}'
  1176. schema:
  1177. allOf:
  1178. - $ref: '#/definitions/response.Page'
  1179. - properties:
  1180. list:
  1181. items:
  1182. $ref: '#/definitions/models.MedicineTemplate'
  1183. type: array
  1184. type: object
  1185. security:
  1186. - Bearer: []
  1187. summary: 获取品名列表
  1188. tags:
  1189. - 药品信息模板
  1190. /medicine-template/delete:
  1191. post:
  1192. consumes:
  1193. - application/json
  1194. description: 删除模版字段
  1195. parameters:
  1196. - description: body
  1197. in: body
  1198. name: data
  1199. required: true
  1200. schema:
  1201. $ref: '#/definitions/dto.MedicineTemplateDeleteReq'
  1202. responses:
  1203. "200":
  1204. description: '{"code": 200, "data": [...]}'
  1205. schema:
  1206. $ref: '#/definitions/response.Response'
  1207. security:
  1208. - Bearer: []
  1209. summary: 删除模版字段
  1210. tags:
  1211. - 药品信息模板
  1212. /medicine-template/edit:
  1213. post:
  1214. description: 修改模版字段
  1215. parameters:
  1216. - description: body
  1217. in: body
  1218. name: data
  1219. required: true
  1220. schema:
  1221. $ref: '#/definitions/dto.MedicineTemplateUpdateReq'
  1222. responses:
  1223. "200":
  1224. description: '{"code": 200, "data": [...]}'
  1225. schema:
  1226. $ref: '#/definitions/response.Response'
  1227. security:
  1228. - Bearer: []
  1229. summary: 修改模版字段
  1230. tags:
  1231. - 药品信息模板
  1232. /medicine-template/list:
  1233. post:
  1234. description: 获取品名列表
  1235. responses:
  1236. "200":
  1237. description: '{"code": 200, "data": [...]}'
  1238. schema:
  1239. allOf:
  1240. - $ref: '#/definitions/response.Page'
  1241. - properties:
  1242. list:
  1243. items:
  1244. $ref: '#/definitions/models.MedicineTemplate'
  1245. type: array
  1246. type: object
  1247. security:
  1248. - Bearer: []
  1249. summary: 获取品名列表
  1250. tags:
  1251. - 药品信息模板
  1252. /medicine-template/list-for-stock:
  1253. post:
  1254. description: 获取入库列表
  1255. responses:
  1256. "200":
  1257. description: '{"code": 200, "data": [...]}'
  1258. schema:
  1259. allOf:
  1260. - $ref: '#/definitions/response.Page'
  1261. - properties:
  1262. list:
  1263. items:
  1264. $ref: '#/definitions/models.MedicineTemplate'
  1265. type: array
  1266. type: object
  1267. security:
  1268. - Bearer: []
  1269. summary: 获取入库列表
  1270. tags:
  1271. - 药品信息模板
  1272. /medicine/basic-data-stat:
  1273. post:
  1274. description: 基本数据统计
  1275. responses:
  1276. "200":
  1277. description: '{"code": 200, "data": [...]}'
  1278. schema:
  1279. $ref: '#/definitions/response.Page'
  1280. security:
  1281. - Bearer: []
  1282. summary: 基本数据统计
  1283. tags:
  1284. - 药品
  1285. /medicine/batch-number:
  1286. post:
  1287. description: 批号列表
  1288. parameters:
  1289. - description: body
  1290. in: body
  1291. name: data
  1292. required: true
  1293. schema:
  1294. $ref: '#/definitions/dto.MedicineBatchNumberReq'
  1295. responses:
  1296. "200":
  1297. description: '{"code": 200, "data": [...]}'
  1298. schema:
  1299. $ref: '#/definitions/response.Page'
  1300. security:
  1301. - Bearer: []
  1302. summary: 批号列表
  1303. tags:
  1304. - 药品
  1305. /product/add:
  1306. post:
  1307. consumes:
  1308. - application/json
  1309. description: 添加品名
  1310. parameters:
  1311. - description: data
  1312. in: body
  1313. name: data
  1314. required: true
  1315. schema:
  1316. $ref: '#/definitions/dto.ProductInsertReq'
  1317. responses:
  1318. "200":
  1319. description: '{"code": 200, "data": [...]}'
  1320. schema:
  1321. $ref: '#/definitions/response.Response'
  1322. security:
  1323. - Bearer: []
  1324. summary: 添加品名
  1325. tags:
  1326. - 品名
  1327. /product/delete:
  1328. post:
  1329. consumes:
  1330. - application/json
  1331. description: 删除品名
  1332. parameters:
  1333. - description: 请求参数
  1334. in: body
  1335. name: id
  1336. required: true
  1337. schema:
  1338. $ref: '#/definitions/dto.ProductDeleteReq'
  1339. responses:
  1340. "200":
  1341. description: '{"code": 200, "data": [...]}'
  1342. schema:
  1343. $ref: '#/definitions/response.Response'
  1344. security:
  1345. - Bearer: []
  1346. summary: 删除品名
  1347. tags:
  1348. - 品名
  1349. /product/detail:
  1350. post:
  1351. description: 通过id获取品名
  1352. parameters:
  1353. - description: body
  1354. in: body
  1355. name: body
  1356. required: true
  1357. schema:
  1358. $ref: '#/definitions/dto.ProductGetReq'
  1359. responses:
  1360. "200":
  1361. description: '{"code": 200, "data": [...]}'
  1362. schema:
  1363. allOf:
  1364. - $ref: '#/definitions/response.Response'
  1365. - properties:
  1366. data:
  1367. $ref: '#/definitions/models.Product'
  1368. type: object
  1369. security:
  1370. - Bearer: []
  1371. summary: 通过id获取品名
  1372. tags:
  1373. - 品名
  1374. /product/edit:
  1375. post:
  1376. consumes:
  1377. - application/json
  1378. description: 修改品名
  1379. parameters:
  1380. - description: body
  1381. in: body
  1382. name: data
  1383. required: true
  1384. schema:
  1385. $ref: '#/definitions/dto.ProductUpdateReq'
  1386. responses:
  1387. "200":
  1388. description: '{"code": 200, "data": [...]}'
  1389. schema:
  1390. $ref: '#/definitions/response.Response'
  1391. security:
  1392. - Bearer: []
  1393. summary: 修改品名
  1394. tags:
  1395. - 品名
  1396. /product/list:
  1397. post:
  1398. description: 获取品名列表
  1399. parameters:
  1400. - description: body
  1401. in: body
  1402. name: body
  1403. required: true
  1404. schema:
  1405. $ref: '#/definitions/dto.ProductPageReq'
  1406. responses:
  1407. "200":
  1408. description: '{"code": 200, "data": [...]}'
  1409. schema:
  1410. allOf:
  1411. - $ref: '#/definitions/response.Page'
  1412. - properties:
  1413. list:
  1414. items:
  1415. $ref: '#/definitions/models.Product'
  1416. type: array
  1417. type: object
  1418. security:
  1419. - Bearer: []
  1420. summary: 获取品名列表
  1421. tags:
  1422. - 品名
  1423. /sales/excel:
  1424. post:
  1425. description: 销售报表
  1426. parameters:
  1427. - description: body
  1428. in: body
  1429. name: body
  1430. required: true
  1431. schema:
  1432. $ref: '#/definitions/dto.SalesPageReq'
  1433. responses:
  1434. "200":
  1435. description: '{"code": 200, "data": [...]}'
  1436. schema:
  1437. $ref: '#/definitions/response.Page'
  1438. security:
  1439. - Bearer: []
  1440. summary: 销售报表
  1441. tags:
  1442. - 销售管理
  1443. /sales/list:
  1444. post:
  1445. description: 销售管理
  1446. parameters:
  1447. - description: body
  1448. in: body
  1449. name: body
  1450. required: true
  1451. schema:
  1452. $ref: '#/definitions/dto.SalesPageReq'
  1453. responses:
  1454. "200":
  1455. description: '{"code": 200, "data": [...]}'
  1456. schema:
  1457. $ref: '#/definitions/response.Page'
  1458. security:
  1459. - Bearer: []
  1460. summary: 销售管理
  1461. tags:
  1462. - 销售管理
  1463. /sales/order_list:
  1464. post:
  1465. description: 出库单
  1466. parameters:
  1467. - description: body
  1468. in: body
  1469. name: body
  1470. required: true
  1471. schema:
  1472. $ref: '#/definitions/dto.SalesStockOutExcelReq'
  1473. responses:
  1474. "200":
  1475. description: '{"code": 200, "data": [...]}'
  1476. schema:
  1477. $ref: '#/definitions/response.Page'
  1478. security:
  1479. - Bearer: []
  1480. summary: 出库单
  1481. tags:
  1482. - 销售管理
  1483. /spec/add:
  1484. post:
  1485. consumes:
  1486. - application/json
  1487. description: 添加规格
  1488. parameters:
  1489. - description: data
  1490. in: body
  1491. name: data
  1492. required: true
  1493. schema:
  1494. $ref: '#/definitions/dto.SpecInsertReq'
  1495. responses:
  1496. "200":
  1497. description: '{"code": 200, "data": [...]}'
  1498. schema:
  1499. $ref: '#/definitions/response.Response'
  1500. security:
  1501. - Bearer: []
  1502. summary: 添加规格
  1503. tags:
  1504. - 规格
  1505. /spec/delete:
  1506. post:
  1507. consumes:
  1508. - application/json
  1509. description: 删除规格
  1510. parameters:
  1511. - description: 请求参数
  1512. in: body
  1513. name: id
  1514. required: true
  1515. schema:
  1516. $ref: '#/definitions/dto.SpecDeleteReq'
  1517. responses:
  1518. "200":
  1519. description: '{"code": 200, "data": [...]}'
  1520. schema:
  1521. $ref: '#/definitions/response.Response'
  1522. security:
  1523. - Bearer: []
  1524. summary: 删除规格
  1525. tags:
  1526. - 规格
  1527. /spec/detail:
  1528. post:
  1529. description: 通过id获取规格
  1530. parameters:
  1531. - description: body
  1532. in: body
  1533. name: body
  1534. required: true
  1535. schema:
  1536. $ref: '#/definitions/dto.SpecGetReq'
  1537. responses:
  1538. "200":
  1539. description: '{"code": 200, "data": [...]}'
  1540. schema:
  1541. allOf:
  1542. - $ref: '#/definitions/response.Response'
  1543. - properties:
  1544. data:
  1545. $ref: '#/definitions/models.Spec'
  1546. type: object
  1547. security:
  1548. - Bearer: []
  1549. summary: 通过id获取规格
  1550. tags:
  1551. - 规格
  1552. /spec/edit:
  1553. post:
  1554. consumes:
  1555. - application/json
  1556. description: 修改规格
  1557. parameters:
  1558. - description: body
  1559. in: body
  1560. name: data
  1561. required: true
  1562. schema:
  1563. $ref: '#/definitions/dto.SpecUpdateReq'
  1564. responses:
  1565. "200":
  1566. description: '{"code": 200, "data": [...]}'
  1567. schema:
  1568. $ref: '#/definitions/response.Response'
  1569. security:
  1570. - Bearer: []
  1571. summary: 修改规格
  1572. tags:
  1573. - 规格
  1574. /spec/list:
  1575. post:
  1576. description: 获取规格列表
  1577. parameters:
  1578. - description: body
  1579. in: body
  1580. name: body
  1581. required: true
  1582. schema:
  1583. $ref: '#/definitions/dto.SpecPageReq'
  1584. responses:
  1585. "200":
  1586. description: '{"code": 200, "data": [...]}'
  1587. schema:
  1588. allOf:
  1589. - $ref: '#/definitions/response.Page'
  1590. - properties:
  1591. list:
  1592. items:
  1593. $ref: '#/definitions/models.Spec'
  1594. type: array
  1595. type: object
  1596. security:
  1597. - Bearer: []
  1598. summary: 获取规格列表
  1599. tags:
  1600. - 规格
  1601. /stock-template/in:
  1602. post:
  1603. description: 删除入库
  1604. parameters:
  1605. - description: body
  1606. in: body
  1607. name: body
  1608. required: true
  1609. schema:
  1610. $ref: '#/definitions/dto.StockTemplateOutDeleteReq'
  1611. responses:
  1612. "200":
  1613. description: '{"code": 200, "data": [...]}'
  1614. schema:
  1615. $ref: '#/definitions/response.Response'
  1616. security:
  1617. - Bearer: []
  1618. summary: 删除入库
  1619. tags:
  1620. - 库存
  1621. /stock-template/in/list:
  1622. post:
  1623. description: 入库列表
  1624. parameters:
  1625. - description: body
  1626. in: body
  1627. name: body
  1628. required: true
  1629. schema:
  1630. $ref: '#/definitions/dto.StockTemplateInPageReq'
  1631. responses:
  1632. "200":
  1633. description: '{"code": 200, "data": [...]}'
  1634. schema:
  1635. $ref: '#/definitions/response.Page'
  1636. security:
  1637. - Bearer: []
  1638. summary: 入库列表
  1639. tags:
  1640. - 库存
  1641. /stock-template/inventory/list:
  1642. post:
  1643. description: 收发登记表word
  1644. parameters:
  1645. - description: body
  1646. in: body
  1647. name: body
  1648. required: true
  1649. schema:
  1650. $ref: '#/definitions/dto.TransportRecordWordReq'
  1651. responses:
  1652. "200":
  1653. description: '{"code": 200, "data": [...]}'
  1654. schema:
  1655. $ref: '#/definitions/response.Page'
  1656. security:
  1657. - Bearer: []
  1658. summary: 收发登记表word
  1659. tags:
  1660. - 库存
  1661. /stock-template/out:
  1662. post:
  1663. description: 批量出库
  1664. parameters:
  1665. - description: body
  1666. in: body
  1667. name: body
  1668. required: true
  1669. schema:
  1670. $ref: '#/definitions/dto.StockTemplateOutInsertReq'
  1671. responses:
  1672. "200":
  1673. description: '{"code": 200, "data": [...]}'
  1674. schema:
  1675. $ref: '#/definitions/response.Response'
  1676. security:
  1677. - Bearer: []
  1678. summary: 批量出库
  1679. tags:
  1680. - 库存
  1681. /stock-template/out/list:
  1682. post:
  1683. description: 出库列表
  1684. parameters:
  1685. - description: body
  1686. in: body
  1687. name: body
  1688. required: true
  1689. schema:
  1690. $ref: '#/definitions/dto.StockTemplateOutPageReq'
  1691. responses:
  1692. "200":
  1693. description: '{"code": 200, "data": [...]}'
  1694. schema:
  1695. $ref: '#/definitions/response.Page'
  1696. security:
  1697. - Bearer: []
  1698. summary: 出库列表
  1699. tags:
  1700. - 库存
  1701. /stock/stat:
  1702. post:
  1703. description: 首页出入库信息统计
  1704. parameters:
  1705. - description: body
  1706. in: body
  1707. name: body
  1708. required: true
  1709. schema:
  1710. $ref: '#/definitions/dto.StockStatListReq'
  1711. responses:
  1712. "200":
  1713. description: '{"code": 200, "data": [...]}'
  1714. schema:
  1715. $ref: '#/definitions/response.Page'
  1716. security:
  1717. - Bearer: []
  1718. summary: 首页出入库信息统计
  1719. tags:
  1720. - 库存
  1721. /stock/stat/excel:
  1722. post:
  1723. description: 库存信息表
  1724. parameters:
  1725. - description: body
  1726. in: body
  1727. name: body
  1728. required: true
  1729. schema:
  1730. $ref: '#/definitions/dto.StockStatListReq'
  1731. responses:
  1732. "200":
  1733. description: '{"code": 200, "data": [...]}'
  1734. schema:
  1735. $ref: '#/definitions/response.Page'
  1736. security:
  1737. - Bearer: []
  1738. summary: 库存信息表-每个商品、生产企业、规格、批号数量
  1739. tags:
  1740. - 库存
  1741. /stock/unit/list:
  1742. post:
  1743. description: 获取收货单位,发货单位,收发单位
  1744. parameters:
  1745. - description: body
  1746. in: body
  1747. name: body
  1748. required: true
  1749. schema:
  1750. $ref: '#/definitions/dto.StockOperatorListReq'
  1751. responses:
  1752. "200":
  1753. description: '{"code": 200, "data": [...]}'
  1754. schema:
  1755. $ref: '#/definitions/response.Page'
  1756. security:
  1757. - Bearer: []
  1758. summary: 获取收货单位,发货单位,收发单位
  1759. tags:
  1760. - 库存
  1761. /unit/add:
  1762. post:
  1763. consumes:
  1764. - application/json
  1765. description: 添加单位
  1766. parameters:
  1767. - description: data
  1768. in: body
  1769. name: data
  1770. required: true
  1771. schema:
  1772. $ref: '#/definitions/dto.UnitInsertReq'
  1773. responses:
  1774. "200":
  1775. description: '{"code": 200, "data": [...]}'
  1776. schema:
  1777. $ref: '#/definitions/response.Response'
  1778. security:
  1779. - Bearer: []
  1780. summary: 添加单位
  1781. tags:
  1782. - 单位
  1783. /unit/delete:
  1784. post:
  1785. consumes:
  1786. - application/json
  1787. description: 删除单位
  1788. parameters:
  1789. - description: 请求参数
  1790. in: body
  1791. name: id
  1792. required: true
  1793. schema:
  1794. $ref: '#/definitions/dto.UnitDeleteReq'
  1795. responses:
  1796. "200":
  1797. description: '{"code": 200, "data": [...]}'
  1798. schema:
  1799. $ref: '#/definitions/response.Response'
  1800. security:
  1801. - Bearer: []
  1802. summary: 删除单位
  1803. tags:
  1804. - 单位
  1805. /unit/detail:
  1806. post:
  1807. description: 通过id获取单位
  1808. parameters:
  1809. - description: body
  1810. in: body
  1811. name: body
  1812. required: true
  1813. schema:
  1814. $ref: '#/definitions/dto.UnitGetReq'
  1815. responses:
  1816. "200":
  1817. description: '{"code": 200, "data": [...]}'
  1818. schema:
  1819. allOf:
  1820. - $ref: '#/definitions/response.Response'
  1821. - properties:
  1822. data:
  1823. $ref: '#/definitions/models.Unit'
  1824. type: object
  1825. security:
  1826. - Bearer: []
  1827. summary: 通过id获取单位
  1828. tags:
  1829. - 单位
  1830. /unit/edit:
  1831. post:
  1832. consumes:
  1833. - application/json
  1834. description: 修改单位
  1835. parameters:
  1836. - description: body
  1837. in: body
  1838. name: data
  1839. required: true
  1840. schema:
  1841. $ref: '#/definitions/dto.UnitUpdateReq'
  1842. responses:
  1843. "200":
  1844. description: '{"code": 200, "data": [...]}'
  1845. schema:
  1846. $ref: '#/definitions/response.Response'
  1847. security:
  1848. - Bearer: []
  1849. summary: 修改单位
  1850. tags:
  1851. - 单位
  1852. /unit/list:
  1853. post:
  1854. description: 获取单位列表
  1855. parameters:
  1856. - description: body
  1857. in: body
  1858. name: body
  1859. required: true
  1860. schema:
  1861. $ref: '#/definitions/dto.UnitPageReq'
  1862. responses:
  1863. "200":
  1864. description: '{"code": 200, "data": [...]}'
  1865. schema:
  1866. allOf:
  1867. - $ref: '#/definitions/response.Page'
  1868. - properties:
  1869. list:
  1870. items:
  1871. $ref: '#/definitions/models.Unit'
  1872. type: array
  1873. type: object
  1874. security:
  1875. - Bearer: []
  1876. summary: 获取单位列表
  1877. tags:
  1878. - 单位
  1879. schemes:
  1880. - http
  1881. securityDefinitions:
  1882. Bearer:
  1883. in: header
  1884. name: Authorization
  1885. type: apiKey
  1886. swagger: "2.0"