swagger.yaml 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740
  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. description: 新密码
  13. example: "123456"
  14. type: string
  15. oldPassword:
  16. description: 旧密码
  17. example: "12345678"
  18. type: string
  19. type: object
  20. dto.ResetSysUserPwdReq:
  21. properties:
  22. id:
  23. description: 用户ID
  24. example: 1
  25. type: integer
  26. password:
  27. description: 密码
  28. example: "123456"
  29. type: string
  30. type: object
  31. dto.ServApiDeleteReq:
  32. properties:
  33. ids:
  34. items:
  35. type: integer
  36. type: array
  37. type: object
  38. dto.ServApiInsertReq:
  39. properties:
  40. ServiceId:
  41. description: 服务id
  42. type: integer
  43. name:
  44. description: 标题
  45. example: 标题
  46. type: string
  47. path:
  48. description: 地址
  49. example: /api/list
  50. type: string
  51. type:
  52. description: 请求类型 GET PUT POST DELETE
  53. example: GET
  54. type: string
  55. type: object
  56. dto.ServApiUpdateReq:
  57. properties:
  58. name:
  59. description: 标题
  60. example: 标题
  61. type: string
  62. path:
  63. description: 地址
  64. example: /api/list
  65. type: string
  66. type:
  67. description: 请求类型
  68. example: GET
  69. type: string
  70. type: object
  71. dto.ServMenuDeleteReq:
  72. properties:
  73. ids:
  74. items:
  75. type: integer
  76. type: array
  77. type: object
  78. dto.ServMenuExportReq:
  79. properties:
  80. serviceId:
  81. example: 1
  82. type: integer
  83. type:
  84. description: json excel
  85. example: json
  86. type: string
  87. type: object
  88. dto.ServMenuInsertReq:
  89. properties:
  90. component:
  91. description: 组件名称
  92. example: /admin/sys-user/index
  93. type: string
  94. icon:
  95. description: 图标
  96. example: app-group-fill
  97. type: string
  98. isFrame:
  99. description: 是否frame 1-是 2-否
  100. example: "0"
  101. type: string
  102. menuType:
  103. description: 菜单类型 M-目录 C-菜单 F-按钮
  104. example: C
  105. type: string
  106. name:
  107. description: 菜单名称
  108. example: 菜单名称
  109. type: string
  110. parentId:
  111. description: 上级菜单
  112. example: 0
  113. type: integer
  114. path:
  115. description: 路径
  116. example: /admin
  117. type: string
  118. permission:
  119. description: 权限编码
  120. example: admin:sysUser:list
  121. type: string
  122. serviceId:
  123. description: 服务id
  124. example: 1
  125. type: integer
  126. sort:
  127. description: 排序
  128. example: 0
  129. type: integer
  130. visible:
  131. description: 是否显示 1-显示 2-隐藏
  132. example: "1"
  133. type: string
  134. type: object
  135. dto.ServMenuUpdateReq:
  136. properties:
  137. component:
  138. description: 组件名称
  139. example: /admin/sys-user/index
  140. type: string
  141. icon:
  142. description: 图标
  143. example: app-group-fill
  144. type: string
  145. isFrame:
  146. description: 是否frame 1-是 2-否
  147. example: "0"
  148. type: string
  149. menuType:
  150. description: 菜单类型 M-目录 C-菜单 F-按钮
  151. example: C
  152. type: string
  153. name:
  154. description: 菜单名称
  155. example: 菜单名称
  156. type: string
  157. parentId:
  158. description: 上级菜单
  159. example: 0
  160. type: integer
  161. path:
  162. description: 路径
  163. example: /admin
  164. type: string
  165. permission:
  166. description: 权限编码
  167. example: admin:sysUser:list
  168. type: string
  169. sort:
  170. description: 排序
  171. example: 0
  172. type: integer
  173. visible:
  174. description: 是否显示 1-显示 2-隐藏
  175. example: "1"
  176. type: string
  177. type: object
  178. dto.SysConfigByKeyReq:
  179. properties:
  180. configKey:
  181. type: string
  182. type: object
  183. dto.SysConfigControl:
  184. properties:
  185. configKey:
  186. example: sys_single_login
  187. type: string
  188. configName:
  189. example: 单-登录
  190. type: string
  191. configValue:
  192. example: 是
  193. type: string
  194. isFrontend:
  195. description: 1 是 2 否
  196. example: "1"
  197. type: string
  198. remark:
  199. example: 备注
  200. type: string
  201. type: object
  202. dto.SysDeptDeleteReq:
  203. properties:
  204. ids:
  205. items:
  206. type: integer
  207. type: array
  208. type: object
  209. dto.SysDeptEnterReq:
  210. properties:
  211. id:
  212. type: integer
  213. type: object
  214. dto.SysDeptInsertReq:
  215. properties:
  216. deptName:
  217. description: 部门名称
  218. example: 部门名称
  219. type: string
  220. parentId:
  221. description: 上级部门
  222. example: 0
  223. type: integer
  224. sort:
  225. description: 排序
  226. example: 0
  227. type: integer
  228. status:
  229. description: 状态 1-停用 2-正常
  230. example: 2
  231. type: integer
  232. type: object
  233. dto.SysDeptUpdateReq:
  234. properties:
  235. deptName:
  236. description: 部门名称
  237. example: 部门名称
  238. type: string
  239. sort:
  240. description: 排序
  241. example: 0
  242. type: integer
  243. status:
  244. description: 状态 1-停用 2-正常
  245. example: 2
  246. type: integer
  247. type: object
  248. dto.SysDictDataDeleteReq:
  249. properties:
  250. ids:
  251. items:
  252. type: integer
  253. type: array
  254. type: object
  255. dto.SysDictDataGetAllResp:
  256. properties:
  257. label:
  258. type: string
  259. value:
  260. type: string
  261. type: object
  262. dto.SysDictDataInsertReq:
  263. properties:
  264. cssClass:
  265. type: string
  266. default:
  267. type: string
  268. dictLabel:
  269. type: string
  270. dictSort:
  271. type: integer
  272. dictType:
  273. type: string
  274. dictValue:
  275. type: string
  276. isDefault:
  277. type: string
  278. listClass:
  279. type: string
  280. remark:
  281. type: string
  282. status:
  283. type: integer
  284. type: object
  285. dto.SysDictDataUpdateReq:
  286. properties:
  287. cssClass:
  288. type: string
  289. default:
  290. type: string
  291. dictLabel:
  292. type: string
  293. dictSort:
  294. type: integer
  295. dictType:
  296. type: string
  297. dictValue:
  298. type: string
  299. id:
  300. type: integer
  301. isDefault:
  302. type: string
  303. listClass:
  304. type: string
  305. remark:
  306. type: string
  307. status:
  308. type: integer
  309. type: object
  310. dto.SysDictTypeDeleteReq:
  311. properties:
  312. ids:
  313. items:
  314. type: integer
  315. type: array
  316. type: object
  317. dto.SysDictTypeInsertReq:
  318. properties:
  319. dictName:
  320. type: string
  321. dictType:
  322. type: string
  323. id:
  324. type: integer
  325. remark:
  326. type: string
  327. status:
  328. type: integer
  329. type: object
  330. dto.SysDictTypeUpdateReq:
  331. properties:
  332. dictName:
  333. type: string
  334. dictType:
  335. type: string
  336. id:
  337. type: integer
  338. remark:
  339. type: string
  340. status:
  341. type: integer
  342. type: object
  343. dto.SysLoginLogDeleteReq:
  344. properties:
  345. ids:
  346. items:
  347. type: integer
  348. type: array
  349. type: object
  350. dto.SysMenuDeleteReq:
  351. properties:
  352. ids:
  353. items:
  354. type: integer
  355. type: array
  356. type: object
  357. dto.SysMenuInsertReq:
  358. properties:
  359. parentId:
  360. description: 上级菜单
  361. example: 0
  362. type: integer
  363. serviceId:
  364. description: 服务id
  365. example: 1
  366. type: integer
  367. serviceMenuId:
  368. description: 编码
  369. type: integer
  370. sort:
  371. description: 排序
  372. example: 0
  373. type: integer
  374. visible:
  375. description: 是否显示 1-显示 2-隐藏
  376. example: "1"
  377. type: string
  378. type: object
  379. dto.SysMenuUpdateReq:
  380. properties:
  381. id:
  382. description: 编码
  383. type: integer
  384. sort:
  385. description: 排序
  386. type: integer
  387. visible:
  388. description: 是否显示
  389. type: string
  390. type: object
  391. dto.SysOperaLogDeleteReq:
  392. properties:
  393. ids:
  394. items:
  395. type: integer
  396. type: array
  397. type: object
  398. dto.SysPostDeleteReq:
  399. properties:
  400. ids:
  401. items:
  402. type: integer
  403. type: array
  404. type: object
  405. dto.SysPostInsertReq:
  406. properties:
  407. postName:
  408. description: 岗位名称
  409. example: 岗位名称
  410. type: string
  411. remark:
  412. description: 备注
  413. example: 备注
  414. type: string
  415. sort:
  416. description: 排序
  417. example: 0
  418. type: integer
  419. status:
  420. description: 状态 1-停用 2-正常
  421. example: 2
  422. type: integer
  423. type: object
  424. dto.SysPostUpdateReq:
  425. properties:
  426. postName:
  427. description: 岗位名称
  428. example: 岗位名称
  429. type: string
  430. remark:
  431. description: 备注
  432. example: 备注
  433. type: string
  434. sort:
  435. description: 排序
  436. example: 0
  437. type: integer
  438. status:
  439. description: 状态
  440. example: 2
  441. type: integer
  442. type: object
  443. dto.SysRegisterAuthDeleteReq:
  444. properties:
  445. id:
  446. type: integer
  447. type: object
  448. dto.SysRegisterAuthInsertReq:
  449. properties:
  450. SMSVerify:
  451. description: 短信验证 1-关闭 2-开启
  452. example: 2
  453. type: integer
  454. deptId:
  455. description: 部门id
  456. example: 2
  457. type: integer
  458. inviteCode:
  459. description: 邀请码,可以为空
  460. example: HnhsqMls
  461. type: string
  462. roleId:
  463. description: 角色id
  464. example: 2
  465. type: integer
  466. status:
  467. description: 状态 1-停用 2-正常
  468. example: 2
  469. type: integer
  470. type: object
  471. dto.SysRegisterAuthUpdateReq:
  472. properties:
  473. SMSVerify:
  474. description: 短信验证 1-关闭 2-开启
  475. example: 2
  476. type: integer
  477. deptId:
  478. description: 部门id
  479. example: 2
  480. type: integer
  481. inviteCode:
  482. description: 邀请码,可以为空
  483. example: HnhsqMls
  484. type: string
  485. roleId:
  486. description: 角色id
  487. example: 2
  488. type: integer
  489. status:
  490. description: 状态 1-停用 2-正常
  491. example: 2
  492. type: integer
  493. type: object
  494. dto.SysRoleDeleteReq:
  495. properties:
  496. id:
  497. type: integer
  498. type: object
  499. dto.SysRoleGetRoleApiListResp:
  500. properties:
  501. apiIds:
  502. items:
  503. type: integer
  504. type: array
  505. apiList:
  506. items:
  507. $ref: '#/definitions/model.ServApi'
  508. type: array
  509. type: object
  510. dto.SysRoleGetRoleMenuListResp:
  511. properties:
  512. menuIds:
  513. items:
  514. type: integer
  515. type: array
  516. type: object
  517. dto.SysRoleInsertReq:
  518. properties:
  519. dataScope:
  520. description: 数据权限 1-全部数据权限 3-本机构数据权限 4-本机构及以下数据权限 5-仅本人数据权限
  521. example: 1
  522. type: integer
  523. name:
  524. description: 角色名称
  525. example: 管理员
  526. type: string
  527. remark:
  528. description: 备注
  529. example: 备注
  530. type: string
  531. sort:
  532. description: 角色排序
  533. example: 0
  534. type: integer
  535. status:
  536. description: 状态 1-停用 2-正常
  537. example: "2"
  538. type: string
  539. type: object
  540. dto.SysRoleUpdateReq:
  541. properties:
  542. dataScope:
  543. description: 数据权限 1-全部数据权限 3-本机构数据权限 4-本机构及以下数据权限 5-仅本人数据权限
  544. example: 1
  545. type: integer
  546. name:
  547. description: 角色名称
  548. example: 管理员
  549. type: string
  550. remark:
  551. description: 备注
  552. example: 备注
  553. type: string
  554. sort:
  555. description: 角色排序
  556. example: 0
  557. type: integer
  558. status:
  559. description: 状态 1-停用 2-正常
  560. example: "2"
  561. type: string
  562. type: object
  563. dto.SysRoleUpdateRoleApiReq:
  564. properties:
  565. apiIds:
  566. description: api路由 id
  567. example:
  568. - 1
  569. - 2
  570. - 3
  571. items:
  572. type: integer
  573. type: array
  574. serviceId:
  575. description: 服务id
  576. example: 1
  577. type: integer
  578. type: object
  579. dto.SysRoleUpdateRoleMenuReq:
  580. properties:
  581. menuIds:
  582. description: 系统菜单id
  583. example:
  584. - 1
  585. - 2
  586. - 3
  587. items:
  588. type: integer
  589. type: array
  590. type: object
  591. dto.SysServiceDeleteReq:
  592. properties:
  593. ids:
  594. items:
  595. type: integer
  596. type: array
  597. type: object
  598. dto.SysServiceDiscoveryReq:
  599. properties:
  600. authCode:
  601. description: 授权码
  602. example: 3EDJRaagFTVVo2Ilo80nHJfLVN1OgN8d
  603. type: string
  604. host:
  605. description: 服务地址
  606. example: http://127.0.0.1:8080/user
  607. type: string
  608. name:
  609. description: 服务名称
  610. example: 用户系统
  611. type: string
  612. roleApiUrl:
  613. description: 授权码
  614. example: /api/role-api-test
  615. type: string
  616. type: object
  617. dto.SysServiceInsertReq:
  618. properties:
  619. authCode:
  620. description: 授权码
  621. example: 3EDJRaagFTVVo2Ilo80nHJfLVN1OgN8d
  622. type: string
  623. host:
  624. description: 服务地址
  625. example: http://127.0.0.1:8080/user
  626. type: string
  627. name:
  628. description: 服务名称
  629. example: 用户系统
  630. type: string
  631. roleApiUrl:
  632. description: 角色api回调地址
  633. example: /role/api
  634. type: string
  635. status:
  636. default: 1
  637. description: 状态 1-停用 2-正常
  638. example: 1
  639. type: integer
  640. type: object
  641. dto.SysServiceUpdateReq:
  642. properties:
  643. authCode:
  644. description: 授权码
  645. example: 3EDJRaagFTVVo2Ilo80nHJfLVN1OgN8d
  646. type: string
  647. host:
  648. description: 服务地址
  649. example: http://127.0.0.1:8080/user
  650. type: string
  651. name:
  652. description: 服务名称
  653. example: 用户系统
  654. type: string
  655. roleApiUrl:
  656. example: /role/api
  657. type: string
  658. status:
  659. default: 1
  660. example: 1
  661. type: integer
  662. type: object
  663. dto.SysUserDeleteReq:
  664. properties:
  665. ids:
  666. items:
  667. type: integer
  668. type: array
  669. type: object
  670. dto.SysUserInsertReq:
  671. properties:
  672. nickName:
  673. description: 姓名
  674. example: 姓名
  675. type: string
  676. password:
  677. description: 密码
  678. example: "123456"
  679. type: string
  680. username:
  681. description: 用户名
  682. example: username
  683. type: string
  684. type: object
  685. dto.SysUserRegisterReq:
  686. properties:
  687. URKey:
  688. description: 注册码
  689. example: jKEnYWNXyrOvTofU
  690. type: string
  691. code:
  692. description: 短信验证码
  693. example: "125478"
  694. type: string
  695. password:
  696. description: 密码
  697. example: "123456"
  698. type: string
  699. phone:
  700. description: 手机号
  701. example: "13912345678"
  702. type: string
  703. username:
  704. description: 用户名
  705. example: username
  706. type: string
  707. type: object
  708. dto.SysUserUpdateReq:
  709. properties:
  710. nickName:
  711. description: 昵称
  712. example: 昵称
  713. type: string
  714. type: object
  715. dto.UpdateSysUserStatusReq:
  716. properties:
  717. id:
  718. description: 用户ID
  719. example: 1
  720. type: integer
  721. status:
  722. description: 状态 1-停用 2-正常
  723. example: "2"
  724. type: string
  725. type: object
  726. handler.Login:
  727. properties:
  728. password:
  729. description: 密码
  730. type: string
  731. username:
  732. description: 用户名
  733. type: string
  734. required:
  735. - password
  736. - username
  737. type: object
  738. model.ServApi:
  739. properties:
  740. action:
  741. description: 请求类型
  742. type: string
  743. createBy:
  744. description: 创建者
  745. type: integer
  746. createdAt:
  747. description: 创建时间
  748. type: string
  749. id:
  750. description: 主键编码
  751. type: integer
  752. name:
  753. description: 标题
  754. type: string
  755. path:
  756. description: 地址
  757. type: string
  758. serviceId:
  759. description: 服务ID
  760. type: integer
  761. updateBy:
  762. description: 更新者
  763. type: integer
  764. updatedAt:
  765. description: 最后更新时间
  766. type: string
  767. type: object
  768. model.ServMenu:
  769. properties:
  770. children:
  771. items:
  772. $ref: '#/definitions/model.ServMenu'
  773. type: array
  774. component:
  775. description: 组件路径
  776. type: string
  777. createBy:
  778. description: 创建者
  779. type: integer
  780. createdAt:
  781. description: 创建时间
  782. type: string
  783. icon:
  784. description: 图标
  785. type: string
  786. id:
  787. description: 主键编码
  788. type: integer
  789. is_select:
  790. type: boolean
  791. isFrame:
  792. description: 是否外链 1-是 2-否
  793. type: string
  794. menuType:
  795. description: 菜单类型
  796. type: string
  797. name:
  798. description: 菜单名称
  799. type: string
  800. parentId:
  801. description: 父id
  802. type: integer
  803. path:
  804. description: 外链路由地址
  805. type: string
  806. permission:
  807. description: 权限标识
  808. type: string
  809. serviceId:
  810. description: 服务ID
  811. type: integer
  812. sort:
  813. description: 排序
  814. type: integer
  815. updateBy:
  816. description: 更新者
  817. type: integer
  818. updatedAt:
  819. description: 最后更新时间
  820. type: string
  821. visible:
  822. description: 1-显示 0-隐藏
  823. type: string
  824. type: object
  825. model.SysConfig:
  826. properties:
  827. configKey:
  828. description: 配置Key
  829. type: string
  830. configName:
  831. description: 配置名称
  832. type: string
  833. configValue:
  834. description: 配置值
  835. type: string
  836. createBy:
  837. description: 创建者
  838. type: integer
  839. createdAt:
  840. description: 创建时间
  841. type: string
  842. id:
  843. description: 主键编码
  844. type: integer
  845. isFrontend:
  846. description: 是否前台展示
  847. type: string
  848. remark:
  849. type: string
  850. updateBy:
  851. description: 更新者
  852. type: integer
  853. updatedAt:
  854. description: 最后更新时间
  855. type: string
  856. type: object
  857. model.SysDept:
  858. properties:
  859. children:
  860. items:
  861. $ref: '#/definitions/model.SysDept'
  862. type: array
  863. createBy:
  864. description: 创建者
  865. type: integer
  866. createdAt:
  867. description: 创建时间
  868. type: string
  869. deptName:
  870. description: 部门名称
  871. type: string
  872. id:
  873. description: 主键编码
  874. type: integer
  875. parentId:
  876. description: 上级部门
  877. type: integer
  878. sort:
  879. description: 排序
  880. type: integer
  881. status:
  882. description: 状态 1-停用 2-正常
  883. type: integer
  884. updateBy:
  885. description: 更新者
  886. type: integer
  887. updatedAt:
  888. description: 最后更新时间
  889. type: string
  890. type: object
  891. model.SysDictData:
  892. properties:
  893. createBy:
  894. description: 创建者
  895. type: integer
  896. createdAt:
  897. description: 创建时间
  898. type: string
  899. cssClass:
  900. type: string
  901. default:
  902. type: string
  903. dictCode:
  904. type: integer
  905. dictLabel:
  906. type: string
  907. dictSort:
  908. type: integer
  909. dictType:
  910. type: string
  911. dictValue:
  912. type: string
  913. isDefault:
  914. type: string
  915. listClass:
  916. type: string
  917. remark:
  918. type: string
  919. status:
  920. description: 1-停用 2-正常
  921. type: integer
  922. updateBy:
  923. description: 更新者
  924. type: integer
  925. updatedAt:
  926. description: 最后更新时间
  927. type: string
  928. type: object
  929. model.SysDictType:
  930. properties:
  931. createBy:
  932. description: 创建者
  933. type: integer
  934. createdAt:
  935. description: 创建时间
  936. type: string
  937. dictName:
  938. type: string
  939. dictType:
  940. type: string
  941. id:
  942. type: integer
  943. remark:
  944. type: string
  945. status:
  946. description: 1-停用 2-正常
  947. type: integer
  948. updateBy:
  949. description: 更新者
  950. type: integer
  951. updatedAt:
  952. description: 最后更新时间
  953. type: string
  954. type: object
  955. model.SysLoginLog:
  956. properties:
  957. browser:
  958. type: string
  959. createBy:
  960. description: 创建者
  961. type: integer
  962. createdAt:
  963. type: string
  964. id:
  965. description: 主键编码
  966. type: integer
  967. ipaddr:
  968. type: string
  969. loginLocation:
  970. type: string
  971. loginTime:
  972. type: string
  973. msg:
  974. type: string
  975. os:
  976. type: string
  977. platform:
  978. type: string
  979. remark:
  980. type: string
  981. status:
  982. type: string
  983. updateBy:
  984. description: 更新者
  985. type: integer
  986. updatedAt:
  987. type: string
  988. username:
  989. type: string
  990. type: object
  991. model.SysMenu:
  992. properties:
  993. children:
  994. items:
  995. $ref: '#/definitions/model.SysMenu'
  996. type: array
  997. component:
  998. description: 组件路径
  999. type: string
  1000. createBy:
  1001. description: 创建者
  1002. type: integer
  1003. createdAt:
  1004. description: 创建时间
  1005. type: string
  1006. icon:
  1007. description: 图标
  1008. type: string
  1009. id:
  1010. description: 主键编码
  1011. type: integer
  1012. isFrame:
  1013. description: 是否外链 1-是 2-否
  1014. type: string
  1015. menuType:
  1016. description: 菜单类型
  1017. type: string
  1018. name:
  1019. description: 菜单名称
  1020. type: string
  1021. parentId:
  1022. description: 父id
  1023. type: integer
  1024. path:
  1025. description: 外链路由地址
  1026. type: string
  1027. permission:
  1028. description: 权限标识
  1029. type: string
  1030. serviceId:
  1031. description: 服务ID
  1032. type: integer
  1033. serviceMenuId:
  1034. description: 服务菜单ID
  1035. type: integer
  1036. sort:
  1037. description: 排序
  1038. type: integer
  1039. updateBy:
  1040. description: 更新者
  1041. type: integer
  1042. updatedAt:
  1043. description: 最后更新时间
  1044. type: string
  1045. visible:
  1046. description: 1-显示 0-隐藏
  1047. type: string
  1048. type: object
  1049. model.SysOperaLog:
  1050. properties:
  1051. businessType:
  1052. type: string
  1053. businessTypes:
  1054. type: string
  1055. createBy:
  1056. description: 创建者
  1057. type: integer
  1058. createdAt:
  1059. type: string
  1060. deptName:
  1061. type: string
  1062. id:
  1063. description: 主键编码
  1064. type: integer
  1065. jsonResult:
  1066. type: string
  1067. latencyTime:
  1068. type: string
  1069. method:
  1070. type: string
  1071. operaIp:
  1072. type: string
  1073. operaLocation:
  1074. type: string
  1075. operaName:
  1076. type: string
  1077. operaParam:
  1078. type: string
  1079. operaTime:
  1080. type: string
  1081. operaUrl:
  1082. type: string
  1083. operatorType:
  1084. type: string
  1085. remark:
  1086. type: string
  1087. requestMethod:
  1088. type: string
  1089. status:
  1090. type: string
  1091. title:
  1092. type: string
  1093. updateBy:
  1094. description: 更新者
  1095. type: integer
  1096. updatedAt:
  1097. type: string
  1098. userAgent:
  1099. type: string
  1100. type: object
  1101. model.SysPost:
  1102. properties:
  1103. createBy:
  1104. description: 创建者
  1105. type: integer
  1106. createdAt:
  1107. description: 创建时间
  1108. type: string
  1109. id:
  1110. description: 主键编码
  1111. type: integer
  1112. postName:
  1113. description: 岗位名称
  1114. type: string
  1115. remark:
  1116. description: 描述
  1117. type: string
  1118. sort:
  1119. description: 岗位排序
  1120. type: integer
  1121. status:
  1122. description: 1-停用 2-正常
  1123. type: integer
  1124. updateBy:
  1125. description: 更新者
  1126. type: integer
  1127. updatedAt:
  1128. description: 最后更新时间
  1129. type: string
  1130. type: object
  1131. model.SysRegisterAuth:
  1132. properties:
  1133. SMSVerify:
  1134. description: 状态 1-关闭 2-开启
  1135. type: integer
  1136. URKey:
  1137. description: 岗位名称
  1138. type: string
  1139. createBy:
  1140. description: 创建者
  1141. type: integer
  1142. createdAt:
  1143. description: 创建时间
  1144. type: string
  1145. deptId:
  1146. description: 部门id
  1147. type: integer
  1148. id:
  1149. description: 主键编码
  1150. type: integer
  1151. remark:
  1152. description: 邀请码
  1153. type: string
  1154. roleId:
  1155. description: 角色id
  1156. type: integer
  1157. status:
  1158. description: 状态 1-停用 2-正常
  1159. type: integer
  1160. updateBy:
  1161. description: 更新者
  1162. type: integer
  1163. updatedAt:
  1164. description: 最后更新时间
  1165. type: string
  1166. type: object
  1167. model.SysRole:
  1168. properties:
  1169. createBy:
  1170. description: 创建者
  1171. type: integer
  1172. createdAt:
  1173. description: 创建时间
  1174. type: string
  1175. dataScope:
  1176. type: integer
  1177. id:
  1178. description: 主键编码
  1179. type: integer
  1180. name:
  1181. description: 角色名称
  1182. type: string
  1183. remark:
  1184. description: 备注
  1185. type: string
  1186. roleKey:
  1187. description: 角色代码
  1188. type: string
  1189. sort:
  1190. description: 角色排序
  1191. type: integer
  1192. status:
  1193. description: 1-停用 2-正常
  1194. type: string
  1195. updateBy:
  1196. description: 更新者
  1197. type: integer
  1198. updatedAt:
  1199. description: 最后更新时间
  1200. type: string
  1201. type: object
  1202. model.SysService:
  1203. properties:
  1204. authCode:
  1205. description: 授权码
  1206. type: string
  1207. createBy:
  1208. description: 创建者
  1209. type: integer
  1210. createdAt:
  1211. description: 创建时间
  1212. type: string
  1213. host:
  1214. description: 服务地址
  1215. type: string
  1216. id:
  1217. description: 主键编码
  1218. type: integer
  1219. name:
  1220. description: 服务名称
  1221. type: string
  1222. "no":
  1223. description: 服务编号
  1224. type: string
  1225. roleApiUrl:
  1226. description: 角色权限回调地址
  1227. type: string
  1228. status:
  1229. description: 状态 1-停用 2-正常
  1230. type: integer
  1231. updateBy:
  1232. description: 更新者
  1233. type: integer
  1234. updatedAt:
  1235. description: 最后更新时间
  1236. type: string
  1237. type: object
  1238. model.SysUser:
  1239. properties:
  1240. createBy:
  1241. description: 创建者
  1242. type: integer
  1243. createdAt:
  1244. description: 创建时间
  1245. type: string
  1246. dept:
  1247. $ref: '#/definitions/model.SysDept'
  1248. description: 部门
  1249. deptId:
  1250. description: 部门id
  1251. type: integer
  1252. id:
  1253. description: 主键编码
  1254. type: integer
  1255. nickName:
  1256. description: 昵称
  1257. type: string
  1258. phone:
  1259. description: 手机号
  1260. type: string
  1261. postId:
  1262. description: 岗位id
  1263. type: integer
  1264. remark:
  1265. description: 备注
  1266. type: string
  1267. role:
  1268. $ref: '#/definitions/model.SysRole'
  1269. description: 角色
  1270. roleId:
  1271. description: 角色id
  1272. type: integer
  1273. status:
  1274. description: 1-停用 2-正常
  1275. type: string
  1276. updateBy:
  1277. description: 更新者
  1278. type: integer
  1279. updatedAt:
  1280. description: 最后更新时间
  1281. type: string
  1282. username:
  1283. description: 用户名
  1284. type: string
  1285. uuid:
  1286. type: string
  1287. type: object
  1288. model.UserInfo:
  1289. properties:
  1290. dataScope:
  1291. description: 数据访问范围 1-全部数据权限 3-本机构数据权限 4-本机构及以下数据权限 5-仅本人数据权限
  1292. type: integer
  1293. deptId:
  1294. description: 部门id
  1295. type: integer
  1296. roleId:
  1297. description: 角色id
  1298. type: integer
  1299. roleKey:
  1300. description: 角色编码
  1301. type: string
  1302. roleName:
  1303. description: 角色名称
  1304. type: string
  1305. userId:
  1306. description: 用户id
  1307. type: integer
  1308. userName:
  1309. description: 用户名称
  1310. type: string
  1311. uuid:
  1312. description: 用户uuid
  1313. type: string
  1314. type: object
  1315. response.Page:
  1316. properties:
  1317. count:
  1318. description: 总数
  1319. type: integer
  1320. pageIndex:
  1321. description: 页码
  1322. type: integer
  1323. pageSize:
  1324. description: 页条数
  1325. type: integer
  1326. type: object
  1327. response.Response:
  1328. properties:
  1329. code:
  1330. type: integer
  1331. msg:
  1332. type: string
  1333. requestId:
  1334. type: string
  1335. status:
  1336. type: string
  1337. type: object
  1338. host: 127.0.0.1:8000
  1339. info:
  1340. contact: {}
  1341. description: 疫苗进销存管理系统-用户中心
  1342. title: 疫苗进销存管理系统-用户中心
  1343. version: "1.0"
  1344. paths:
  1345. /api/app-config:
  1346. get:
  1347. description: 获取系统配置信息,主要注意这里不在验证权限
  1348. responses:
  1349. "200":
  1350. description: '{"code": 200, "data": [...]}'
  1351. schema:
  1352. allOf:
  1353. - $ref: '#/definitions/response.Response'
  1354. - properties:
  1355. data:
  1356. additionalProperties:
  1357. type: string
  1358. type: object
  1359. type: object
  1360. summary: 获取系统前台配置信息,主要注意这里不在验证权限
  1361. tags:
  1362. - 配置管理
  1363. /api/captcha:
  1364. get:
  1365. description: 获取验证码
  1366. responses:
  1367. "200":
  1368. description: '{"code": 200, "data": [...]}'
  1369. schema:
  1370. allOf:
  1371. - $ref: '#/definitions/response.Response'
  1372. - properties:
  1373. data:
  1374. type: string
  1375. id:
  1376. type: string
  1377. msg:
  1378. type: string
  1379. type: object
  1380. summary: 获取验证码
  1381. tags:
  1382. - 登录
  1383. /api/configKey/{{configKey}}:
  1384. get:
  1385. description: 根据Key获取SysConfig的Service
  1386. parameters:
  1387. - description: configKey
  1388. in: path
  1389. name: configKey
  1390. type: string
  1391. responses:
  1392. "200":
  1393. description: '{"code": 200, "data": [...]}'
  1394. schema:
  1395. allOf:
  1396. - $ref: '#/definitions/response.Response'
  1397. - properties:
  1398. data:
  1399. $ref: '#/definitions/dto.SysConfigByKeyReq'
  1400. type: object
  1401. security:
  1402. - Bearer: []
  1403. summary: 根据Key获取SysConfig的Service
  1404. tags:
  1405. - 配置管理
  1406. /api/dept:
  1407. delete:
  1408. consumes:
  1409. - application/json
  1410. description: 删除部门
  1411. parameters:
  1412. - description: body
  1413. in: body
  1414. name: data
  1415. required: true
  1416. schema:
  1417. $ref: '#/definitions/dto.SysDeptDeleteReq'
  1418. responses:
  1419. "200":
  1420. description: '{"code": -1, "message": "删除失败"}'
  1421. schema:
  1422. type: string
  1423. security:
  1424. - Bearer: []
  1425. summary: 删除部门
  1426. tags:
  1427. - 部门
  1428. get:
  1429. description: 获取部门列表
  1430. parameters:
  1431. - description: 部门名称
  1432. in: query
  1433. name: deptName
  1434. type: string
  1435. responses:
  1436. "200":
  1437. description: '{"code": 200, "data": [...]}'
  1438. schema:
  1439. allOf:
  1440. - $ref: '#/definitions/response.Response'
  1441. - properties:
  1442. data:
  1443. allOf:
  1444. - $ref: '#/definitions/response.Page'
  1445. - properties:
  1446. list:
  1447. items:
  1448. $ref: '#/definitions/model.SysDept'
  1449. type: array
  1450. type: object
  1451. type: object
  1452. security:
  1453. - Bearer: []
  1454. summary: 获取部门列表
  1455. tags:
  1456. - 部门
  1457. post:
  1458. consumes:
  1459. - application/json
  1460. description: 添加部门
  1461. parameters:
  1462. - description: data
  1463. in: body
  1464. name: data
  1465. required: true
  1466. schema:
  1467. $ref: '#/definitions/dto.SysDeptInsertReq'
  1468. responses:
  1469. "200":
  1470. description: '{"code": -1, "message": "添加失败"}'
  1471. schema:
  1472. type: string
  1473. security:
  1474. - Bearer: []
  1475. summary: 添加部门
  1476. tags:
  1477. - 部门
  1478. /api/dept/{id}:
  1479. get:
  1480. description: 通过id获取部门
  1481. parameters:
  1482. - description: 部门id
  1483. in: path
  1484. name: id
  1485. required: true
  1486. type: string
  1487. responses:
  1488. "200":
  1489. description: '{"code": 200, "data": [...]}'
  1490. schema:
  1491. allOf:
  1492. - $ref: '#/definitions/response.Response'
  1493. - properties:
  1494. data:
  1495. $ref: '#/definitions/model.SysDept'
  1496. type: object
  1497. security:
  1498. - Bearer: []
  1499. summary: 通过id获取部门
  1500. tags:
  1501. - 部门
  1502. put:
  1503. consumes:
  1504. - application/json
  1505. description: 修改部门
  1506. parameters:
  1507. - description: 部门id
  1508. in: path
  1509. name: id
  1510. required: true
  1511. type: string
  1512. - description: body
  1513. in: body
  1514. name: data
  1515. required: true
  1516. schema:
  1517. $ref: '#/definitions/dto.SysDeptUpdateReq'
  1518. responses:
  1519. "200":
  1520. description: '{"code": -1, "message": "添加失败"}'
  1521. schema:
  1522. type: string
  1523. security:
  1524. - Bearer: []
  1525. summary: 修改部门
  1526. tags:
  1527. - 部门
  1528. /api/dept/enter:
  1529. post:
  1530. consumes:
  1531. - application/json
  1532. description: 删除部门
  1533. parameters:
  1534. - description: body
  1535. in: body
  1536. name: data
  1537. required: true
  1538. schema:
  1539. $ref: '#/definitions/dto.SysDeptEnterReq'
  1540. responses:
  1541. "200":
  1542. description: '{"code": -1, "message": "删除失败"}'
  1543. schema:
  1544. type: string
  1545. security:
  1546. - Bearer: []
  1547. summary: 删除部门
  1548. tags:
  1549. - 部门
  1550. /api/dict-data/option-select:
  1551. get:
  1552. description: 通过key获取数据字典【业务页面使用】
  1553. parameters:
  1554. - description: dictType
  1555. in: query
  1556. name: dictType
  1557. required: true
  1558. type: string
  1559. responses:
  1560. "200":
  1561. description: '{"code": 200, "data": [...]}'
  1562. schema:
  1563. allOf:
  1564. - $ref: '#/definitions/response.Response'
  1565. - properties:
  1566. data:
  1567. items:
  1568. $ref: '#/definitions/dto.SysDictDataGetAllResp'
  1569. type: array
  1570. type: object
  1571. security:
  1572. - Bearer: []
  1573. summary: 通过key获取数据字典【业务页面使用】
  1574. tags:
  1575. - 字典数据
  1576. /api/dict/data:
  1577. delete:
  1578. description: 删除字典数据
  1579. parameters:
  1580. - description: body
  1581. in: body
  1582. name: dictCode
  1583. required: true
  1584. schema:
  1585. $ref: '#/definitions/dto.SysDictDataDeleteReq'
  1586. responses:
  1587. "200":
  1588. description: '{"code": 200, "message": "删除成功"}'
  1589. schema:
  1590. $ref: '#/definitions/response.Response'
  1591. security:
  1592. - Bearer: []
  1593. summary: 删除字典数据
  1594. tags:
  1595. - 字典数据
  1596. get:
  1597. description: 获取字典数据列表
  1598. parameters:
  1599. - description: status
  1600. in: query
  1601. name: status
  1602. type: string
  1603. - description: dictCode
  1604. in: query
  1605. name: dictCode
  1606. type: string
  1607. - description: dictType
  1608. in: query
  1609. name: dictType
  1610. type: string
  1611. - description: 页条数
  1612. in: query
  1613. name: pageSize
  1614. type: integer
  1615. - description: 页码
  1616. in: query
  1617. name: pageIndex
  1618. type: integer
  1619. responses:
  1620. "200":
  1621. description: '{"code": 200, "data": [...]}'
  1622. schema:
  1623. allOf:
  1624. - $ref: '#/definitions/response.Response'
  1625. - properties:
  1626. data:
  1627. allOf:
  1628. - $ref: '#/definitions/response.Page'
  1629. - properties:
  1630. list:
  1631. items:
  1632. $ref: '#/definitions/model.SysDictData'
  1633. type: array
  1634. type: object
  1635. type: object
  1636. security:
  1637. - Bearer: []
  1638. summary: 获取字典数据列表
  1639. tags:
  1640. - 字典数据
  1641. post:
  1642. consumes:
  1643. - application/json
  1644. description: 添加字典数据
  1645. parameters:
  1646. - description: data
  1647. in: body
  1648. name: data
  1649. required: true
  1650. schema:
  1651. $ref: '#/definitions/dto.SysDictDataInsertReq'
  1652. responses:
  1653. "200":
  1654. description: '{"code": 200, "message": "添加成功"}'
  1655. schema:
  1656. $ref: '#/definitions/response.Response'
  1657. security:
  1658. - Bearer: []
  1659. summary: 添加字典数据
  1660. tags:
  1661. - 字典数据
  1662. /api/dict/data/{dictCode}:
  1663. get:
  1664. description: 通过id获取字典数据
  1665. parameters:
  1666. - description: 字典编码
  1667. in: path
  1668. name: dictCode
  1669. required: true
  1670. type: integer
  1671. responses:
  1672. "200":
  1673. description: '{"code": 200, "data": [...]}'
  1674. schema:
  1675. allOf:
  1676. - $ref: '#/definitions/response.Response'
  1677. - properties:
  1678. data:
  1679. $ref: '#/definitions/model.SysDictData'
  1680. type: object
  1681. security:
  1682. - Bearer: []
  1683. summary: 通过id获取字典数据
  1684. tags:
  1685. - 字典数据
  1686. put:
  1687. consumes:
  1688. - application/json
  1689. description: 修改字典数据
  1690. parameters:
  1691. - description: 字典编码
  1692. in: path
  1693. name: dictCode
  1694. required: true
  1695. type: integer
  1696. - description: body
  1697. in: body
  1698. name: data
  1699. required: true
  1700. schema:
  1701. $ref: '#/definitions/dto.SysDictDataUpdateReq'
  1702. responses:
  1703. "200":
  1704. description: '{"code": 200, "message": "修改成功"}'
  1705. schema:
  1706. $ref: '#/definitions/response.Response'
  1707. security:
  1708. - Bearer: []
  1709. summary: 修改字典数据
  1710. tags:
  1711. - 字典数据
  1712. /api/dict/type:
  1713. delete:
  1714. description: 删除字典类型
  1715. parameters:
  1716. - description: body
  1717. in: body
  1718. name: dictCode
  1719. required: true
  1720. schema:
  1721. $ref: '#/definitions/dto.SysDictTypeDeleteReq'
  1722. responses:
  1723. "200":
  1724. description: '{"code": 200, "data": [...]}'
  1725. schema:
  1726. $ref: '#/definitions/response.Response'
  1727. security:
  1728. - Bearer: []
  1729. summary: 删除字典类型
  1730. tags:
  1731. - 字典类型
  1732. get:
  1733. description: 字典类型列表数据
  1734. parameters:
  1735. - description: dictName
  1736. in: query
  1737. name: dictName
  1738. type: string
  1739. - description: dictId
  1740. in: query
  1741. name: dictId
  1742. type: string
  1743. - description: dictType
  1744. in: query
  1745. name: dictType
  1746. type: string
  1747. - description: 页条数
  1748. in: query
  1749. name: pageSize
  1750. type: integer
  1751. - description: 页码
  1752. in: query
  1753. name: pageIndex
  1754. type: integer
  1755. responses:
  1756. "200":
  1757. description: '{"code": 200, "data": [...]}'
  1758. schema:
  1759. allOf:
  1760. - $ref: '#/definitions/response.Response'
  1761. - properties:
  1762. data:
  1763. allOf:
  1764. - $ref: '#/definitions/response.Page'
  1765. - properties:
  1766. list:
  1767. items:
  1768. $ref: '#/definitions/model.SysDictType'
  1769. type: array
  1770. type: object
  1771. type: object
  1772. security:
  1773. - Bearer: []
  1774. summary: 字典类型列表数据
  1775. tags:
  1776. - 字典类型
  1777. post:
  1778. consumes:
  1779. - application/json
  1780. description: 添加字典类型
  1781. parameters:
  1782. - description: data
  1783. in: body
  1784. name: data
  1785. required: true
  1786. schema:
  1787. $ref: '#/definitions/dto.SysDictTypeInsertReq'
  1788. responses:
  1789. "200":
  1790. description: '{"code": 200, "data": [...]}'
  1791. schema:
  1792. $ref: '#/definitions/response.Response'
  1793. security:
  1794. - Bearer: []
  1795. summary: 添加字典类型
  1796. tags:
  1797. - 字典类型
  1798. /api/dict/type-option-select:
  1799. get:
  1800. description: 字典类型查询【代码生成】
  1801. parameters:
  1802. - description: dictName
  1803. in: query
  1804. name: dictName
  1805. type: string
  1806. - description: dictId
  1807. in: query
  1808. name: dictId
  1809. type: string
  1810. - description: dictType
  1811. in: query
  1812. name: dictType
  1813. type: string
  1814. responses:
  1815. "200":
  1816. description: '{"code": 200, "data": [...]}'
  1817. schema:
  1818. allOf:
  1819. - $ref: '#/definitions/response.Response'
  1820. - properties:
  1821. data:
  1822. items:
  1823. $ref: '#/definitions/model.SysDictType'
  1824. type: array
  1825. type: object
  1826. security:
  1827. - Bearer: []
  1828. summary: 字典类型查询【代码生成】
  1829. tags:
  1830. - 字典类型
  1831. /api/dict/type/{id}:
  1832. get:
  1833. description: 通过id获取字典类型
  1834. parameters:
  1835. - description: 字典类型id
  1836. in: path
  1837. name: id
  1838. required: true
  1839. type: integer
  1840. responses:
  1841. "200":
  1842. description: '{"code": 200, "data": [...]}'
  1843. schema:
  1844. allOf:
  1845. - $ref: '#/definitions/response.Response'
  1846. - properties:
  1847. data:
  1848. $ref: '#/definitions/model.SysDictType'
  1849. type: object
  1850. security:
  1851. - Bearer: []
  1852. summary: 通过id获取字典类型
  1853. tags:
  1854. - 字典类型
  1855. put:
  1856. consumes:
  1857. - application/json
  1858. description: 修改字典类型
  1859. parameters:
  1860. - description: 字典类型id
  1861. in: path
  1862. name: id
  1863. required: true
  1864. type: integer
  1865. - description: body
  1866. in: body
  1867. name: data
  1868. required: true
  1869. schema:
  1870. $ref: '#/definitions/dto.SysDictTypeUpdateReq'
  1871. responses:
  1872. "200":
  1873. description: '{"code": 200, "data": [...]}'
  1874. schema:
  1875. $ref: '#/definitions/response.Response'
  1876. security:
  1877. - Bearer: []
  1878. summary: 修改字典类型
  1879. tags:
  1880. - 字典类型
  1881. /api/login:
  1882. post:
  1883. consumes:
  1884. - application/json
  1885. description: 登录认证
  1886. parameters:
  1887. - description: body
  1888. in: body
  1889. name: data
  1890. required: true
  1891. schema:
  1892. $ref: '#/definitions/handler.Login'
  1893. responses:
  1894. "200":
  1895. description: '{"code": 200, "data": [...]}'
  1896. schema:
  1897. $ref: '#/definitions/response.Response'
  1898. summary: 登录认证
  1899. tags:
  1900. - 登录
  1901. /api/menu:
  1902. delete:
  1903. consumes:
  1904. - application/json
  1905. description: 删除菜单
  1906. parameters:
  1907. - description: body
  1908. in: body
  1909. name: data
  1910. required: true
  1911. schema:
  1912. $ref: '#/definitions/dto.SysMenuDeleteReq'
  1913. responses:
  1914. "200":
  1915. description: '{"code": 200, "data": [...]}'
  1916. schema:
  1917. $ref: '#/definitions/response.Response'
  1918. security:
  1919. - Bearer: []
  1920. summary: 删除菜单
  1921. tags:
  1922. - 菜单
  1923. get:
  1924. description: 获取菜单列表
  1925. parameters:
  1926. - description: 菜单名称
  1927. in: query
  1928. name: menuName
  1929. type: string
  1930. - description: 显示名称
  1931. in: query
  1932. name: title
  1933. type: string
  1934. - description: 显示状态
  1935. in: query
  1936. name: visible
  1937. type: string
  1938. - description: 页条数
  1939. in: query
  1940. name: pageSize
  1941. type: integer
  1942. - description: 页码
  1943. in: query
  1944. name: pageIndex
  1945. type: integer
  1946. responses:
  1947. "200":
  1948. description: '{"code": 200, "data": [...]}'
  1949. schema:
  1950. allOf:
  1951. - $ref: '#/definitions/response.Response'
  1952. - properties:
  1953. data:
  1954. allOf:
  1955. - $ref: '#/definitions/response.Page'
  1956. - properties:
  1957. list:
  1958. items:
  1959. $ref: '#/definitions/model.SysMenu'
  1960. type: array
  1961. type: object
  1962. type: object
  1963. security:
  1964. - Bearer: []
  1965. summary: 获取菜单列表
  1966. tags:
  1967. - 菜单
  1968. post:
  1969. consumes:
  1970. - application/json
  1971. description: 创建菜单
  1972. parameters:
  1973. - description: data
  1974. in: body
  1975. name: data
  1976. required: true
  1977. schema:
  1978. $ref: '#/definitions/dto.SysMenuInsertReq'
  1979. responses:
  1980. "200":
  1981. description: '{"code": 200, "data": [...]}'
  1982. schema:
  1983. $ref: '#/definitions/response.Response'
  1984. security:
  1985. - Bearer: []
  1986. summary: 创建菜单
  1987. tags:
  1988. - 菜单
  1989. /api/menu-role:
  1990. get:
  1991. description: 根据登录角色名称获取菜单列表数据【左菜单使用】
  1992. responses:
  1993. "200":
  1994. description: '{"code": 200, "data": [...]}'
  1995. schema:
  1996. allOf:
  1997. - $ref: '#/definitions/response.Response'
  1998. - properties:
  1999. data:
  2000. items:
  2001. $ref: '#/definitions/model.SysMenu'
  2002. type: array
  2003. type: object
  2004. security:
  2005. - Bearer: []
  2006. summary: 根据登录角色名称获取菜单列表数据【左菜单使用】
  2007. tags:
  2008. - 菜单
  2009. /api/menu/{id}:
  2010. get:
  2011. description: 通过id获取菜单
  2012. parameters:
  2013. - description: 菜单id
  2014. in: path
  2015. name: id
  2016. required: true
  2017. type: string
  2018. responses:
  2019. "200":
  2020. description: '{"code": 200, "data": [...]}'
  2021. schema:
  2022. allOf:
  2023. - $ref: '#/definitions/response.Response'
  2024. - properties:
  2025. data:
  2026. $ref: '#/definitions/model.SysMenu'
  2027. type: object
  2028. security:
  2029. - Bearer: []
  2030. summary: 通过id获取菜单
  2031. tags:
  2032. - 菜单
  2033. put:
  2034. consumes:
  2035. - application/json
  2036. description: 修改菜单
  2037. parameters:
  2038. - description: 菜单id
  2039. in: path
  2040. name: id
  2041. required: true
  2042. type: string
  2043. - description: body
  2044. in: body
  2045. name: data
  2046. required: true
  2047. schema:
  2048. $ref: '#/definitions/dto.SysMenuUpdateReq'
  2049. responses:
  2050. "200":
  2051. description: '{"code": 200, "data": [...]}'
  2052. schema:
  2053. $ref: '#/definitions/response.Response'
  2054. security:
  2055. - Bearer: []
  2056. summary: 修改菜单
  2057. tags:
  2058. - 菜单
  2059. /api/post:
  2060. delete:
  2061. consumes:
  2062. - application/json
  2063. description: 删除岗位
  2064. parameters:
  2065. - description: 请求参数
  2066. in: body
  2067. name: id
  2068. required: true
  2069. schema:
  2070. $ref: '#/definitions/dto.SysPostDeleteReq'
  2071. responses:
  2072. "200":
  2073. description: '{"code": 200, "data": [...]}'
  2074. schema:
  2075. $ref: '#/definitions/response.Response'
  2076. security:
  2077. - Bearer: []
  2078. summary: 删除岗位
  2079. tags:
  2080. - 岗位
  2081. get:
  2082. description: 获取岗位列表
  2083. parameters:
  2084. - description: 岗位名称
  2085. in: query
  2086. name: postName
  2087. type: string
  2088. - description: 状态 1-停用 2-正常
  2089. in: query
  2090. name: status
  2091. type: integer
  2092. - description: 排序 ASC-升序 DESC-降序
  2093. in: query
  2094. name: sort
  2095. type: integer
  2096. - description: 页条数
  2097. in: query
  2098. name: pageSize
  2099. type: integer
  2100. - description: 页码
  2101. in: query
  2102. name: pageIndex
  2103. type: integer
  2104. responses:
  2105. "200":
  2106. description: '{"code": 200, "data": [...]}'
  2107. schema:
  2108. allOf:
  2109. - $ref: '#/definitions/response.Response'
  2110. - properties:
  2111. data:
  2112. allOf:
  2113. - $ref: '#/definitions/response.Page'
  2114. - properties:
  2115. list:
  2116. items:
  2117. $ref: '#/definitions/model.SysPost'
  2118. type: array
  2119. type: object
  2120. type: object
  2121. security:
  2122. - Bearer: []
  2123. summary: 获取岗位列表
  2124. tags:
  2125. - 岗位
  2126. post:
  2127. consumes:
  2128. - application/json
  2129. description: 添加岗位
  2130. parameters:
  2131. - description: data
  2132. in: body
  2133. name: data
  2134. required: true
  2135. schema:
  2136. $ref: '#/definitions/dto.SysPostInsertReq'
  2137. responses:
  2138. "200":
  2139. description: '{"code": 200, "data": [...]}'
  2140. schema:
  2141. $ref: '#/definitions/response.Response'
  2142. security:
  2143. - Bearer: []
  2144. summary: 添加岗位
  2145. tags:
  2146. - 岗位
  2147. /api/post/{id}:
  2148. get:
  2149. description: 通过id获取岗位
  2150. parameters:
  2151. - description: 岗位id
  2152. in: path
  2153. name: id
  2154. required: true
  2155. type: integer
  2156. responses:
  2157. "200":
  2158. description: '{"code": 200, "data": [...]}'
  2159. schema:
  2160. allOf:
  2161. - $ref: '#/definitions/response.Response'
  2162. - properties:
  2163. data:
  2164. $ref: '#/definitions/model.SysPost'
  2165. type: object
  2166. security:
  2167. - Bearer: []
  2168. summary: 通过id获取岗位
  2169. tags:
  2170. - 岗位
  2171. put:
  2172. consumes:
  2173. - application/json
  2174. description: 修改岗位
  2175. parameters:
  2176. - description: 岗位id
  2177. in: path
  2178. name: id
  2179. required: true
  2180. type: integer
  2181. - description: body
  2182. in: body
  2183. name: data
  2184. required: true
  2185. schema:
  2186. $ref: '#/definitions/dto.SysPostUpdateReq'
  2187. responses:
  2188. "200":
  2189. description: '{"code": 200, "data": [...]}'
  2190. schema:
  2191. $ref: '#/definitions/response.Response'
  2192. security:
  2193. - Bearer: []
  2194. summary: 修改岗位
  2195. tags:
  2196. - 岗位
  2197. /api/register-auth:
  2198. delete:
  2199. consumes:
  2200. - application/json
  2201. description: 删除公开用户注册授权
  2202. parameters:
  2203. - description: 请求参数
  2204. in: body
  2205. name: id
  2206. required: true
  2207. schema:
  2208. $ref: '#/definitions/dto.SysRegisterAuthDeleteReq'
  2209. responses:
  2210. "200":
  2211. description: '{"code": 200, "data": [...]}'
  2212. schema:
  2213. $ref: '#/definitions/response.Response'
  2214. security:
  2215. - Bearer: []
  2216. summary: 删除公开用户注册授权
  2217. tags:
  2218. - 公开用户注册授权
  2219. get:
  2220. description: 获取公开用户注册授权列表
  2221. parameters:
  2222. - description: 公开用户注册授权名称
  2223. in: query
  2224. name: postName
  2225. type: string
  2226. - description: 状态 1-停用 2-正常
  2227. in: query
  2228. name: status
  2229. type: integer
  2230. - description: 排序 ASC-升序 DESC-降序
  2231. in: query
  2232. name: sort
  2233. type: integer
  2234. - description: 页条数
  2235. in: query
  2236. name: pageSize
  2237. type: integer
  2238. - description: 页码
  2239. in: query
  2240. name: pageIndex
  2241. type: integer
  2242. responses:
  2243. "200":
  2244. description: '{"code": 200, "data": [...]}'
  2245. schema:
  2246. allOf:
  2247. - $ref: '#/definitions/response.Response'
  2248. - properties:
  2249. data:
  2250. allOf:
  2251. - $ref: '#/definitions/response.Page'
  2252. - properties:
  2253. list:
  2254. items:
  2255. $ref: '#/definitions/model.SysRegisterAuth'
  2256. type: array
  2257. type: object
  2258. type: object
  2259. security:
  2260. - Bearer: []
  2261. summary: 获取公开用户注册授权列表
  2262. tags:
  2263. - 公开用户注册授权
  2264. post:
  2265. consumes:
  2266. - application/json
  2267. description: 添加公开用户注册授权
  2268. parameters:
  2269. - description: data
  2270. in: body
  2271. name: data
  2272. required: true
  2273. schema:
  2274. $ref: '#/definitions/dto.SysRegisterAuthInsertReq'
  2275. responses:
  2276. "200":
  2277. description: '{"code": 200, "data": [...]}'
  2278. schema:
  2279. $ref: '#/definitions/response.Response'
  2280. security:
  2281. - Bearer: []
  2282. summary: 添加公开用户注册授权
  2283. tags:
  2284. - 公开用户注册授权
  2285. /api/register-auth/{id}:
  2286. get:
  2287. description: 通过id获取公开用户注册授权
  2288. parameters:
  2289. - description: 公开用户注册授权id
  2290. in: path
  2291. name: id
  2292. required: true
  2293. type: integer
  2294. responses:
  2295. "200":
  2296. description: '{"code": 200, "data": [...]}'
  2297. schema:
  2298. allOf:
  2299. - $ref: '#/definitions/response.Response'
  2300. - properties:
  2301. data:
  2302. $ref: '#/definitions/model.SysRegisterAuth'
  2303. type: object
  2304. security:
  2305. - Bearer: []
  2306. summary: 通过id获取公开用户注册授权
  2307. tags:
  2308. - 公开用户注册授权
  2309. put:
  2310. consumes:
  2311. - application/json
  2312. description: 修改公开用户注册授权
  2313. parameters:
  2314. - description: 公开用户注册授权id
  2315. in: path
  2316. name: id
  2317. required: true
  2318. type: integer
  2319. - description: body
  2320. in: body
  2321. name: data
  2322. required: true
  2323. schema:
  2324. $ref: '#/definitions/dto.SysRegisterAuthUpdateReq'
  2325. responses:
  2326. "200":
  2327. description: '{"code": 200, "data": [...]}'
  2328. schema:
  2329. $ref: '#/definitions/response.Response'
  2330. security:
  2331. - Bearer: []
  2332. summary: 修改公开用户注册授权
  2333. tags:
  2334. - 公开用户注册授权
  2335. /api/role:
  2336. delete:
  2337. consumes:
  2338. - application/json
  2339. description: 删除用户角色
  2340. parameters:
  2341. - description: body
  2342. in: body
  2343. name: data
  2344. required: true
  2345. schema:
  2346. $ref: '#/definitions/dto.SysRoleDeleteReq'
  2347. responses:
  2348. "200":
  2349. description: '{"code": 200, "data": [...]}'
  2350. schema:
  2351. $ref: '#/definitions/response.Response'
  2352. security:
  2353. - Bearer: []
  2354. summary: 删除用户角色
  2355. tags:
  2356. - 角色
  2357. get:
  2358. description: 获取角色列表
  2359. parameters:
  2360. - description: 角色名称
  2361. in: query
  2362. name: roleName
  2363. type: string
  2364. - description: 页条数
  2365. in: query
  2366. name: pageSize
  2367. type: integer
  2368. - description: 页码
  2369. in: query
  2370. name: pageIndex
  2371. type: integer
  2372. responses:
  2373. "200":
  2374. description: '{"code": 200, "data": [...]}'
  2375. schema:
  2376. allOf:
  2377. - $ref: '#/definitions/response.Response'
  2378. - properties:
  2379. data:
  2380. allOf:
  2381. - $ref: '#/definitions/response.Page'
  2382. - properties:
  2383. list:
  2384. items:
  2385. $ref: '#/definitions/model.SysRole'
  2386. type: array
  2387. type: object
  2388. type: object
  2389. security:
  2390. - Bearer: []
  2391. summary: 角色列表数据
  2392. tags:
  2393. - 角色
  2394. post:
  2395. consumes:
  2396. - application/json
  2397. description: 创建角色
  2398. parameters:
  2399. - description: data
  2400. in: body
  2401. name: data
  2402. required: true
  2403. schema:
  2404. $ref: '#/definitions/dto.SysRoleInsertReq'
  2405. responses:
  2406. "200":
  2407. description: '{"code": 200, "data": [...]}'
  2408. schema:
  2409. $ref: '#/definitions/response.Response'
  2410. security:
  2411. - Bearer: []
  2412. summary: 创建角色
  2413. tags:
  2414. - 角色
  2415. /api/role-api/{id}:
  2416. get:
  2417. consumes:
  2418. - application/json
  2419. description: 获取角色路由权限
  2420. parameters:
  2421. - description: 角色Id
  2422. in: path
  2423. name: id
  2424. required: true
  2425. type: string
  2426. - description: 服务id
  2427. in: query
  2428. name: service_id
  2429. required: true
  2430. type: integer
  2431. responses:
  2432. "200":
  2433. description: '{"code": 200, "data": [...]}'
  2434. schema:
  2435. allOf:
  2436. - $ref: '#/definitions/response.Response'
  2437. - properties:
  2438. data:
  2439. $ref: '#/definitions/dto.SysRoleGetRoleApiListResp'
  2440. type: object
  2441. security:
  2442. - Bearer: []
  2443. summary: 获取角色路由权限
  2444. tags:
  2445. - 角色
  2446. put:
  2447. consumes:
  2448. - application/json
  2449. description: 修改角色路由权限
  2450. parameters:
  2451. - description: 角色Id
  2452. in: path
  2453. name: id
  2454. required: true
  2455. type: string
  2456. - description: body
  2457. in: body
  2458. name: data
  2459. required: true
  2460. schema:
  2461. $ref: '#/definitions/dto.SysRoleUpdateRoleApiReq'
  2462. responses:
  2463. "200":
  2464. description: '{"code": 200, "data": [...]}'
  2465. schema:
  2466. $ref: '#/definitions/response.Response'
  2467. security:
  2468. - Bearer: []
  2469. summary: 修改角色路由权限
  2470. tags:
  2471. - 角色
  2472. /api/role-menu/{id}:
  2473. get:
  2474. consumes:
  2475. - application/json
  2476. description: 修改角色菜单权限
  2477. parameters:
  2478. - description: 角色Id
  2479. in: path
  2480. name: id
  2481. required: true
  2482. type: string
  2483. responses:
  2484. "200":
  2485. description: '{"code": 200, "data": [...]}'
  2486. schema:
  2487. allOf:
  2488. - $ref: '#/definitions/response.Response'
  2489. - properties:
  2490. data:
  2491. $ref: '#/definitions/dto.SysRoleGetRoleMenuListResp'
  2492. type: object
  2493. security:
  2494. - Bearer: []
  2495. summary: 修改角色菜单权限
  2496. tags:
  2497. - 角色
  2498. put:
  2499. consumes:
  2500. - application/json
  2501. description: 修改角色菜单权限
  2502. parameters:
  2503. - description: 角色Id
  2504. in: path
  2505. name: id
  2506. required: true
  2507. type: string
  2508. - description: body
  2509. in: body
  2510. name: data
  2511. required: true
  2512. schema:
  2513. $ref: '#/definitions/dto.SysRoleUpdateRoleMenuReq'
  2514. responses:
  2515. "200":
  2516. description: '{"code": 200, "data": [...]}'
  2517. schema:
  2518. $ref: '#/definitions/response.Response'
  2519. security:
  2520. - Bearer: []
  2521. summary: 修改角色菜单权限
  2522. tags:
  2523. - 角色
  2524. /api/role/{id}:
  2525. get:
  2526. description: 通过id获取角色
  2527. parameters:
  2528. - description: 角色Id
  2529. in: path
  2530. name: id
  2531. required: true
  2532. type: string
  2533. responses:
  2534. "200":
  2535. description: '{"code": 200, "data": [...]}'
  2536. schema:
  2537. allOf:
  2538. - $ref: '#/definitions/response.Response'
  2539. - properties:
  2540. data:
  2541. $ref: '#/definitions/model.SysRole'
  2542. type: object
  2543. security:
  2544. - Bearer: []
  2545. summary: 通过id获取角色
  2546. tags:
  2547. - 角色
  2548. put:
  2549. consumes:
  2550. - application/json
  2551. description: 修改用户角色
  2552. parameters:
  2553. - description: 角色Id
  2554. in: path
  2555. name: id
  2556. required: true
  2557. type: string
  2558. - description: body
  2559. in: body
  2560. name: data
  2561. required: true
  2562. schema:
  2563. $ref: '#/definitions/dto.SysRoleUpdateReq'
  2564. responses:
  2565. "200":
  2566. description: '{"code": 200, "data": [...]}'
  2567. schema:
  2568. $ref: '#/definitions/response.Response'
  2569. security:
  2570. - Bearer: []
  2571. summary: 修改用户角色
  2572. tags:
  2573. - 角色
  2574. /api/serv-api:
  2575. delete:
  2576. consumes:
  2577. - application/json
  2578. description: 删除接口
  2579. parameters:
  2580. - description: body
  2581. in: body
  2582. name: data
  2583. required: true
  2584. schema:
  2585. $ref: '#/definitions/dto.ServApiDeleteReq'
  2586. responses:
  2587. "200":
  2588. description: '{"code": 200, "data": [...]}'
  2589. schema:
  2590. $ref: '#/definitions/response.Response'
  2591. security:
  2592. - Bearer: []
  2593. summary: 删除接口
  2594. tags:
  2595. - 服务接口
  2596. get:
  2597. description: 获取接口列表
  2598. parameters:
  2599. - description: 服务ID
  2600. in: query
  2601. name: serviceId
  2602. required: true
  2603. type: string
  2604. - description: 接口名称
  2605. in: query
  2606. name: title
  2607. type: string
  2608. responses:
  2609. "200":
  2610. description: '{"code": 200, "data": [...]}'
  2611. schema:
  2612. allOf:
  2613. - $ref: '#/definitions/response.Response'
  2614. - properties:
  2615. data:
  2616. allOf:
  2617. - $ref: '#/definitions/response.Page'
  2618. - properties:
  2619. list:
  2620. items:
  2621. $ref: '#/definitions/model.ServApi'
  2622. type: array
  2623. type: object
  2624. type: object
  2625. security:
  2626. - Bearer: []
  2627. summary: 获取接口列表
  2628. tags:
  2629. - 服务接口
  2630. post:
  2631. consumes:
  2632. - application/json
  2633. description: 创建接口
  2634. parameters:
  2635. - description: data
  2636. in: body
  2637. name: data
  2638. required: true
  2639. schema:
  2640. $ref: '#/definitions/dto.ServApiInsertReq'
  2641. responses:
  2642. "200":
  2643. description: '{"code": 200, "data": [...]}'
  2644. schema:
  2645. $ref: '#/definitions/response.Response'
  2646. security:
  2647. - Bearer: []
  2648. summary: 创建接口
  2649. tags:
  2650. - 服务接口
  2651. /api/serv-api/{id}:
  2652. get:
  2653. description: 通过id获取接口
  2654. parameters:
  2655. - description: 接口id
  2656. in: path
  2657. name: id
  2658. required: true
  2659. type: string
  2660. responses:
  2661. "200":
  2662. description: '{"code": 200, "data": [...]}'
  2663. schema:
  2664. allOf:
  2665. - $ref: '#/definitions/response.Response'
  2666. - properties:
  2667. data:
  2668. $ref: '#/definitions/model.ServApi'
  2669. type: object
  2670. security:
  2671. - Bearer: []
  2672. summary: 通过id获取接口
  2673. tags:
  2674. - 服务接口
  2675. put:
  2676. consumes:
  2677. - application/json
  2678. description: 修改接口
  2679. parameters:
  2680. - description: 接口id
  2681. in: path
  2682. name: id
  2683. required: true
  2684. type: string
  2685. - description: body
  2686. in: body
  2687. name: data
  2688. required: true
  2689. schema:
  2690. $ref: '#/definitions/dto.ServApiUpdateReq'
  2691. responses:
  2692. "200":
  2693. description: '{"code": 200, "data": [...]}'
  2694. schema:
  2695. $ref: '#/definitions/response.Response'
  2696. security:
  2697. - Bearer: []
  2698. summary: 修改接口
  2699. tags:
  2700. - 服务接口
  2701. /api/serv-menu:
  2702. delete:
  2703. consumes:
  2704. - application/json
  2705. description: 删除菜单
  2706. parameters:
  2707. - description: body
  2708. in: body
  2709. name: data
  2710. required: true
  2711. schema:
  2712. $ref: '#/definitions/dto.ServMenuDeleteReq'
  2713. responses:
  2714. "200":
  2715. description: '{"code": 200, "data": [...]}'
  2716. schema:
  2717. $ref: '#/definitions/response.Response'
  2718. security:
  2719. - Bearer: []
  2720. summary: 删除菜单
  2721. tags:
  2722. - 服务菜单
  2723. get:
  2724. description: 获取菜单列表
  2725. parameters:
  2726. - description: 服务ID
  2727. in: query
  2728. name: serviceId
  2729. required: true
  2730. type: string
  2731. - description: 菜单名称
  2732. in: query
  2733. name: name
  2734. type: string
  2735. - description: 显示状态
  2736. in: query
  2737. name: visible
  2738. type: string
  2739. responses:
  2740. "200":
  2741. description: '{"code": 200, "data": [...]}'
  2742. schema:
  2743. allOf:
  2744. - $ref: '#/definitions/response.Response'
  2745. - properties:
  2746. data:
  2747. allOf:
  2748. - $ref: '#/definitions/response.Page'
  2749. - properties:
  2750. list:
  2751. items:
  2752. $ref: '#/definitions/model.ServMenu'
  2753. type: array
  2754. type: object
  2755. type: object
  2756. security:
  2757. - Bearer: []
  2758. summary: 获取菜单列表
  2759. tags:
  2760. - 服务菜单
  2761. post:
  2762. consumes:
  2763. - application/json
  2764. description: 创建菜单
  2765. parameters:
  2766. - description: data
  2767. in: body
  2768. name: data
  2769. required: true
  2770. schema:
  2771. $ref: '#/definitions/dto.ServMenuInsertReq'
  2772. responses:
  2773. "200":
  2774. description: '{"code": 200, "data": [...]}'
  2775. schema:
  2776. $ref: '#/definitions/response.Response'
  2777. security:
  2778. - Bearer: []
  2779. summary: 创建菜单
  2780. tags:
  2781. - 服务菜单
  2782. /api/serv-menu/{id}:
  2783. get:
  2784. description: 通过id获取菜单
  2785. parameters:
  2786. - description: 菜单id
  2787. in: path
  2788. name: id
  2789. required: true
  2790. type: string
  2791. responses:
  2792. "200":
  2793. description: '{"code": 200, "data": [...]}'
  2794. schema:
  2795. allOf:
  2796. - $ref: '#/definitions/response.Response'
  2797. - properties:
  2798. data:
  2799. $ref: '#/definitions/model.ServMenu'
  2800. type: object
  2801. security:
  2802. - Bearer: []
  2803. summary: 通过id获取菜单
  2804. tags:
  2805. - 服务菜单
  2806. put:
  2807. consumes:
  2808. - application/json
  2809. description: 修改菜单
  2810. parameters:
  2811. - description: 菜单id
  2812. in: path
  2813. name: id
  2814. required: true
  2815. type: string
  2816. - description: body
  2817. in: body
  2818. name: data
  2819. required: true
  2820. schema:
  2821. $ref: '#/definitions/dto.ServMenuUpdateReq'
  2822. responses:
  2823. "200":
  2824. description: '{"code": 200, "data": [...]}'
  2825. schema:
  2826. $ref: '#/definitions/response.Response'
  2827. security:
  2828. - Bearer: []
  2829. summary: 修改菜单
  2830. tags:
  2831. - 服务菜单
  2832. /api/serv-menu/export:
  2833. get:
  2834. consumes:
  2835. - application/json
  2836. description: 导出菜单
  2837. parameters:
  2838. - description: body
  2839. in: body
  2840. name: data
  2841. required: true
  2842. schema:
  2843. $ref: '#/definitions/dto.ServMenuExportReq'
  2844. responses:
  2845. "200":
  2846. description: '{"code": 200}'
  2847. schema:
  2848. $ref: '#/definitions/response.Response'
  2849. security:
  2850. - Bearer: []
  2851. summary: 导出菜单
  2852. tags:
  2853. - 服务菜单
  2854. /api/service:
  2855. delete:
  2856. consumes:
  2857. - application/json
  2858. description: 删除服务
  2859. parameters:
  2860. - description: 请求参数
  2861. in: body
  2862. name: id
  2863. required: true
  2864. schema:
  2865. $ref: '#/definitions/dto.SysServiceDeleteReq'
  2866. responses:
  2867. "200":
  2868. description: '{"code": 200, "data": [...]}'
  2869. schema:
  2870. $ref: '#/definitions/response.Response'
  2871. security:
  2872. - Bearer: []
  2873. summary: 删除服务
  2874. tags:
  2875. - 服务
  2876. get:
  2877. description: 获取服务列表
  2878. parameters:
  2879. - description: 服务名称
  2880. in: query
  2881. name: name
  2882. type: string
  2883. - description: 状态 1-停用 2-正常
  2884. in: query
  2885. name: status
  2886. type: integer
  2887. - description: 页条数
  2888. in: query
  2889. name: pageSize
  2890. type: integer
  2891. - description: 页码
  2892. in: query
  2893. name: pageIndex
  2894. type: integer
  2895. responses:
  2896. "200":
  2897. description: '{"code": 200, "data": [...]}'
  2898. schema:
  2899. allOf:
  2900. - $ref: '#/definitions/response.Response'
  2901. - properties:
  2902. data:
  2903. allOf:
  2904. - $ref: '#/definitions/response.Page'
  2905. - properties:
  2906. list:
  2907. items:
  2908. $ref: '#/definitions/model.SysService'
  2909. type: array
  2910. type: object
  2911. type: object
  2912. security:
  2913. - Bearer: []
  2914. summary: 获取服务列表
  2915. tags:
  2916. - 服务
  2917. post:
  2918. consumes:
  2919. - application/json
  2920. description: 添加服务
  2921. parameters:
  2922. - description: data
  2923. in: body
  2924. name: data
  2925. required: true
  2926. schema:
  2927. $ref: '#/definitions/dto.SysServiceInsertReq'
  2928. responses:
  2929. "200":
  2930. description: '{"code": 200, "data": [...]}'
  2931. schema:
  2932. $ref: '#/definitions/response.Response'
  2933. security:
  2934. - Bearer: []
  2935. summary: 添加服务
  2936. tags:
  2937. - 服务
  2938. /api/service-disco:
  2939. post:
  2940. consumes:
  2941. - application/json
  2942. description: 服务发现,服务主动推送到数据库保存,有则更新,没有则删除。
  2943. parameters:
  2944. - description: data
  2945. in: body
  2946. name: data
  2947. required: true
  2948. schema:
  2949. $ref: '#/definitions/dto.SysServiceDiscoveryReq'
  2950. responses:
  2951. "200":
  2952. description: '{"code": 200, "data": [...]}'
  2953. schema:
  2954. $ref: '#/definitions/response.Response'
  2955. summary: 服务发现
  2956. tags:
  2957. - 服务
  2958. /api/service/{id}:
  2959. get:
  2960. description: 通过id获取服务
  2961. parameters:
  2962. - description: 服务id
  2963. in: path
  2964. name: id
  2965. required: true
  2966. type: integer
  2967. responses:
  2968. "200":
  2969. description: '{"code": 200, "data": [...]}'
  2970. schema:
  2971. allOf:
  2972. - $ref: '#/definitions/response.Response'
  2973. - properties:
  2974. data:
  2975. $ref: '#/definitions/model.SysService'
  2976. type: object
  2977. security:
  2978. - Bearer: []
  2979. summary: 通过id获取服务
  2980. tags:
  2981. - 服务
  2982. put:
  2983. consumes:
  2984. - application/json
  2985. description: 修改服务
  2986. parameters:
  2987. - description: 服务id
  2988. in: path
  2989. name: id
  2990. required: true
  2991. type: integer
  2992. - description: body
  2993. in: body
  2994. name: data
  2995. required: true
  2996. schema:
  2997. $ref: '#/definitions/dto.SysServiceUpdateReq'
  2998. responses:
  2999. "200":
  3000. description: '{"code": 200, "data": [...]}'
  3001. schema:
  3002. $ref: '#/definitions/response.Response'
  3003. security:
  3004. - Bearer: []
  3005. summary: 修改服务
  3006. tags:
  3007. - 服务
  3008. /api/set-config:
  3009. get:
  3010. consumes:
  3011. - application/json
  3012. description: 界面操作设置配置值的获取
  3013. responses:
  3014. "200":
  3015. description: '{"code": 200, "message": "获取成功"}'
  3016. schema:
  3017. allOf:
  3018. - $ref: '#/definitions/response.Response'
  3019. - properties:
  3020. data:
  3021. additionalProperties: true
  3022. type: object
  3023. type: object
  3024. security:
  3025. - Bearer: []
  3026. summary: 获取配置
  3027. tags:
  3028. - 配置管理
  3029. put:
  3030. consumes:
  3031. - application/json
  3032. description: 界面操作设置配置值
  3033. parameters:
  3034. - description: body
  3035. in: body
  3036. name: data
  3037. required: true
  3038. schema:
  3039. items:
  3040. $ref: '#/definitions/dto.GetSetSysConfigReq'
  3041. type: array
  3042. responses:
  3043. "200":
  3044. description: '{"code": 200, "message": "修改成功"}'
  3045. schema:
  3046. $ref: '#/definitions/response.Response'
  3047. security:
  3048. - Bearer: []
  3049. summary: 设置配置
  3050. tags:
  3051. - 配置管理
  3052. /api/sys-config:
  3053. delete:
  3054. description: 删除配置管理
  3055. parameters:
  3056. - description: ids
  3057. in: body
  3058. name: ids
  3059. schema:
  3060. items:
  3061. type: integer
  3062. type: array
  3063. responses:
  3064. "200":
  3065. description: '{"code": 200, "message": "删除成功"}'
  3066. schema:
  3067. $ref: '#/definitions/response.Response'
  3068. security:
  3069. - Bearer: []
  3070. summary: 删除配置管理
  3071. tags:
  3072. - 配置管理
  3073. get:
  3074. description: 获取配置管理列表
  3075. parameters:
  3076. - description: 名称
  3077. in: query
  3078. name: configName
  3079. type: string
  3080. - description: key
  3081. in: query
  3082. name: configKey
  3083. type: string
  3084. - description: 类型
  3085. in: query
  3086. name: configType
  3087. type: string
  3088. - description: 是否前端
  3089. in: query
  3090. name: isFrontend
  3091. type: integer
  3092. - description: 页条数
  3093. in: query
  3094. name: pageSize
  3095. type: integer
  3096. - description: 页码
  3097. in: query
  3098. name: pageIndex
  3099. type: integer
  3100. responses:
  3101. "200":
  3102. description: '{"code": 200, "data": [...]}'
  3103. schema:
  3104. allOf:
  3105. - $ref: '#/definitions/response.Response'
  3106. - properties:
  3107. data:
  3108. allOf:
  3109. - $ref: '#/definitions/response.Page'
  3110. - properties:
  3111. list:
  3112. items:
  3113. $ref: '#/definitions/model.SysConfig'
  3114. type: array
  3115. type: object
  3116. type: object
  3117. security:
  3118. - Bearer: []
  3119. summary: 获取配置管理列表
  3120. tags:
  3121. - 配置管理
  3122. post:
  3123. consumes:
  3124. - application/json
  3125. description: 创建配置管理
  3126. parameters:
  3127. - description: body
  3128. in: body
  3129. name: data
  3130. required: true
  3131. schema:
  3132. $ref: '#/definitions/dto.SysConfigControl'
  3133. responses:
  3134. "200":
  3135. description: '{"code": 200, "message": "创建成功"}'
  3136. schema:
  3137. $ref: '#/definitions/response.Response'
  3138. security:
  3139. - Bearer: []
  3140. summary: 创建配置管理
  3141. tags:
  3142. - 配置管理
  3143. /api/sys-config/{id}:
  3144. get:
  3145. description: 获取配置管理
  3146. parameters:
  3147. - description: id
  3148. in: path
  3149. name: id
  3150. type: string
  3151. responses:
  3152. "200":
  3153. description: '{"code": 200, "data": [...]}'
  3154. schema:
  3155. allOf:
  3156. - $ref: '#/definitions/response.Response'
  3157. - properties:
  3158. data:
  3159. $ref: '#/definitions/model.SysConfig'
  3160. type: object
  3161. security:
  3162. - Bearer: []
  3163. summary: 获取配置管理
  3164. tags:
  3165. - 配置管理
  3166. put:
  3167. consumes:
  3168. - application/json
  3169. description: 修改配置管理
  3170. parameters:
  3171. - description: body
  3172. in: body
  3173. name: data
  3174. required: true
  3175. schema:
  3176. $ref: '#/definitions/dto.SysConfigControl'
  3177. responses:
  3178. "200":
  3179. description: '{"code": 200, "message": "修改成功"}'
  3180. schema:
  3181. $ref: '#/definitions/response.Response'
  3182. security:
  3183. - Bearer: []
  3184. summary: 修改配置管理
  3185. tags:
  3186. - 配置管理
  3187. /api/sys-login-log:
  3188. delete:
  3189. description: 删除登录日志
  3190. parameters:
  3191. - description: body
  3192. in: body
  3193. name: data
  3194. required: true
  3195. schema:
  3196. $ref: '#/definitions/dto.SysLoginLogDeleteReq'
  3197. responses:
  3198. "200":
  3199. description: '{"code": 200, "data": [...]}'
  3200. schema:
  3201. $ref: '#/definitions/response.Response'
  3202. security:
  3203. - Bearer: []
  3204. summary: 删除登录日志
  3205. tags:
  3206. - 登录日志
  3207. get:
  3208. description: 登录日志列表
  3209. parameters:
  3210. - description: 用户名
  3211. in: query
  3212. name: username
  3213. type: string
  3214. - description: ip地址
  3215. in: query
  3216. name: ipaddr
  3217. type: string
  3218. - description: 归属地
  3219. in: query
  3220. name: loginLocation
  3221. type: string
  3222. - description: 状态
  3223. in: query
  3224. name: status
  3225. type: string
  3226. - description: 开始时间
  3227. in: query
  3228. name: beginTime
  3229. type: string
  3230. - description: 结束时间
  3231. in: query
  3232. name: endTime
  3233. type: string
  3234. - description: 页条数
  3235. in: query
  3236. name: pageSize
  3237. type: integer
  3238. - description: 页码
  3239. in: query
  3240. name: pageIndex
  3241. type: integer
  3242. responses:
  3243. "200":
  3244. description: '{"code": 200, "data": [...]}'
  3245. schema:
  3246. allOf:
  3247. - $ref: '#/definitions/response.Response'
  3248. - properties:
  3249. data:
  3250. allOf:
  3251. - $ref: '#/definitions/response.Page'
  3252. - properties:
  3253. list:
  3254. items:
  3255. $ref: '#/definitions/model.SysLoginLog'
  3256. type: array
  3257. type: object
  3258. type: object
  3259. security:
  3260. - Bearer: []
  3261. summary: 登录日志列表
  3262. tags:
  3263. - 登录日志
  3264. /api/sys-login-log/{id}:
  3265. get:
  3266. description: 通过id获取登录日志
  3267. parameters:
  3268. - description: 登录日志id
  3269. in: path
  3270. name: id
  3271. required: true
  3272. type: string
  3273. responses:
  3274. "200":
  3275. description: '{"code": 200, "data": [...]}'
  3276. schema:
  3277. allOf:
  3278. - $ref: '#/definitions/response.Response'
  3279. - properties:
  3280. data:
  3281. $ref: '#/definitions/model.SysLoginLog'
  3282. type: object
  3283. security:
  3284. - Bearer: []
  3285. summary: 通过id获取登录日志
  3286. tags:
  3287. - 登录日志
  3288. /api/sys-opera-log:
  3289. delete:
  3290. description: 删除操作日志
  3291. parameters:
  3292. - description: body
  3293. in: body
  3294. name: data
  3295. required: true
  3296. schema:
  3297. $ref: '#/definitions/dto.SysOperaLogDeleteReq'
  3298. responses:
  3299. "200":
  3300. description: '{"code": 200, "data": [...]}'
  3301. schema:
  3302. $ref: '#/definitions/response.Response'
  3303. security:
  3304. - Bearer: []
  3305. summary: 删除操作日志
  3306. tags:
  3307. - 操作日志
  3308. get:
  3309. description: 操作日志列表
  3310. parameters:
  3311. - description: title
  3312. in: query
  3313. name: title
  3314. type: string
  3315. - description: method
  3316. in: query
  3317. name: method
  3318. type: string
  3319. - description: requestMethod
  3320. in: query
  3321. name: requestMethod
  3322. type: string
  3323. - description: operaUrl
  3324. in: query
  3325. name: operaUrl
  3326. type: string
  3327. - description: operaIp
  3328. in: query
  3329. name: operaIp
  3330. type: string
  3331. - description: status
  3332. in: query
  3333. name: status
  3334. type: string
  3335. - description: beginTime
  3336. in: query
  3337. name: beginTime
  3338. type: string
  3339. - description: endTime
  3340. in: query
  3341. name: endTime
  3342. type: string
  3343. - description: 页条数
  3344. in: query
  3345. name: pageSize
  3346. type: integer
  3347. - description: 页码
  3348. in: query
  3349. name: pageIndex
  3350. type: integer
  3351. responses:
  3352. "200":
  3353. description: '{"code": 200, "data": [...]}'
  3354. schema:
  3355. allOf:
  3356. - $ref: '#/definitions/response.Response'
  3357. - properties:
  3358. data:
  3359. allOf:
  3360. - $ref: '#/definitions/response.Page'
  3361. - properties:
  3362. list:
  3363. items:
  3364. $ref: '#/definitions/model.SysOperaLog'
  3365. type: array
  3366. type: object
  3367. type: object
  3368. security:
  3369. - Bearer: []
  3370. summary: 操作日志列表
  3371. tags:
  3372. - 操作日志
  3373. /api/sys-opera-log/{id}:
  3374. get:
  3375. description: 通过id获取操作日志
  3376. parameters:
  3377. - description: 操作日志id
  3378. in: path
  3379. name: id
  3380. required: true
  3381. type: string
  3382. responses:
  3383. "200":
  3384. description: '{"code": 200, "data": [...]}'
  3385. schema:
  3386. allOf:
  3387. - $ref: '#/definitions/response.Response'
  3388. - properties:
  3389. data:
  3390. $ref: '#/definitions/model.SysOperaLog'
  3391. type: object
  3392. security:
  3393. - Bearer: []
  3394. summary: 通过id获取操作日志
  3395. tags:
  3396. - 操作日志
  3397. /api/sys-user:
  3398. delete:
  3399. description: 通过id删除用户数据
  3400. parameters:
  3401. - description: body
  3402. in: body
  3403. name: data
  3404. required: true
  3405. schema:
  3406. $ref: '#/definitions/dto.SysUserDeleteReq'
  3407. responses:
  3408. "200":
  3409. description: '{"code": 200, "data": [...]}'
  3410. schema:
  3411. $ref: '#/definitions/response.Response'
  3412. security:
  3413. - Bearer: []
  3414. summary: 通过id删除用户数据
  3415. tags:
  3416. - 用户
  3417. get:
  3418. description: 获取系统用户列表
  3419. parameters:
  3420. - description: 用户名
  3421. in: query
  3422. name: username
  3423. type: string
  3424. - description: 部门id
  3425. in: query
  3426. name: deptId
  3427. type: integer
  3428. - description: 角色id
  3429. in: query
  3430. name: roleId
  3431. type: string
  3432. - description: 岗位id
  3433. in: query
  3434. name: postId
  3435. type: string
  3436. - description: 状态 1-停用 2-正常
  3437. in: query
  3438. name: status
  3439. type: string
  3440. - description: 页条数
  3441. in: query
  3442. name: pageSize
  3443. type: integer
  3444. - description: 页码
  3445. in: query
  3446. name: pageIndex
  3447. type: integer
  3448. responses:
  3449. "200":
  3450. description: '{"code": 200, "data": [...]}'
  3451. schema:
  3452. allOf:
  3453. - $ref: '#/definitions/response.Response'
  3454. - properties:
  3455. data:
  3456. allOf:
  3457. - $ref: '#/definitions/response.Page'
  3458. - properties:
  3459. list:
  3460. items:
  3461. $ref: '#/definitions/model.SysUser'
  3462. type: array
  3463. type: object
  3464. type: object
  3465. security:
  3466. - Bearer: []
  3467. summary: 获取系统用户列表
  3468. tags:
  3469. - 用户
  3470. post:
  3471. consumes:
  3472. - application/json
  3473. description: 创建用户
  3474. parameters:
  3475. - description: 用户数据
  3476. in: body
  3477. name: data
  3478. required: true
  3479. schema:
  3480. $ref: '#/definitions/dto.SysUserInsertReq'
  3481. responses:
  3482. "200":
  3483. description: '{"code": 200, "data": [...]}'
  3484. schema:
  3485. $ref: '#/definitions/response.Response'
  3486. security:
  3487. - Bearer: []
  3488. summary: 创建用户
  3489. tags:
  3490. - 用户
  3491. /api/sys-user/{id}:
  3492. get:
  3493. description: 通过id获取用户
  3494. parameters:
  3495. - description: 用户id
  3496. in: path
  3497. name: id
  3498. required: true
  3499. type: integer
  3500. responses:
  3501. "200":
  3502. description: '{"code": 200, "data": [...]}'
  3503. schema:
  3504. allOf:
  3505. - $ref: '#/definitions/response.Response'
  3506. - properties:
  3507. data:
  3508. $ref: '#/definitions/model.SysUser'
  3509. type: object
  3510. security:
  3511. - Bearer: []
  3512. summary: 通过id获取用户
  3513. tags:
  3514. - 用户
  3515. put:
  3516. consumes:
  3517. - application/json
  3518. description: 修改用户数据
  3519. parameters:
  3520. - description: 用户id
  3521. in: path
  3522. name: id
  3523. required: true
  3524. type: integer
  3525. - description: body
  3526. in: body
  3527. name: data
  3528. required: true
  3529. schema:
  3530. $ref: '#/definitions/dto.SysUserUpdateReq'
  3531. responses:
  3532. "200":
  3533. description: '{"code": 200, "data": [...]}'
  3534. schema:
  3535. $ref: '#/definitions/response.Response'
  3536. security:
  3537. - Bearer: []
  3538. summary: 修改用户数据
  3539. tags:
  3540. - 用户
  3541. /api/user/info:
  3542. get:
  3543. description: 获取个人信息
  3544. responses:
  3545. "200":
  3546. description: '{"code": 200, "data": [...]}'
  3547. schema:
  3548. $ref: '#/definitions/response.Response'
  3549. security:
  3550. - Bearer: []
  3551. summary: 获取个人信息
  3552. tags:
  3553. - 个人中心
  3554. /api/user/profile:
  3555. get:
  3556. description: 获取个人中心用户
  3557. responses:
  3558. "200":
  3559. description: '{"code": 200, "data": {"user":[...],"role":[...]}}'
  3560. schema:
  3561. allOf:
  3562. - $ref: '#/definitions/response.Response'
  3563. - properties:
  3564. role:
  3565. $ref: '#/definitions/model.SysRole'
  3566. user:
  3567. $ref: '#/definitions/model.SysUser'
  3568. type: object
  3569. security:
  3570. - Bearer: []
  3571. summary: 获取个人中心用户
  3572. tags:
  3573. - 个人中心
  3574. /api/user/pwd/reset:
  3575. put:
  3576. consumes:
  3577. - application/json
  3578. description: 重置用户密码
  3579. parameters:
  3580. - description: body
  3581. in: body
  3582. name: data
  3583. required: true
  3584. schema:
  3585. $ref: '#/definitions/dto.ResetSysUserPwdReq'
  3586. responses:
  3587. "200":
  3588. description: '{"code": 200, "data": [...]}'
  3589. schema:
  3590. $ref: '#/definitions/response.Response'
  3591. security:
  3592. - Bearer: []
  3593. summary: 重置用户密码
  3594. tags:
  3595. - 用户
  3596. /api/user/pwd/set:
  3597. put:
  3598. consumes:
  3599. - application/json
  3600. description: 修改密码
  3601. parameters:
  3602. - description: body
  3603. in: body
  3604. name: data
  3605. required: true
  3606. schema:
  3607. $ref: '#/definitions/dto.PassWord'
  3608. responses:
  3609. "200":
  3610. description: '{"code": 200, "data": [...]}'
  3611. schema:
  3612. $ref: '#/definitions/response.Response'
  3613. security:
  3614. - Bearer: []
  3615. summary: 修改密码
  3616. tags:
  3617. - 个人中心
  3618. /api/user/register:
  3619. post:
  3620. consumes:
  3621. - application/json
  3622. description: 公开用户注册
  3623. parameters:
  3624. - description: 请求参数
  3625. in: body
  3626. name: id
  3627. required: true
  3628. schema:
  3629. $ref: '#/definitions/dto.SysUserRegisterReq'
  3630. responses:
  3631. "200":
  3632. description: '{"code": 200, "data": [...]}'
  3633. schema:
  3634. $ref: '#/definitions/response.Response'
  3635. security:
  3636. - Bearer: []
  3637. summary: 公开用户注册
  3638. tags:
  3639. - 用户
  3640. /api/user/status:
  3641. put:
  3642. consumes:
  3643. - application/json
  3644. description: 修改用户状态
  3645. parameters:
  3646. - description: body
  3647. in: body
  3648. name: data
  3649. required: true
  3650. schema:
  3651. $ref: '#/definitions/dto.UpdateSysUserStatusReq'
  3652. responses:
  3653. "200":
  3654. description: '{"code": 200, "data": [...]}'
  3655. schema:
  3656. $ref: '#/definitions/response.Response'
  3657. security:
  3658. - Bearer: []
  3659. summary: 修改用户状态
  3660. tags:
  3661. - 用户
  3662. /api/userinfo:
  3663. get:
  3664. consumes:
  3665. - application/json
  3666. description: 服务获取用户信息,验证登录
  3667. responses:
  3668. "200":
  3669. description: '{"code": 200, "data": [...]}'
  3670. schema:
  3671. allOf:
  3672. - $ref: '#/definitions/response.Response'
  3673. - properties:
  3674. data:
  3675. $ref: '#/definitions/model.UserInfo'
  3676. type: object
  3677. summary: 服务获取用户信息
  3678. tags:
  3679. - 服务
  3680. /logout:
  3681. post:
  3682. consumes:
  3683. - application/json
  3684. description: |-
  3685. 退出登录
  3686. LoginHandler can be used by clients to get a jwt token.
  3687. Reply will be of the form {"token": "TOKEN"}.
  3688. responses:
  3689. "200":
  3690. description: '{"code": 200, "msg": "成功退出系统"}'
  3691. schema:
  3692. type: string
  3693. security:
  3694. - Bearer: []
  3695. summary: 退出登录
  3696. tags:
  3697. - 登录
  3698. /newest-token:
  3699. get:
  3700. description: 获取最新token,提供给接入服务访问,用于单一认证检查
  3701. parameters:
  3702. - description: 服务id
  3703. in: header
  3704. name: serviceId
  3705. required: true
  3706. type: integer
  3707. - description: 用户id
  3708. in: path
  3709. name: userId
  3710. required: true
  3711. type: integer
  3712. responses:
  3713. "200":
  3714. description: '{"code": 200, "data": "...token..."}'
  3715. schema:
  3716. type: string
  3717. summary: 获取最新token
  3718. tags:
  3719. - 用户
  3720. /verify-code:
  3721. post:
  3722. consumes:
  3723. - application/json
  3724. description: 获取短信验证码
  3725. responses:
  3726. "200":
  3727. description: '{"code": 200, "data": "18888888888"}'
  3728. schema:
  3729. type: string
  3730. security:
  3731. - Bearer: []
  3732. summary: 获取短信验证码
  3733. tags:
  3734. - 登录
  3735. securityDefinitions:
  3736. Bearer:
  3737. in: header
  3738. name: Authorization
  3739. type: apiKey
  3740. swagger: "2.0"