admin_swagger.yaml 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393
  1. definitions:
  2. dto.GetSetSysConfigReq:
  3. properties:
  4. configKey:
  5. type: string
  6. configValue:
  7. type: string
  8. type: object
  9. dto.PassWord:
  10. properties:
  11. newPassword:
  12. type: string
  13. oldPassword:
  14. type: string
  15. type: object
  16. dto.ResetSysUserPwdReq:
  17. properties:
  18. createBy:
  19. type: integer
  20. password:
  21. type: string
  22. updateBy:
  23. type: integer
  24. userId:
  25. description: 用户ID
  26. type: integer
  27. type: object
  28. dto.RoleDataScopeReq:
  29. properties:
  30. dataScope:
  31. type: string
  32. deptIds:
  33. items:
  34. type: integer
  35. type: array
  36. roleId:
  37. type: integer
  38. required:
  39. - dataScope
  40. - roleId
  41. type: object
  42. dto.SysApiDeleteReq:
  43. properties:
  44. ids:
  45. items:
  46. type: integer
  47. type: array
  48. type: object
  49. dto.SysApiUpdateReq:
  50. properties:
  51. action:
  52. type: string
  53. createBy:
  54. type: integer
  55. handle:
  56. type: string
  57. id:
  58. description: 编码
  59. type: integer
  60. path:
  61. type: string
  62. title:
  63. type: string
  64. type:
  65. type: string
  66. updateBy:
  67. type: integer
  68. type: object
  69. dto.SysConfigByKeyReq:
  70. properties:
  71. configKey:
  72. type: string
  73. type: object
  74. dto.SysConfigControl:
  75. properties:
  76. configKey:
  77. type: string
  78. configName:
  79. type: string
  80. configType:
  81. type: string
  82. configValue:
  83. type: string
  84. createBy:
  85. type: integer
  86. id:
  87. description: 编码
  88. type: integer
  89. isFrontend:
  90. type: string
  91. remark:
  92. type: string
  93. updateBy:
  94. type: integer
  95. type: object
  96. dto.SysDeptDeleteReq:
  97. properties:
  98. ids:
  99. items:
  100. type: integer
  101. type: array
  102. type: object
  103. dto.SysDeptInsertReq:
  104. properties:
  105. createBy:
  106. type: integer
  107. deptId:
  108. description: 编码
  109. type: integer
  110. deptName:
  111. description: 部门名称
  112. type: string
  113. deptPath:
  114. description: 路径
  115. type: string
  116. email:
  117. description: 邮箱
  118. type: string
  119. leader:
  120. description: 负责人
  121. type: string
  122. parentId:
  123. description: 上级部门
  124. type: integer
  125. phone:
  126. description: 手机
  127. type: string
  128. sort:
  129. description: 排序
  130. type: integer
  131. status:
  132. description: 状态
  133. type: integer
  134. updateBy:
  135. type: integer
  136. type: object
  137. dto.SysDeptUpdateReq:
  138. properties:
  139. createBy:
  140. type: integer
  141. deptId:
  142. description: 编码
  143. type: integer
  144. deptName:
  145. description: 部门名称
  146. type: string
  147. deptPath:
  148. description: 路径
  149. type: string
  150. email:
  151. description: 邮箱
  152. type: string
  153. leader:
  154. description: 负责人
  155. type: string
  156. parentId:
  157. description: 上级部门
  158. type: integer
  159. phone:
  160. description: 手机
  161. type: string
  162. sort:
  163. description: 排序
  164. type: integer
  165. status:
  166. description: 状态
  167. type: integer
  168. updateBy:
  169. type: integer
  170. type: object
  171. dto.SysDictDataDeleteReq:
  172. properties:
  173. createBy:
  174. type: integer
  175. ids:
  176. items:
  177. type: integer
  178. type: array
  179. updateBy:
  180. type: integer
  181. type: object
  182. dto.SysDictDataGetAllResp:
  183. properties:
  184. label:
  185. type: string
  186. value:
  187. type: string
  188. type: object
  189. dto.SysDictDataInsertReq:
  190. properties:
  191. createBy:
  192. type: integer
  193. cssClass:
  194. type: string
  195. default:
  196. type: string
  197. dictLabel:
  198. type: string
  199. dictSort:
  200. type: integer
  201. dictType:
  202. type: string
  203. dictValue:
  204. type: string
  205. isDefault:
  206. type: string
  207. listClass:
  208. type: string
  209. remark:
  210. type: string
  211. status:
  212. type: integer
  213. updateBy:
  214. type: integer
  215. type: object
  216. dto.SysDictDataUpdateReq:
  217. properties:
  218. createBy:
  219. type: integer
  220. cssClass:
  221. type: string
  222. default:
  223. type: string
  224. dictLabel:
  225. type: string
  226. dictSort:
  227. type: integer
  228. dictType:
  229. type: string
  230. dictValue:
  231. type: string
  232. id:
  233. type: integer
  234. isDefault:
  235. type: string
  236. listClass:
  237. type: string
  238. remark:
  239. type: string
  240. status:
  241. type: integer
  242. updateBy:
  243. type: integer
  244. type: object
  245. dto.SysDictTypeDeleteReq:
  246. properties:
  247. createBy:
  248. type: integer
  249. ids:
  250. items:
  251. type: integer
  252. type: array
  253. updateBy:
  254. type: integer
  255. type: object
  256. dto.SysDictTypeInsertReq:
  257. properties:
  258. createBy:
  259. type: integer
  260. dictName:
  261. type: string
  262. dictType:
  263. type: string
  264. id:
  265. type: integer
  266. remark:
  267. type: string
  268. status:
  269. type: integer
  270. updateBy:
  271. type: integer
  272. type: object
  273. dto.SysDictTypeUpdateReq:
  274. properties:
  275. createBy:
  276. type: integer
  277. dictName:
  278. type: string
  279. dictType:
  280. type: string
  281. id:
  282. type: integer
  283. remark:
  284. type: string
  285. status:
  286. type: integer
  287. updateBy:
  288. type: integer
  289. type: object
  290. dto.SysLoginLogDeleteReq:
  291. properties:
  292. ids:
  293. items:
  294. type: integer
  295. type: array
  296. type: object
  297. dto.SysMenuDeleteReq:
  298. properties:
  299. createBy:
  300. type: integer
  301. ids:
  302. items:
  303. type: integer
  304. type: array
  305. updateBy:
  306. type: integer
  307. type: object
  308. dto.SysMenuInsertReq:
  309. properties:
  310. action:
  311. description: 请求方式
  312. type: string
  313. apis:
  314. items:
  315. type: integer
  316. type: array
  317. breadcrumb:
  318. description: 是否面包屑
  319. type: string
  320. component:
  321. description: 组件
  322. type: string
  323. createBy:
  324. type: integer
  325. icon:
  326. description: 图标
  327. type: string
  328. isFrame:
  329. description: 是否frame
  330. type: string
  331. menuId:
  332. description: 编码
  333. type: integer
  334. menuName:
  335. description: 菜单name
  336. type: string
  337. menuType:
  338. description: 菜单类型
  339. type: string
  340. noCache:
  341. description: 是否缓存
  342. type: boolean
  343. parentId:
  344. description: 上级菜单
  345. type: integer
  346. path:
  347. description: 路径
  348. type: string
  349. paths:
  350. description: id路径
  351. type: string
  352. permission:
  353. description: 权限编码
  354. type: string
  355. sort:
  356. description: 排序
  357. type: integer
  358. sysApi:
  359. items:
  360. $ref: '#/definitions/models.SysApi'
  361. type: array
  362. title:
  363. description: 显示名称
  364. type: string
  365. updateBy:
  366. type: integer
  367. visible:
  368. description: 是否显示
  369. type: string
  370. type: object
  371. dto.SysMenuUpdateReq:
  372. properties:
  373. action:
  374. description: 请求方式
  375. type: string
  376. apis:
  377. items:
  378. type: integer
  379. type: array
  380. breadcrumb:
  381. description: 是否面包屑
  382. type: string
  383. component:
  384. description: 组件
  385. type: string
  386. createBy:
  387. type: integer
  388. icon:
  389. description: 图标
  390. type: string
  391. isFrame:
  392. description: 是否frame
  393. type: string
  394. menuId:
  395. description: 编码
  396. type: integer
  397. menuName:
  398. description: 菜单name
  399. type: string
  400. menuType:
  401. description: 菜单类型
  402. type: string
  403. noCache:
  404. description: 是否缓存
  405. type: boolean
  406. parentId:
  407. description: 上级菜单
  408. type: integer
  409. path:
  410. description: 路径
  411. type: string
  412. paths:
  413. description: id路径
  414. type: string
  415. permission:
  416. description: 权限编码
  417. type: string
  418. sort:
  419. description: 排序
  420. type: integer
  421. sysApi:
  422. items:
  423. $ref: '#/definitions/models.SysApi'
  424. type: array
  425. title:
  426. description: 显示名称
  427. type: string
  428. updateBy:
  429. type: integer
  430. visible:
  431. description: 是否显示
  432. type: string
  433. type: object
  434. dto.SysOperaLogDeleteReq:
  435. properties:
  436. ids:
  437. items:
  438. type: integer
  439. type: array
  440. type: object
  441. dto.SysPostDeleteReq:
  442. properties:
  443. createBy:
  444. type: integer
  445. ids:
  446. items:
  447. type: integer
  448. type: array
  449. updateBy:
  450. type: integer
  451. type: object
  452. dto.SysPostInsertReq:
  453. properties:
  454. createBy:
  455. type: integer
  456. postCode:
  457. type: string
  458. postId:
  459. type: integer
  460. postName:
  461. type: string
  462. remark:
  463. type: string
  464. sort:
  465. type: integer
  466. status:
  467. type: integer
  468. updateBy:
  469. type: integer
  470. type: object
  471. dto.SysPostUpdateReq:
  472. properties:
  473. createBy:
  474. type: integer
  475. postCode:
  476. type: string
  477. postId:
  478. type: integer
  479. postName:
  480. type: string
  481. remark:
  482. type: string
  483. sort:
  484. type: integer
  485. status:
  486. type: integer
  487. updateBy:
  488. type: integer
  489. type: object
  490. dto.SysRoleDeleteReq:
  491. properties:
  492. ids:
  493. items:
  494. type: integer
  495. type: array
  496. type: object
  497. dto.SysRoleInsertReq:
  498. properties:
  499. admin:
  500. type: boolean
  501. createBy:
  502. type: integer
  503. dataScope:
  504. type: string
  505. deptIds:
  506. items:
  507. type: integer
  508. type: array
  509. flag:
  510. description: 标记
  511. type: string
  512. menuIds:
  513. items:
  514. type: integer
  515. type: array
  516. remark:
  517. description: 备注
  518. type: string
  519. roleId:
  520. description: 角色编码
  521. type: integer
  522. roleKey:
  523. description: 角色代码
  524. type: string
  525. roleName:
  526. description: 角色名称
  527. type: string
  528. roleSort:
  529. description: 角色排序
  530. type: integer
  531. status:
  532. description: 状态
  533. type: string
  534. sysDept:
  535. items:
  536. $ref: '#/definitions/models.SysDept'
  537. type: array
  538. sysMenu:
  539. items:
  540. $ref: '#/definitions/models.SysMenu'
  541. type: array
  542. updateBy:
  543. type: integer
  544. type: object
  545. dto.SysRoleUpdateReq:
  546. properties:
  547. admin:
  548. type: boolean
  549. createBy:
  550. type: integer
  551. dataScope:
  552. type: string
  553. deptIds:
  554. items:
  555. type: integer
  556. type: array
  557. flag:
  558. description: 标记
  559. type: string
  560. menuIds:
  561. items:
  562. type: integer
  563. type: array
  564. remark:
  565. description: 备注
  566. type: string
  567. roleId:
  568. description: 角色编码
  569. type: integer
  570. roleKey:
  571. description: 角色代码
  572. type: string
  573. roleName:
  574. description: 角色名称
  575. type: string
  576. roleSort:
  577. description: 角色排序
  578. type: integer
  579. status:
  580. description: 状态
  581. type: string
  582. sysDept:
  583. items:
  584. $ref: '#/definitions/models.SysDept'
  585. type: array
  586. sysMenu:
  587. items:
  588. $ref: '#/definitions/models.SysMenu'
  589. type: array
  590. updateBy:
  591. type: integer
  592. type: object
  593. dto.SysUserInsertReq:
  594. properties:
  595. avatar:
  596. type: string
  597. createBy:
  598. type: integer
  599. deptId:
  600. type: integer
  601. email:
  602. type: string
  603. nickName:
  604. type: string
  605. password:
  606. type: string
  607. phone:
  608. type: string
  609. postId:
  610. type: integer
  611. remark:
  612. type: string
  613. roleId:
  614. type: integer
  615. sex:
  616. type: string
  617. status:
  618. default: "1"
  619. type: string
  620. updateBy:
  621. type: integer
  622. userId:
  623. description: 用户ID
  624. type: integer
  625. username:
  626. type: string
  627. type: object
  628. dto.SysUserUpdateReq:
  629. properties:
  630. avatar:
  631. type: string
  632. createBy:
  633. type: integer
  634. deptId:
  635. type: integer
  636. email:
  637. type: string
  638. nickName:
  639. type: string
  640. phone:
  641. type: string
  642. postId:
  643. type: integer
  644. remark:
  645. type: string
  646. roleId:
  647. type: integer
  648. sex:
  649. type: string
  650. status:
  651. default: "1"
  652. type: string
  653. updateBy:
  654. type: integer
  655. userId:
  656. description: 用户ID
  657. type: integer
  658. username:
  659. type: string
  660. type: object
  661. dto.UpdateStatusReq:
  662. properties:
  663. createBy:
  664. type: integer
  665. roleId:
  666. description: 角色编码
  667. type: integer
  668. status:
  669. description: 状态
  670. type: string
  671. updateBy:
  672. type: integer
  673. type: object
  674. dto.UpdateSysUserStatusReq:
  675. properties:
  676. createBy:
  677. type: integer
  678. status:
  679. type: string
  680. updateBy:
  681. type: integer
  682. userId:
  683. description: 用户ID
  684. type: integer
  685. type: object
  686. handler.Login:
  687. properties:
  688. code:
  689. type: string
  690. password:
  691. type: string
  692. username:
  693. type: string
  694. uuid:
  695. type: string
  696. required:
  697. - code
  698. - password
  699. - username
  700. - uuid
  701. type: object
  702. models.SysApi:
  703. properties:
  704. action:
  705. type: string
  706. createBy:
  707. type: integer
  708. createdAt:
  709. type: string
  710. handle:
  711. type: string
  712. id:
  713. type: integer
  714. path:
  715. type: string
  716. title:
  717. type: string
  718. type:
  719. type: string
  720. updateBy:
  721. type: integer
  722. updatedAt:
  723. type: string
  724. type: object
  725. models.SysConfig:
  726. properties:
  727. configKey:
  728. type: string
  729. configName:
  730. type: string
  731. configType:
  732. type: string
  733. configValue:
  734. type: string
  735. createBy:
  736. type: integer
  737. createdAt:
  738. type: string
  739. id:
  740. type: integer
  741. isFrontend:
  742. type: string
  743. remark:
  744. type: string
  745. updateBy:
  746. type: integer
  747. updatedAt:
  748. type: string
  749. type: object
  750. models.SysDept:
  751. properties:
  752. children:
  753. items:
  754. $ref: '#/definitions/models.SysDept'
  755. type: array
  756. createBy:
  757. type: integer
  758. createdAt:
  759. type: string
  760. dataScope:
  761. type: string
  762. deptId:
  763. description: 部门编码
  764. type: integer
  765. deptName:
  766. description: 部门名称
  767. type: string
  768. deptPath:
  769. type: string
  770. email:
  771. description: 邮箱
  772. type: string
  773. leader:
  774. description: 负责人
  775. type: string
  776. params:
  777. type: string
  778. parentId:
  779. description: 上级部门
  780. type: integer
  781. phone:
  782. description: 手机
  783. type: string
  784. sort:
  785. description: 排序
  786. type: integer
  787. status:
  788. description: 状态
  789. type: integer
  790. updateBy:
  791. type: integer
  792. updatedAt:
  793. type: string
  794. type: object
  795. models.SysMenu:
  796. properties:
  797. action:
  798. type: string
  799. apis:
  800. items:
  801. type: integer
  802. type: array
  803. breadcrumb:
  804. type: string
  805. children:
  806. items:
  807. $ref: '#/definitions/models.SysMenu'
  808. type: array
  809. component:
  810. type: string
  811. createBy:
  812. type: integer
  813. createdAt:
  814. type: string
  815. dataScope:
  816. type: string
  817. icon:
  818. type: string
  819. is_select:
  820. type: boolean
  821. isFrame:
  822. type: string
  823. menuId:
  824. type: integer
  825. menuName:
  826. type: string
  827. menuType:
  828. type: string
  829. noCache:
  830. type: boolean
  831. params:
  832. type: string
  833. parentId:
  834. type: integer
  835. path:
  836. type: string
  837. paths:
  838. type: string
  839. permission:
  840. type: string
  841. roleId:
  842. type: integer
  843. sort:
  844. type: integer
  845. sysApi:
  846. items:
  847. $ref: '#/definitions/models.SysApi'
  848. type: array
  849. title:
  850. type: string
  851. updateBy:
  852. type: integer
  853. updatedAt:
  854. type: string
  855. visible:
  856. type: string
  857. type: object
  858. response.Page:
  859. properties:
  860. count:
  861. type: integer
  862. pageIndex:
  863. type: integer
  864. pageSize:
  865. type: integer
  866. type: object
  867. response.Response:
  868. properties:
  869. code:
  870. type: integer
  871. msg:
  872. type: string
  873. requestId:
  874. description: 数据集
  875. type: string
  876. status:
  877. type: string
  878. type: object
  879. info:
  880. contact: {}
  881. paths:
  882. /api/v1/app-config:
  883. get:
  884. description: 获取系统配置信息,主要注意这里不在验证权限
  885. responses:
  886. "200":
  887. description: '{"code": 200, "data": [...]}'
  888. schema:
  889. allOf:
  890. - $ref: '#/definitions/response.Response'
  891. - properties:
  892. data:
  893. additionalProperties:
  894. type: string
  895. type: object
  896. type: object
  897. summary: 获取系统前台配置信息,主要注意这里不在验证权限
  898. tags:
  899. - 配置管理
  900. /api/v1/captcha:
  901. get:
  902. description: 获取验证码
  903. responses:
  904. "200":
  905. description: '{"code": 200, "data": [...]}'
  906. schema:
  907. allOf:
  908. - $ref: '#/definitions/response.Response'
  909. - properties:
  910. data:
  911. type: string
  912. id:
  913. type: string
  914. msg:
  915. type: string
  916. type: object
  917. summary: 获取验证码
  918. tags:
  919. - 登陆
  920. /api/v1/dept:
  921. delete:
  922. description: 删除数据
  923. parameters:
  924. - description: body
  925. in: body
  926. name: data
  927. required: true
  928. schema:
  929. $ref: '#/definitions/dto.SysDeptDeleteReq'
  930. responses:
  931. "200":
  932. description: '{"code": -1, "message": "删除失败"}'
  933. schema:
  934. type: string
  935. security:
  936. - Bearer: []
  937. summary: 删除部门
  938. tags:
  939. - 部门
  940. get:
  941. description: 分页列表
  942. parameters:
  943. - description: deptName
  944. in: query
  945. name: deptName
  946. type: string
  947. - description: deptId
  948. in: query
  949. name: deptId
  950. type: string
  951. - description: position
  952. in: query
  953. name: position
  954. type: string
  955. responses:
  956. "200":
  957. description: '{"code": 200, "data": [...]}'
  958. schema:
  959. $ref: '#/definitions/response.Response'
  960. security:
  961. - Bearer: []
  962. summary: 分页部门列表数据
  963. tags:
  964. - 部门
  965. post:
  966. consumes:
  967. - application/json
  968. description: 获取JSON
  969. parameters:
  970. - description: data
  971. in: body
  972. name: data
  973. required: true
  974. schema:
  975. $ref: '#/definitions/dto.SysDeptInsertReq'
  976. responses:
  977. "200":
  978. description: '{"code": -1, "message": "添加失败"}'
  979. schema:
  980. type: string
  981. security:
  982. - Bearer: []
  983. summary: 添加部门
  984. tags:
  985. - 部门
  986. /api/v1/dept/{deptId}:
  987. get:
  988. description: 获取JSON
  989. parameters:
  990. - description: deptId
  991. in: path
  992. name: deptId
  993. type: string
  994. responses:
  995. "200":
  996. description: '{"code": 200, "data": [...]}'
  997. schema:
  998. $ref: '#/definitions/response.Response'
  999. security:
  1000. - Bearer: []
  1001. summary: 获取部门数据
  1002. tags:
  1003. - 部门
  1004. put:
  1005. consumes:
  1006. - application/json
  1007. description: 获取JSON
  1008. parameters:
  1009. - description: id
  1010. in: path
  1011. name: id
  1012. required: true
  1013. type: integer
  1014. - description: body
  1015. in: body
  1016. name: data
  1017. required: true
  1018. schema:
  1019. $ref: '#/definitions/dto.SysDeptUpdateReq'
  1020. responses:
  1021. "200":
  1022. description: '{"code": -1, "message": "添加失败"}'
  1023. schema:
  1024. type: string
  1025. security:
  1026. - Bearer: []
  1027. summary: 修改部门
  1028. tags:
  1029. - 部门
  1030. /api/v1/dict-data/option-select:
  1031. get:
  1032. description: 数据字典根据key获取
  1033. parameters:
  1034. - description: dictType
  1035. in: query
  1036. name: dictType
  1037. required: true
  1038. type: integer
  1039. responses:
  1040. "200":
  1041. description: '{"code": 200, "data": [...]}'
  1042. schema:
  1043. allOf:
  1044. - $ref: '#/definitions/response.Response'
  1045. - properties:
  1046. data:
  1047. items:
  1048. $ref: '#/definitions/dto.SysDictDataGetAllResp'
  1049. type: array
  1050. type: object
  1051. security:
  1052. - Bearer: []
  1053. summary: 数据字典根据key获取
  1054. tags:
  1055. - 字典数据
  1056. /api/v1/dict/data:
  1057. delete:
  1058. description: 删除数据
  1059. parameters:
  1060. - description: body
  1061. in: body
  1062. name: dictCode
  1063. required: true
  1064. schema:
  1065. $ref: '#/definitions/dto.SysDictDataDeleteReq'
  1066. responses:
  1067. "200":
  1068. description: '{"code": 200, "message": "删除成功"}'
  1069. schema:
  1070. $ref: '#/definitions/response.Response'
  1071. security:
  1072. - Bearer: []
  1073. summary: 删除字典数据
  1074. tags:
  1075. - 字典数据
  1076. get:
  1077. description: 获取JSON
  1078. parameters:
  1079. - description: status
  1080. in: query
  1081. name: status
  1082. type: string
  1083. - description: dictCode
  1084. in: query
  1085. name: dictCode
  1086. type: string
  1087. - description: dictType
  1088. in: query
  1089. name: dictType
  1090. type: string
  1091. - description: 页条数
  1092. in: query
  1093. name: pageSize
  1094. type: integer
  1095. - description: 页码
  1096. in: query
  1097. name: pageIndex
  1098. type: integer
  1099. responses:
  1100. "200":
  1101. description: '{"code": 200, "data": [...]}'
  1102. schema:
  1103. $ref: '#/definitions/response.Response'
  1104. security:
  1105. - Bearer: []
  1106. summary: 字典数据列表
  1107. tags:
  1108. - 字典数据
  1109. post:
  1110. consumes:
  1111. - application/json
  1112. description: 获取JSON
  1113. parameters:
  1114. - description: data
  1115. in: body
  1116. name: data
  1117. required: true
  1118. schema:
  1119. $ref: '#/definitions/dto.SysDictDataInsertReq'
  1120. responses:
  1121. "200":
  1122. description: '{"code": 200, "message": "添加成功"}'
  1123. schema:
  1124. $ref: '#/definitions/response.Response'
  1125. security:
  1126. - Bearer: []
  1127. summary: 添加字典数据
  1128. tags:
  1129. - 字典数据
  1130. /api/v1/dict/data/{dictCode}:
  1131. get:
  1132. description: 获取JSON
  1133. parameters:
  1134. - description: 字典编码
  1135. in: path
  1136. name: dictCode
  1137. required: true
  1138. type: integer
  1139. responses:
  1140. "200":
  1141. description: '{"code": 200, "data": [...]}'
  1142. schema:
  1143. $ref: '#/definitions/response.Response'
  1144. security:
  1145. - Bearer: []
  1146. summary: 通过编码获取字典数据
  1147. tags:
  1148. - 字典数据
  1149. put:
  1150. consumes:
  1151. - application/json
  1152. description: 获取JSON
  1153. parameters:
  1154. - description: body
  1155. in: body
  1156. name: data
  1157. required: true
  1158. schema:
  1159. $ref: '#/definitions/dto.SysDictDataUpdateReq'
  1160. responses:
  1161. "200":
  1162. description: '{"code": 200, "message": "修改成功"}'
  1163. schema:
  1164. $ref: '#/definitions/response.Response'
  1165. security:
  1166. - Bearer: []
  1167. summary: 修改字典数据
  1168. tags:
  1169. - 字典数据
  1170. /api/v1/dict/type:
  1171. delete:
  1172. description: 删除数据
  1173. parameters:
  1174. - description: body
  1175. in: body
  1176. name: dictCode
  1177. required: true
  1178. schema:
  1179. $ref: '#/definitions/dto.SysDictTypeDeleteReq'
  1180. responses:
  1181. "200":
  1182. description: '{"code": 200, "data": [...]}'
  1183. schema:
  1184. $ref: '#/definitions/response.Response'
  1185. security:
  1186. - Bearer: []
  1187. summary: 删除字典类型
  1188. tags:
  1189. - 字典类型
  1190. get:
  1191. description: 获取JSON
  1192. parameters:
  1193. - description: dictName
  1194. in: query
  1195. name: dictName
  1196. type: string
  1197. - description: dictId
  1198. in: query
  1199. name: dictId
  1200. type: string
  1201. - description: dictType
  1202. in: query
  1203. name: dictType
  1204. type: string
  1205. - description: 页条数
  1206. in: query
  1207. name: pageSize
  1208. type: integer
  1209. - description: 页码
  1210. in: query
  1211. name: pageIndex
  1212. type: integer
  1213. responses:
  1214. "200":
  1215. description: '{"code": 200, "data": [...]}'
  1216. schema:
  1217. $ref: '#/definitions/response.Response'
  1218. security:
  1219. - Bearer: []
  1220. summary: 字典类型列表数据
  1221. tags:
  1222. - 字典类型
  1223. post:
  1224. consumes:
  1225. - application/json
  1226. description: 获取JSON
  1227. parameters:
  1228. - description: data
  1229. in: body
  1230. name: data
  1231. required: true
  1232. schema:
  1233. $ref: '#/definitions/dto.SysDictTypeInsertReq'
  1234. responses:
  1235. "200":
  1236. description: '{"code": 200, "data": [...]}'
  1237. schema:
  1238. $ref: '#/definitions/response.Response'
  1239. security:
  1240. - Bearer: []
  1241. summary: 添加字典类型
  1242. tags:
  1243. - 字典类型
  1244. /api/v1/dict/type-option-select:
  1245. get:
  1246. description: 获取JSON
  1247. parameters:
  1248. - description: dictName
  1249. in: query
  1250. name: dictName
  1251. type: string
  1252. - description: dictId
  1253. in: query
  1254. name: dictId
  1255. type: string
  1256. - description: dictType
  1257. in: query
  1258. name: dictType
  1259. type: string
  1260. responses:
  1261. "200":
  1262. description: '{"code": 200, "data": [...]}'
  1263. schema:
  1264. $ref: '#/definitions/response.Response'
  1265. security:
  1266. - Bearer: []
  1267. summary: 字典类型全部数据 代码生成使用接口
  1268. tags:
  1269. - 字典类型
  1270. /api/v1/dict/type/{dictId}:
  1271. get:
  1272. description: 获取JSON
  1273. parameters:
  1274. - description: 字典类型编码
  1275. in: path
  1276. name: dictId
  1277. required: true
  1278. type: integer
  1279. responses:
  1280. "200":
  1281. description: '{"code": 200, "data": [...]}'
  1282. schema:
  1283. $ref: '#/definitions/response.Response'
  1284. security:
  1285. - Bearer: []
  1286. summary: 字典类型通过字典id获取
  1287. tags:
  1288. - 字典类型
  1289. put:
  1290. consumes:
  1291. - application/json
  1292. description: 获取JSON
  1293. parameters:
  1294. - description: body
  1295. in: body
  1296. name: data
  1297. required: true
  1298. schema:
  1299. $ref: '#/definitions/dto.SysDictTypeUpdateReq'
  1300. responses:
  1301. "200":
  1302. description: '{"code": 200, "data": [...]}'
  1303. schema:
  1304. $ref: '#/definitions/response.Response'
  1305. security:
  1306. - Bearer: []
  1307. summary: 修改字典类型
  1308. tags:
  1309. - 字典类型
  1310. /api/v1/getinfo:
  1311. get:
  1312. description: 获取JSON
  1313. responses:
  1314. "200":
  1315. description: '{"code": 200, "data": [...]}'
  1316. schema:
  1317. $ref: '#/definitions/response.Response'
  1318. security:
  1319. - Bearer: []
  1320. summary: 获取个人信息
  1321. tags:
  1322. - 个人中心
  1323. /api/v1/login:
  1324. post:
  1325. consumes:
  1326. - application/json
  1327. description: |-
  1328. 获取token
  1329. LoginHandler can be used by clients to get a jwt token.
  1330. Payload needs to be json in the form of {"username": "USERNAME", "password": "PASSWORD"}.
  1331. Reply will be of the form {"token": "TOKEN"}.
  1332. dev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password
  1333. 注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值
  1334. parameters:
  1335. - description: account
  1336. in: body
  1337. name: account
  1338. required: true
  1339. schema:
  1340. $ref: '#/definitions/handler.Login'
  1341. responses:
  1342. "200":
  1343. description: '{"code": 200, "expire": "2019-08-07T12:45:48+08:00", "token":
  1344. ".eyJleHAiOjE1NjUxNTMxNDgsImlkIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTU2NTE0OTU0OH0.-zvzHvbg0A"
  1345. }'
  1346. schema:
  1347. type: string
  1348. summary: 登陆
  1349. tags:
  1350. - 登陆
  1351. /api/v1/menu:
  1352. delete:
  1353. description: 删除数据
  1354. parameters:
  1355. - description: body
  1356. in: body
  1357. name: data
  1358. required: true
  1359. schema:
  1360. $ref: '#/definitions/dto.SysMenuDeleteReq'
  1361. responses:
  1362. "200":
  1363. description: '{"code": 200, "data": [...]}'
  1364. schema:
  1365. $ref: '#/definitions/response.Response'
  1366. security:
  1367. - Bearer: []
  1368. summary: 删除菜单
  1369. tags:
  1370. - 菜单
  1371. get:
  1372. description: 获取JSON
  1373. parameters:
  1374. - description: menuName
  1375. in: query
  1376. name: menuName
  1377. type: string
  1378. responses:
  1379. "200":
  1380. description: '{"code": 200, "data": [...]}'
  1381. schema:
  1382. $ref: '#/definitions/response.Response'
  1383. security:
  1384. - Bearer: []
  1385. summary: Menu列表数据
  1386. tags:
  1387. - 菜单
  1388. post:
  1389. consumes:
  1390. - application/json
  1391. description: 获取JSON
  1392. parameters:
  1393. - description: data
  1394. in: body
  1395. name: data
  1396. required: true
  1397. schema:
  1398. $ref: '#/definitions/dto.SysMenuInsertReq'
  1399. responses:
  1400. "200":
  1401. description: '{"code": 200, "data": [...]}'
  1402. schema:
  1403. $ref: '#/definitions/response.Response'
  1404. security:
  1405. - Bearer: []
  1406. summary: 创建菜单
  1407. tags:
  1408. - 菜单
  1409. /api/v1/menu/{id}:
  1410. get:
  1411. description: 获取JSON
  1412. parameters:
  1413. - description: id
  1414. in: path
  1415. name: id
  1416. type: string
  1417. responses:
  1418. "200":
  1419. description: '{"code": 200, "data": [...]}'
  1420. schema:
  1421. $ref: '#/definitions/response.Response'
  1422. security:
  1423. - Bearer: []
  1424. summary: Menu详情数据
  1425. tags:
  1426. - 菜单
  1427. put:
  1428. consumes:
  1429. - application/json
  1430. description: 获取JSON
  1431. parameters:
  1432. - description: id
  1433. in: path
  1434. name: id
  1435. required: true
  1436. type: integer
  1437. - description: body
  1438. in: body
  1439. name: data
  1440. required: true
  1441. schema:
  1442. $ref: '#/definitions/dto.SysMenuUpdateReq'
  1443. responses:
  1444. "200":
  1445. description: '{"code": 200, "data": [...]}'
  1446. schema:
  1447. $ref: '#/definitions/response.Response'
  1448. security:
  1449. - Bearer: []
  1450. summary: 修改菜单
  1451. tags:
  1452. - 菜单
  1453. /api/v1/menuTreeselect/{roleId}:
  1454. get:
  1455. consumes:
  1456. - application/json
  1457. description: 获取JSON
  1458. parameters:
  1459. - description: roleId
  1460. in: path
  1461. name: roleId
  1462. required: true
  1463. type: integer
  1464. responses:
  1465. "200":
  1466. description: '{"code": 200, "data": [...]}'
  1467. schema:
  1468. $ref: '#/definitions/response.Response'
  1469. security:
  1470. - Bearer: []
  1471. summary: 角色修改使用的菜单列表
  1472. tags:
  1473. - 菜单
  1474. /api/v1/menurole:
  1475. get:
  1476. description: 获取JSON
  1477. responses:
  1478. "200":
  1479. description: '{"code": 200, "data": [...]}'
  1480. schema:
  1481. $ref: '#/definitions/response.Response'
  1482. security:
  1483. - Bearer: []
  1484. summary: 根据登录角色名称获取菜单列表数据(左菜单使用)
  1485. tags:
  1486. - 菜单
  1487. /api/v1/post:
  1488. delete:
  1489. description: 删除数据
  1490. parameters:
  1491. - description: 请求参数
  1492. in: body
  1493. name: id
  1494. required: true
  1495. schema:
  1496. $ref: '#/definitions/dto.SysPostDeleteReq'
  1497. responses:
  1498. "200":
  1499. description: '{"code": 200, "data": [...]}'
  1500. schema:
  1501. $ref: '#/definitions/response.Response'
  1502. security:
  1503. - Bearer: []
  1504. summary: 删除岗位
  1505. tags:
  1506. - 岗位
  1507. get:
  1508. description: 获取JSON
  1509. parameters:
  1510. - description: postName
  1511. in: query
  1512. name: postName
  1513. type: string
  1514. - description: postCode
  1515. in: query
  1516. name: postCode
  1517. type: string
  1518. - description: postId
  1519. in: query
  1520. name: postId
  1521. type: string
  1522. - description: status
  1523. in: query
  1524. name: status
  1525. type: string
  1526. responses:
  1527. "200":
  1528. description: '{"code": 200, "data": [...]}'
  1529. schema:
  1530. $ref: '#/definitions/response.Response'
  1531. security:
  1532. - Bearer: []
  1533. summary: 岗位列表数据
  1534. tags:
  1535. - 岗位
  1536. post:
  1537. consumes:
  1538. - application/json
  1539. description: 获取JSON
  1540. parameters:
  1541. - description: data
  1542. in: body
  1543. name: data
  1544. required: true
  1545. schema:
  1546. $ref: '#/definitions/dto.SysPostInsertReq'
  1547. responses:
  1548. "200":
  1549. description: '{"code": 200, "data": [...]}'
  1550. schema:
  1551. $ref: '#/definitions/response.Response'
  1552. security:
  1553. - Bearer: []
  1554. summary: 添加岗位
  1555. tags:
  1556. - 岗位
  1557. /api/v1/post/{id}:
  1558. put:
  1559. consumes:
  1560. - application/json
  1561. description: 获取JSON
  1562. parameters:
  1563. - description: body
  1564. in: body
  1565. name: data
  1566. required: true
  1567. schema:
  1568. $ref: '#/definitions/dto.SysPostUpdateReq'
  1569. responses:
  1570. "200":
  1571. description: '{"code": 200, "data": [...]}'
  1572. schema:
  1573. $ref: '#/definitions/response.Response'
  1574. security:
  1575. - Bearer: []
  1576. summary: 修改岗位
  1577. tags:
  1578. - 岗位
  1579. /api/v1/post/{postId}:
  1580. get:
  1581. description: 获取JSON
  1582. parameters:
  1583. - description: 编码
  1584. in: path
  1585. name: id
  1586. required: true
  1587. type: integer
  1588. responses:
  1589. "200":
  1590. description: '{"code": 200, "data": [...]}'
  1591. schema:
  1592. $ref: '#/definitions/response.Response'
  1593. security:
  1594. - Bearer: []
  1595. summary: 获取岗位信息
  1596. tags:
  1597. - 岗位
  1598. /api/v1/role:
  1599. delete:
  1600. description: 删除数据
  1601. parameters:
  1602. - description: body
  1603. in: body
  1604. name: data
  1605. required: true
  1606. schema:
  1607. $ref: '#/definitions/dto.SysRoleDeleteReq'
  1608. responses:
  1609. "200":
  1610. description: '{"code": 200, "data": [...]}'
  1611. schema:
  1612. $ref: '#/definitions/response.Response'
  1613. security:
  1614. - Bearer: []
  1615. summary: 删除用户角色
  1616. tags:
  1617. - 角色/Role
  1618. get:
  1619. description: Get JSON
  1620. parameters:
  1621. - description: roleName
  1622. in: query
  1623. name: roleName
  1624. type: string
  1625. - description: status
  1626. in: query
  1627. name: status
  1628. type: string
  1629. - description: roleKey
  1630. in: query
  1631. name: roleKey
  1632. type: string
  1633. - description: 页条数
  1634. in: query
  1635. name: pageSize
  1636. type: integer
  1637. - description: 页码
  1638. in: query
  1639. name: pageIndex
  1640. type: integer
  1641. responses:
  1642. "200":
  1643. description: '{"code": 200, "data": [...]}'
  1644. schema:
  1645. $ref: '#/definitions/response.Response'
  1646. security:
  1647. - Bearer: []
  1648. summary: 角色列表数据
  1649. tags:
  1650. - 角色/Role
  1651. post:
  1652. consumes:
  1653. - application/json
  1654. description: 获取JSON
  1655. parameters:
  1656. - description: data
  1657. in: body
  1658. name: data
  1659. required: true
  1660. schema:
  1661. $ref: '#/definitions/dto.SysRoleInsertReq'
  1662. responses:
  1663. "200":
  1664. description: '{"code": 200, "data": [...]}'
  1665. schema:
  1666. $ref: '#/definitions/response.Response'
  1667. security:
  1668. - Bearer: []
  1669. summary: 创建角色
  1670. tags:
  1671. - 角色/Role
  1672. /api/v1/role-status/{id}:
  1673. put:
  1674. consumes:
  1675. - application/json
  1676. description: 获取JSON
  1677. parameters:
  1678. - description: body
  1679. in: body
  1680. name: data
  1681. required: true
  1682. schema:
  1683. $ref: '#/definitions/dto.RoleDataScopeReq'
  1684. responses:
  1685. "200":
  1686. description: '{"code": 200, "data": [...]}'
  1687. schema:
  1688. $ref: '#/definitions/response.Response'
  1689. security:
  1690. - Bearer: []
  1691. summary: 更新角色数据权限
  1692. tags:
  1693. - 角色/Role
  1694. /api/v1/role/{id}:
  1695. get:
  1696. description: 获取JSON
  1697. parameters:
  1698. - description: roleId
  1699. in: path
  1700. name: roleId
  1701. type: string
  1702. responses:
  1703. "200":
  1704. description: '{"code": 200, "data": [...]}'
  1705. schema:
  1706. $ref: '#/definitions/response.Response'
  1707. security:
  1708. - Bearer: []
  1709. summary: 获取Role数据
  1710. tags:
  1711. - 角色/Role
  1712. put:
  1713. consumes:
  1714. - application/json
  1715. description: 获取JSON
  1716. parameters:
  1717. - description: body
  1718. in: body
  1719. name: data
  1720. required: true
  1721. schema:
  1722. $ref: '#/definitions/dto.SysRoleUpdateReq'
  1723. responses:
  1724. "200":
  1725. description: '{"code": 200, "data": [...]}'
  1726. schema:
  1727. $ref: '#/definitions/response.Response'
  1728. security:
  1729. - Bearer: []
  1730. summary: 修改用户角色
  1731. tags:
  1732. - 角色/Role
  1733. /api/v1/set-config:
  1734. get:
  1735. consumes:
  1736. - application/json
  1737. description: 界面操作设置配置值的获取
  1738. responses:
  1739. "200":
  1740. description: '{"code": 200, "message": "修改成功"}'
  1741. schema:
  1742. allOf:
  1743. - $ref: '#/definitions/response.Response'
  1744. - properties:
  1745. data:
  1746. additionalProperties: true
  1747. type: object
  1748. type: object
  1749. security:
  1750. - Bearer: []
  1751. summary: 获取配置
  1752. tags:
  1753. - 配置管理
  1754. put:
  1755. consumes:
  1756. - application/json
  1757. description: 界面操作设置配置值
  1758. parameters:
  1759. - description: body
  1760. in: body
  1761. name: data
  1762. required: true
  1763. schema:
  1764. items:
  1765. $ref: '#/definitions/dto.GetSetSysConfigReq'
  1766. type: array
  1767. responses:
  1768. "200":
  1769. description: '{"code": 200, "message": "修改成功"}'
  1770. schema:
  1771. $ref: '#/definitions/response.Response'
  1772. security:
  1773. - Bearer: []
  1774. summary: 设置配置
  1775. tags:
  1776. - 配置管理
  1777. /api/v1/sys-api:
  1778. delete:
  1779. description: 删除接口管理
  1780. parameters:
  1781. - description: body
  1782. in: body
  1783. name: data
  1784. required: true
  1785. schema:
  1786. $ref: '#/definitions/dto.SysApiDeleteReq'
  1787. responses:
  1788. "200":
  1789. description: '{"code": 200, "message": "删除成功"}'
  1790. schema:
  1791. $ref: '#/definitions/response.Response'
  1792. security:
  1793. - Bearer: []
  1794. summary: 删除接口管理
  1795. tags:
  1796. - 接口管理
  1797. get:
  1798. description: 获取接口管理列表
  1799. parameters:
  1800. - description: 名称
  1801. in: query
  1802. name: name
  1803. type: string
  1804. - description: 标题
  1805. in: query
  1806. name: title
  1807. type: string
  1808. - description: 地址
  1809. in: query
  1810. name: path
  1811. type: string
  1812. - description: 类型
  1813. in: query
  1814. name: action
  1815. type: string
  1816. - description: 页条数
  1817. in: query
  1818. name: pageSize
  1819. type: integer
  1820. - description: 页码
  1821. in: query
  1822. name: pageIndex
  1823. type: integer
  1824. responses:
  1825. "200":
  1826. description: '{"code": 200, "data": [...]}'
  1827. schema:
  1828. allOf:
  1829. - $ref: '#/definitions/response.Response'
  1830. - properties:
  1831. data:
  1832. allOf:
  1833. - $ref: '#/definitions/response.Page'
  1834. - properties:
  1835. list:
  1836. items:
  1837. $ref: '#/definitions/models.SysApi'
  1838. type: array
  1839. type: object
  1840. type: object
  1841. security:
  1842. - Bearer: []
  1843. summary: 获取接口管理列表
  1844. tags:
  1845. - 接口管理
  1846. /api/v1/sys-api/{id}:
  1847. get:
  1848. description: 获取接口管理
  1849. parameters:
  1850. - description: id
  1851. in: path
  1852. name: id
  1853. type: string
  1854. responses:
  1855. "200":
  1856. description: '{"code": 200, "data": [...]}'
  1857. schema:
  1858. allOf:
  1859. - $ref: '#/definitions/response.Response'
  1860. - properties:
  1861. data:
  1862. $ref: '#/definitions/models.SysApi'
  1863. type: object
  1864. security:
  1865. - Bearer: []
  1866. summary: 获取接口管理
  1867. tags:
  1868. - 接口管理
  1869. put:
  1870. consumes:
  1871. - application/json
  1872. description: 修改接口管理
  1873. parameters:
  1874. - description: body
  1875. in: body
  1876. name: data
  1877. required: true
  1878. schema:
  1879. $ref: '#/definitions/dto.SysApiUpdateReq'
  1880. responses:
  1881. "200":
  1882. description: '{"code": 200, "message": "修改成功"}'
  1883. schema:
  1884. $ref: '#/definitions/response.Response'
  1885. security:
  1886. - Bearer: []
  1887. summary: 修改接口管理
  1888. tags:
  1889. - 接口管理
  1890. /api/v1/sys-config:
  1891. delete:
  1892. description: 删除配置管理
  1893. parameters:
  1894. - description: ids
  1895. in: body
  1896. name: ids
  1897. schema:
  1898. items:
  1899. type: integer
  1900. type: array
  1901. responses:
  1902. "200":
  1903. description: '{"code": 200, "message": "删除成功"}'
  1904. schema:
  1905. $ref: '#/definitions/response.Response'
  1906. security:
  1907. - Bearer: []
  1908. summary: 删除配置管理
  1909. tags:
  1910. - 配置管理
  1911. get:
  1912. description: 获取配置管理列表
  1913. parameters:
  1914. - description: 名称
  1915. in: query
  1916. name: configName
  1917. type: string
  1918. - description: key
  1919. in: query
  1920. name: configKey
  1921. type: string
  1922. - description: 类型
  1923. in: query
  1924. name: configType
  1925. type: string
  1926. - description: 是否前端
  1927. in: query
  1928. name: isFrontend
  1929. type: integer
  1930. - description: 页条数
  1931. in: query
  1932. name: pageSize
  1933. type: integer
  1934. - description: 页码
  1935. in: query
  1936. name: pageIndex
  1937. type: integer
  1938. responses:
  1939. "200":
  1940. description: '{"code": 200, "data": [...]}'
  1941. schema:
  1942. allOf:
  1943. - $ref: '#/definitions/response.Response'
  1944. - properties:
  1945. data:
  1946. allOf:
  1947. - $ref: '#/definitions/response.Page'
  1948. - properties:
  1949. list:
  1950. items:
  1951. $ref: '#/definitions/models.SysApi'
  1952. type: array
  1953. type: object
  1954. type: object
  1955. security:
  1956. - Bearer: []
  1957. summary: 获取配置管理列表
  1958. tags:
  1959. - 配置管理
  1960. post:
  1961. consumes:
  1962. - application/json
  1963. description: 创建配置管理
  1964. parameters:
  1965. - description: body
  1966. in: body
  1967. name: data
  1968. required: true
  1969. schema:
  1970. $ref: '#/definitions/dto.SysConfigControl'
  1971. responses:
  1972. "200":
  1973. description: '{"code": 200, "message": "创建成功"}'
  1974. schema:
  1975. $ref: '#/definitions/response.Response'
  1976. security:
  1977. - Bearer: []
  1978. summary: 创建配置管理
  1979. tags:
  1980. - 配置管理
  1981. /api/v1/sys-config/{id}:
  1982. get:
  1983. description: 根据Key获取SysConfig的Service
  1984. parameters:
  1985. - description: configKey
  1986. in: path
  1987. name: configKey
  1988. type: string
  1989. responses:
  1990. "200":
  1991. description: '{"code": 200, "data": [...]}'
  1992. schema:
  1993. allOf:
  1994. - $ref: '#/definitions/response.Response'
  1995. - properties:
  1996. data:
  1997. $ref: '#/definitions/dto.SysConfigByKeyReq'
  1998. type: object
  1999. security:
  2000. - Bearer: []
  2001. summary: 根据Key获取SysConfig的Service
  2002. tags:
  2003. - 配置管理
  2004. put:
  2005. consumes:
  2006. - application/json
  2007. description: 修改配置管理
  2008. parameters:
  2009. - description: body
  2010. in: body
  2011. name: data
  2012. required: true
  2013. schema:
  2014. $ref: '#/definitions/dto.SysConfigControl'
  2015. responses:
  2016. "200":
  2017. description: '{"code": 200, "message": "修改成功"}'
  2018. schema:
  2019. $ref: '#/definitions/response.Response'
  2020. security:
  2021. - Bearer: []
  2022. summary: 修改配置管理
  2023. tags:
  2024. - 配置管理
  2025. /api/v1/sys-login-log:
  2026. delete:
  2027. description: 登录日志删除
  2028. parameters:
  2029. - description: body
  2030. in: body
  2031. name: data
  2032. required: true
  2033. schema:
  2034. $ref: '#/definitions/dto.SysLoginLogDeleteReq'
  2035. responses:
  2036. "200":
  2037. description: '{"code": 200, "data": [...]}'
  2038. schema:
  2039. $ref: '#/definitions/response.Response'
  2040. security:
  2041. - Bearer: []
  2042. summary: 登录日志删除
  2043. tags:
  2044. - 登录日志
  2045. get:
  2046. description: 获取JSON
  2047. parameters:
  2048. - description: 用户名
  2049. in: query
  2050. name: username
  2051. type: string
  2052. - description: ip地址
  2053. in: query
  2054. name: ipaddr
  2055. type: string
  2056. - description: 归属地
  2057. in: query
  2058. name: loginLocation
  2059. type: string
  2060. - description: 状态
  2061. in: query
  2062. name: status
  2063. type: string
  2064. - description: 开始时间
  2065. in: query
  2066. name: beginTime
  2067. type: string
  2068. - description: 结束时间
  2069. in: query
  2070. name: endTime
  2071. type: string
  2072. responses:
  2073. "200":
  2074. description: '{"code": 200, "data": [...]}'
  2075. schema:
  2076. $ref: '#/definitions/response.Response'
  2077. security:
  2078. - Bearer: []
  2079. summary: 登录日志列表
  2080. tags:
  2081. - 登录日志
  2082. /api/v1/sys-login-log/{id}:
  2083. get:
  2084. description: 获取JSON
  2085. parameters:
  2086. - description: id
  2087. in: path
  2088. name: id
  2089. type: string
  2090. responses:
  2091. "200":
  2092. description: '{"code": 200, "data": [...]}'
  2093. schema:
  2094. $ref: '#/definitions/response.Response'
  2095. security:
  2096. - Bearer: []
  2097. summary: 登录日志通过id获取
  2098. tags:
  2099. - 登录日志
  2100. /api/v1/sys-opera-log:
  2101. delete:
  2102. description: 删除数据
  2103. parameters:
  2104. - description: body
  2105. in: body
  2106. name: data
  2107. required: true
  2108. schema:
  2109. $ref: '#/definitions/dto.SysOperaLogDeleteReq'
  2110. responses:
  2111. "200":
  2112. description: '{"code": 200, "data": [...]}'
  2113. schema:
  2114. $ref: '#/definitions/response.Response'
  2115. security:
  2116. - Bearer: []
  2117. summary: 删除操作日志
  2118. tags:
  2119. - 操作日志
  2120. get:
  2121. description: 获取JSON
  2122. parameters:
  2123. - description: title
  2124. in: query
  2125. name: title
  2126. type: string
  2127. - description: method
  2128. in: query
  2129. name: method
  2130. type: string
  2131. - description: requestMethod
  2132. in: query
  2133. name: requestMethod
  2134. type: string
  2135. - description: operUrl
  2136. in: query
  2137. name: operUrl
  2138. type: string
  2139. - description: operIp
  2140. in: query
  2141. name: operIp
  2142. type: string
  2143. - description: status
  2144. in: query
  2145. name: status
  2146. type: string
  2147. - description: beginTime
  2148. in: query
  2149. name: beginTime
  2150. type: string
  2151. - description: endTime
  2152. in: query
  2153. name: endTime
  2154. type: string
  2155. responses:
  2156. "200":
  2157. description: '{"code": 200, "data": [...]}'
  2158. schema:
  2159. $ref: '#/definitions/response.Response'
  2160. security:
  2161. - Bearer: []
  2162. summary: 操作日志列表
  2163. tags:
  2164. - 操作日志
  2165. /api/v1/sys-opera-log/{id}:
  2166. get:
  2167. description: 获取JSON
  2168. parameters:
  2169. - description: id
  2170. in: path
  2171. name: id
  2172. type: string
  2173. responses:
  2174. "200":
  2175. description: '{"code": 200, "data": [...]}'
  2176. schema:
  2177. $ref: '#/definitions/response.Response'
  2178. security:
  2179. - Bearer: []
  2180. summary: 操作日志通过id获取
  2181. tags:
  2182. - 操作日志
  2183. /api/v1/sys-user:
  2184. get:
  2185. description: 获取JSON
  2186. parameters:
  2187. - description: username
  2188. in: query
  2189. name: username
  2190. type: string
  2191. responses:
  2192. "200":
  2193. description: '{"code": 200, "data": [...]}'
  2194. schema:
  2195. type: string
  2196. security:
  2197. - Bearer: []
  2198. summary: 列表用户信息数据
  2199. tags:
  2200. - 用户
  2201. post:
  2202. consumes:
  2203. - application/json
  2204. description: 获取JSON
  2205. parameters:
  2206. - description: 用户数据
  2207. in: body
  2208. name: data
  2209. required: true
  2210. schema:
  2211. $ref: '#/definitions/dto.SysUserInsertReq'
  2212. responses:
  2213. "200":
  2214. description: '{"code": 200, "data": [...]}'
  2215. schema:
  2216. $ref: '#/definitions/response.Response'
  2217. security:
  2218. - Bearer: []
  2219. summary: 创建用户
  2220. tags:
  2221. - 用户
  2222. /api/v1/sys-user/{userId}:
  2223. delete:
  2224. description: 删除数据
  2225. parameters:
  2226. - description: userId
  2227. in: path
  2228. name: userId
  2229. required: true
  2230. type: integer
  2231. responses:
  2232. "200":
  2233. description: '{"code": 200, "data": [...]}'
  2234. schema:
  2235. $ref: '#/definitions/response.Response'
  2236. security:
  2237. - Bearer: []
  2238. summary: 删除用户数据
  2239. tags:
  2240. - 用户
  2241. get:
  2242. description: 获取JSON
  2243. parameters:
  2244. - description: 用户编码
  2245. in: path
  2246. name: userId
  2247. required: true
  2248. type: integer
  2249. responses:
  2250. "200":
  2251. description: '{"code": 200, "data": [...]}'
  2252. schema:
  2253. $ref: '#/definitions/response.Response'
  2254. security:
  2255. - Bearer: []
  2256. summary: 获取用户
  2257. tags:
  2258. - 用户
  2259. put:
  2260. consumes:
  2261. - application/json
  2262. description: 获取JSON
  2263. parameters:
  2264. - description: body
  2265. in: body
  2266. name: data
  2267. required: true
  2268. schema:
  2269. $ref: '#/definitions/dto.SysUserUpdateReq'
  2270. responses:
  2271. "200":
  2272. description: '{"code": 200, "data": [...]}'
  2273. schema:
  2274. $ref: '#/definitions/response.Response'
  2275. security:
  2276. - Bearer: []
  2277. summary: 修改用户数据
  2278. tags:
  2279. - 用户
  2280. /api/v1/user/avatar:
  2281. post:
  2282. consumes:
  2283. - multipart/form-data
  2284. description: 获取JSON
  2285. parameters:
  2286. - description: file
  2287. in: formData
  2288. name: file
  2289. required: true
  2290. type: file
  2291. responses:
  2292. "200":
  2293. description: '{"code": 200, "data": [...]}'
  2294. schema:
  2295. $ref: '#/definitions/response.Response'
  2296. security:
  2297. - Bearer: []
  2298. summary: 修改头像
  2299. tags:
  2300. - 个人中心
  2301. /api/v1/user/profile:
  2302. get:
  2303. description: 获取JSON
  2304. responses:
  2305. "200":
  2306. description: '{"code": 200, "data": [...]}'
  2307. schema:
  2308. $ref: '#/definitions/response.Response'
  2309. security:
  2310. - Bearer: []
  2311. summary: 获取个人中心用户
  2312. tags:
  2313. - 个人中心
  2314. /api/v1/user/pwd/reset:
  2315. put:
  2316. consumes:
  2317. - application/json
  2318. description: 获取JSON
  2319. parameters:
  2320. - description: body
  2321. in: body
  2322. name: data
  2323. required: true
  2324. schema:
  2325. $ref: '#/definitions/dto.ResetSysUserPwdReq'
  2326. responses:
  2327. "200":
  2328. description: '{"code": 200, "data": [...]}'
  2329. schema:
  2330. $ref: '#/definitions/response.Response'
  2331. security:
  2332. - Bearer: []
  2333. summary: 重置用户密码
  2334. tags:
  2335. - 用户
  2336. /api/v1/user/pwd/set:
  2337. put:
  2338. consumes:
  2339. - application/json
  2340. description: 获取JSON
  2341. parameters:
  2342. - description: body
  2343. in: body
  2344. name: data
  2345. required: true
  2346. schema:
  2347. $ref: '#/definitions/dto.PassWord'
  2348. responses:
  2349. "200":
  2350. description: '{"code": 200, "data": [...]}'
  2351. schema:
  2352. $ref: '#/definitions/response.Response'
  2353. security:
  2354. - Bearer: []
  2355. summary: 修改密码
  2356. tags:
  2357. - 用户
  2358. /api/v1/user/status:
  2359. put:
  2360. consumes:
  2361. - application/json
  2362. description: 获取JSON
  2363. parameters:
  2364. - description: body
  2365. in: body
  2366. name: data
  2367. required: true
  2368. schema:
  2369. $ref: '#/definitions/dto.UpdateSysUserStatusReq'
  2370. responses:
  2371. "200":
  2372. description: '{"code": 200, "data": [...]}'
  2373. schema:
  2374. $ref: '#/definitions/response.Response'
  2375. security:
  2376. - Bearer: []
  2377. summary: 修改用户状态
  2378. tags:
  2379. - 用户
  2380. /logout:
  2381. post:
  2382. consumes:
  2383. - application/json
  2384. description: 获取token
  2385. responses:
  2386. "200":
  2387. description: '{"code": 200, "msg": "成功退出系统" }'
  2388. schema:
  2389. type: string
  2390. security:
  2391. - Bearer: []
  2392. summary: 退出登录
  2393. swagger: "2.0"