swagger.json 154 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a sample Server pets",
  5. "title": "Swagger Example API",
  6. "contact": {},
  7. "version": "0.0.1"
  8. },
  9. "basePath": "/",
  10. "paths": {
  11. "/api/createApi": {
  12. "post": {
  13. "security": [
  14. {
  15. "ApiKeyAuth": []
  16. }
  17. ],
  18. "consumes": [
  19. "application/json"
  20. ],
  21. "produces": [
  22. "application/json"
  23. ],
  24. "tags": [
  25. "SysApi"
  26. ],
  27. "summary": "创建基础api",
  28. "parameters": [
  29. {
  30. "description": "api路径, api中文描述, api组, 方法",
  31. "name": "data",
  32. "in": "body",
  33. "required": true,
  34. "schema": {
  35. "$ref": "#/definitions/system.SysApi"
  36. }
  37. }
  38. ],
  39. "responses": {
  40. "200": {
  41. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  42. "schema": {
  43. "type": "string"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "/api/deleteApi": {
  50. "post": {
  51. "security": [
  52. {
  53. "ApiKeyAuth": []
  54. }
  55. ],
  56. "consumes": [
  57. "application/json"
  58. ],
  59. "produces": [
  60. "application/json"
  61. ],
  62. "tags": [
  63. "SysApi"
  64. ],
  65. "summary": "删除api",
  66. "parameters": [
  67. {
  68. "description": "ID",
  69. "name": "data",
  70. "in": "body",
  71. "required": true,
  72. "schema": {
  73. "$ref": "#/definitions/system.SysApi"
  74. }
  75. }
  76. ],
  77. "responses": {
  78. "200": {
  79. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  80. "schema": {
  81. "type": "string"
  82. }
  83. }
  84. }
  85. }
  86. },
  87. "/api/deleteApisByIds": {
  88. "delete": {
  89. "security": [
  90. {
  91. "ApiKeyAuth": []
  92. }
  93. ],
  94. "consumes": [
  95. "application/json"
  96. ],
  97. "produces": [
  98. "application/json"
  99. ],
  100. "tags": [
  101. "SysApi"
  102. ],
  103. "summary": "删除选中Api",
  104. "parameters": [
  105. {
  106. "description": "ID",
  107. "name": "data",
  108. "in": "body",
  109. "required": true,
  110. "schema": {
  111. "$ref": "#/definitions/request.IdsReq"
  112. }
  113. }
  114. ],
  115. "responses": {
  116. "200": {
  117. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  118. "schema": {
  119. "type": "string"
  120. }
  121. }
  122. }
  123. }
  124. },
  125. "/api/getAllApis": {
  126. "post": {
  127. "security": [
  128. {
  129. "ApiKeyAuth": []
  130. }
  131. ],
  132. "consumes": [
  133. "application/json"
  134. ],
  135. "produces": [
  136. "application/json"
  137. ],
  138. "tags": [
  139. "SysApi"
  140. ],
  141. "summary": "获取所有的Api 不分页",
  142. "responses": {
  143. "200": {
  144. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  145. "schema": {
  146. "type": "string"
  147. }
  148. }
  149. }
  150. }
  151. },
  152. "/api/getApiById": {
  153. "post": {
  154. "security": [
  155. {
  156. "ApiKeyAuth": []
  157. }
  158. ],
  159. "consumes": [
  160. "application/json"
  161. ],
  162. "produces": [
  163. "application/json"
  164. ],
  165. "tags": [
  166. "SysApi"
  167. ],
  168. "summary": "根据id获取api",
  169. "parameters": [
  170. {
  171. "description": "根据id获取api",
  172. "name": "data",
  173. "in": "body",
  174. "required": true,
  175. "schema": {
  176. "$ref": "#/definitions/request.GetById"
  177. }
  178. }
  179. ],
  180. "responses": {
  181. "200": {
  182. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  183. "schema": {
  184. "type": "string"
  185. }
  186. }
  187. }
  188. }
  189. },
  190. "/api/getApiList": {
  191. "post": {
  192. "security": [
  193. {
  194. "ApiKeyAuth": []
  195. }
  196. ],
  197. "consumes": [
  198. "application/json"
  199. ],
  200. "produces": [
  201. "application/json"
  202. ],
  203. "tags": [
  204. "SysApi"
  205. ],
  206. "summary": "分页获取API列表",
  207. "parameters": [
  208. {
  209. "description": "分页获取API列表",
  210. "name": "data",
  211. "in": "body",
  212. "required": true,
  213. "schema": {
  214. "$ref": "#/definitions/request.SearchApiParams"
  215. }
  216. }
  217. ],
  218. "responses": {
  219. "200": {
  220. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  221. "schema": {
  222. "type": "string"
  223. }
  224. }
  225. }
  226. }
  227. },
  228. "/api/updateApi": {
  229. "post": {
  230. "security": [
  231. {
  232. "ApiKeyAuth": []
  233. }
  234. ],
  235. "consumes": [
  236. "application/json"
  237. ],
  238. "produces": [
  239. "application/json"
  240. ],
  241. "tags": [
  242. "SysApi"
  243. ],
  244. "summary": "创建基础api",
  245. "parameters": [
  246. {
  247. "description": "api路径, api中文描述, api组, 方法",
  248. "name": "data",
  249. "in": "body",
  250. "required": true,
  251. "schema": {
  252. "$ref": "#/definitions/system.SysApi"
  253. }
  254. }
  255. ],
  256. "responses": {
  257. "200": {
  258. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  259. "schema": {
  260. "type": "string"
  261. }
  262. }
  263. }
  264. }
  265. },
  266. "/authority/copyAuthority": {
  267. "post": {
  268. "security": [
  269. {
  270. "ApiKeyAuth": []
  271. }
  272. ],
  273. "consumes": [
  274. "application/json"
  275. ],
  276. "produces": [
  277. "application/json"
  278. ],
  279. "tags": [
  280. "Authority"
  281. ],
  282. "summary": "拷贝角色",
  283. "parameters": [
  284. {
  285. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  286. "name": "data",
  287. "in": "body",
  288. "required": true,
  289. "schema": {
  290. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  291. }
  292. }
  293. ],
  294. "responses": {
  295. "200": {
  296. "description": "{\"success\":true,\"data\":{},\"msg\":\"拷贝成功\"}",
  297. "schema": {
  298. "type": "string"
  299. }
  300. }
  301. }
  302. }
  303. },
  304. "/authority/createAuthority": {
  305. "post": {
  306. "security": [
  307. {
  308. "ApiKeyAuth": []
  309. }
  310. ],
  311. "consumes": [
  312. "application/json"
  313. ],
  314. "produces": [
  315. "application/json"
  316. ],
  317. "tags": [
  318. "Authority"
  319. ],
  320. "summary": "创建角色",
  321. "parameters": [
  322. {
  323. "description": "权限id, 权限名, 父角色id",
  324. "name": "data",
  325. "in": "body",
  326. "required": true,
  327. "schema": {
  328. "$ref": "#/definitions/system.SysAuthority"
  329. }
  330. }
  331. ],
  332. "responses": {
  333. "200": {
  334. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  335. "schema": {
  336. "type": "string"
  337. }
  338. }
  339. }
  340. }
  341. },
  342. "/authority/deleteAuthority": {
  343. "post": {
  344. "security": [
  345. {
  346. "ApiKeyAuth": []
  347. }
  348. ],
  349. "consumes": [
  350. "application/json"
  351. ],
  352. "produces": [
  353. "application/json"
  354. ],
  355. "tags": [
  356. "Authority"
  357. ],
  358. "summary": "删除角色",
  359. "parameters": [
  360. {
  361. "description": "删除角色",
  362. "name": "data",
  363. "in": "body",
  364. "required": true,
  365. "schema": {
  366. "$ref": "#/definitions/system.SysAuthority"
  367. }
  368. }
  369. ],
  370. "responses": {
  371. "200": {
  372. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  373. "schema": {
  374. "type": "string"
  375. }
  376. }
  377. }
  378. }
  379. },
  380. "/authority/getAuthorityList": {
  381. "post": {
  382. "security": [
  383. {
  384. "ApiKeyAuth": []
  385. }
  386. ],
  387. "consumes": [
  388. "application/json"
  389. ],
  390. "produces": [
  391. "application/json"
  392. ],
  393. "tags": [
  394. "Authority"
  395. ],
  396. "summary": "分页获取角色列表",
  397. "parameters": [
  398. {
  399. "description": "页码, 每页大小",
  400. "name": "data",
  401. "in": "body",
  402. "required": true,
  403. "schema": {
  404. "$ref": "#/definitions/request.PageInfo"
  405. }
  406. }
  407. ],
  408. "responses": {
  409. "200": {
  410. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  411. "schema": {
  412. "type": "string"
  413. }
  414. }
  415. }
  416. }
  417. },
  418. "/authority/setDataAuthority": {
  419. "post": {
  420. "security": [
  421. {
  422. "ApiKeyAuth": []
  423. }
  424. ],
  425. "consumes": [
  426. "application/json"
  427. ],
  428. "produces": [
  429. "application/json"
  430. ],
  431. "tags": [
  432. "Authority"
  433. ],
  434. "summary": "设置角色资源权限",
  435. "parameters": [
  436. {
  437. "description": "设置角色资源权限",
  438. "name": "data",
  439. "in": "body",
  440. "required": true,
  441. "schema": {
  442. "$ref": "#/definitions/system.SysAuthority"
  443. }
  444. }
  445. ],
  446. "responses": {
  447. "200": {
  448. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  449. "schema": {
  450. "type": "string"
  451. }
  452. }
  453. }
  454. }
  455. },
  456. "/authority/updateAuthority": {
  457. "post": {
  458. "security": [
  459. {
  460. "ApiKeyAuth": []
  461. }
  462. ],
  463. "consumes": [
  464. "application/json"
  465. ],
  466. "produces": [
  467. "application/json"
  468. ],
  469. "tags": [
  470. "Authority"
  471. ],
  472. "summary": "更新角色信息",
  473. "parameters": [
  474. {
  475. "description": "权限id, 权限名, 父角色id",
  476. "name": "data",
  477. "in": "body",
  478. "required": true,
  479. "schema": {
  480. "$ref": "#/definitions/system.SysAuthority"
  481. }
  482. }
  483. ],
  484. "responses": {
  485. "200": {
  486. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  487. "schema": {
  488. "type": "string"
  489. }
  490. }
  491. }
  492. }
  493. },
  494. "/autoCode/createTemp": {
  495. "post": {
  496. "security": [
  497. {
  498. "ApiKeyAuth": []
  499. }
  500. ],
  501. "consumes": [
  502. "application/json"
  503. ],
  504. "produces": [
  505. "application/json"
  506. ],
  507. "tags": [
  508. "AutoCode"
  509. ],
  510. "summary": "自动代码模板",
  511. "parameters": [
  512. {
  513. "description": "创建自动代码",
  514. "name": "data",
  515. "in": "body",
  516. "required": true,
  517. "schema": {
  518. "$ref": "#/definitions/system.AutoCodeStruct"
  519. }
  520. }
  521. ],
  522. "responses": {
  523. "200": {
  524. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  525. "schema": {
  526. "type": "string"
  527. }
  528. }
  529. }
  530. }
  531. },
  532. "/autoCode/delSysHistory": {
  533. "post": {
  534. "security": [
  535. {
  536. "ApiKeyAuth": []
  537. }
  538. ],
  539. "consumes": [
  540. "application/json"
  541. ],
  542. "produces": [
  543. "application/json"
  544. ],
  545. "tags": [
  546. "AutoCode"
  547. ],
  548. "summary": "删除回滚记录",
  549. "parameters": [
  550. {
  551. "description": "删除回滚记录",
  552. "name": "data",
  553. "in": "body",
  554. "required": true,
  555. "schema": {
  556. "$ref": "#/definitions/request.AutoHistoryByID"
  557. }
  558. }
  559. ],
  560. "responses": {
  561. "200": {
  562. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  563. "schema": {
  564. "type": "string"
  565. }
  566. }
  567. }
  568. }
  569. },
  570. "/autoCode/getColumn": {
  571. "get": {
  572. "security": [
  573. {
  574. "ApiKeyAuth": []
  575. }
  576. ],
  577. "consumes": [
  578. "application/json"
  579. ],
  580. "produces": [
  581. "application/json"
  582. ],
  583. "tags": [
  584. "AutoCode"
  585. ],
  586. "summary": "获取当前表所有字段",
  587. "responses": {
  588. "200": {
  589. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  590. "schema": {
  591. "type": "string"
  592. }
  593. }
  594. }
  595. }
  596. },
  597. "/autoCode/getDatabase": {
  598. "get": {
  599. "security": [
  600. {
  601. "ApiKeyAuth": []
  602. }
  603. ],
  604. "consumes": [
  605. "application/json"
  606. ],
  607. "produces": [
  608. "application/json"
  609. ],
  610. "tags": [
  611. "AutoCode"
  612. ],
  613. "summary": "获取当前所有数据库",
  614. "responses": {
  615. "200": {
  616. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  617. "schema": {
  618. "type": "string"
  619. }
  620. }
  621. }
  622. }
  623. },
  624. "/autoCode/getMeta": {
  625. "post": {
  626. "security": [
  627. {
  628. "ApiKeyAuth": []
  629. }
  630. ],
  631. "consumes": [
  632. "application/json"
  633. ],
  634. "produces": [
  635. "application/json"
  636. ],
  637. "tags": [
  638. "AutoCode"
  639. ],
  640. "summary": "回滚",
  641. "parameters": [
  642. {
  643. "description": "获取meta信息",
  644. "name": "data",
  645. "in": "body",
  646. "required": true,
  647. "schema": {
  648. "$ref": "#/definitions/request.AutoHistoryByID"
  649. }
  650. }
  651. ],
  652. "responses": {
  653. "200": {
  654. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  655. "schema": {
  656. "type": "string"
  657. }
  658. }
  659. }
  660. }
  661. },
  662. "/autoCode/getSysHistory": {
  663. "post": {
  664. "security": [
  665. {
  666. "ApiKeyAuth": []
  667. }
  668. ],
  669. "consumes": [
  670. "application/json"
  671. ],
  672. "produces": [
  673. "application/json"
  674. ],
  675. "tags": [
  676. "AutoCode"
  677. ],
  678. "summary": "查询回滚记录",
  679. "parameters": [
  680. {
  681. "description": "查询回滚记录",
  682. "name": "data",
  683. "in": "body",
  684. "required": true,
  685. "schema": {
  686. "$ref": "#/definitions/request.SysAutoHistory"
  687. }
  688. }
  689. ],
  690. "responses": {
  691. "200": {
  692. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  693. "schema": {
  694. "type": "string"
  695. }
  696. }
  697. }
  698. }
  699. },
  700. "/autoCode/getTables": {
  701. "get": {
  702. "security": [
  703. {
  704. "ApiKeyAuth": []
  705. }
  706. ],
  707. "consumes": [
  708. "application/json"
  709. ],
  710. "produces": [
  711. "application/json"
  712. ],
  713. "tags": [
  714. "AutoCode"
  715. ],
  716. "summary": "获取当前数据库所有表",
  717. "responses": {
  718. "200": {
  719. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  720. "schema": {
  721. "type": "string"
  722. }
  723. }
  724. }
  725. }
  726. },
  727. "/autoCode/preview": {
  728. "post": {
  729. "security": [
  730. {
  731. "ApiKeyAuth": []
  732. }
  733. ],
  734. "consumes": [
  735. "application/json"
  736. ],
  737. "produces": [
  738. "application/json"
  739. ],
  740. "tags": [
  741. "AutoCode"
  742. ],
  743. "summary": "预览创建后的代码",
  744. "parameters": [
  745. {
  746. "description": "预览创建代码",
  747. "name": "data",
  748. "in": "body",
  749. "required": true,
  750. "schema": {
  751. "$ref": "#/definitions/system.AutoCodeStruct"
  752. }
  753. }
  754. ],
  755. "responses": {
  756. "200": {
  757. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  758. "schema": {
  759. "type": "string"
  760. }
  761. }
  762. }
  763. }
  764. },
  765. "/autoCode/rollback": {
  766. "post": {
  767. "security": [
  768. {
  769. "ApiKeyAuth": []
  770. }
  771. ],
  772. "consumes": [
  773. "application/json"
  774. ],
  775. "produces": [
  776. "application/json"
  777. ],
  778. "tags": [
  779. "AutoCode"
  780. ],
  781. "summary": "回滚",
  782. "parameters": [
  783. {
  784. "description": "回滚自动生成代码",
  785. "name": "data",
  786. "in": "body",
  787. "required": true,
  788. "schema": {
  789. "$ref": "#/definitions/request.AutoHistoryByID"
  790. }
  791. }
  792. ],
  793. "responses": {
  794. "200": {
  795. "description": "{\"success\":true,\"data\":{},\"msg\":\"回滚成功\"}",
  796. "schema": {
  797. "type": "string"
  798. }
  799. }
  800. }
  801. }
  802. },
  803. "/autoCodeExample/createAutoCodeExample": {
  804. "post": {
  805. "security": [
  806. {
  807. "ApiKeyAuth": []
  808. }
  809. ],
  810. "consumes": [
  811. "application/json"
  812. ],
  813. "produces": [
  814. "application/json"
  815. ],
  816. "tags": [
  817. "AutoCodeExample"
  818. ],
  819. "summary": "创建AutoCodeExample",
  820. "parameters": [
  821. {
  822. "description": "AutoCodeExample模型",
  823. "name": "data",
  824. "in": "body",
  825. "required": true,
  826. "schema": {
  827. "$ref": "#/definitions/autocode.AutoCodeExample"
  828. }
  829. }
  830. ],
  831. "responses": {
  832. "200": {
  833. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  834. "schema": {
  835. "type": "string"
  836. }
  837. }
  838. }
  839. }
  840. },
  841. "/autoCodeExample/deleteAutoCodeExample": {
  842. "delete": {
  843. "security": [
  844. {
  845. "ApiKeyAuth": []
  846. }
  847. ],
  848. "consumes": [
  849. "application/json"
  850. ],
  851. "produces": [
  852. "application/json"
  853. ],
  854. "tags": [
  855. "AutoCodeExample"
  856. ],
  857. "summary": "删除AutoCodeExample",
  858. "parameters": [
  859. {
  860. "description": "AutoCodeExample模型",
  861. "name": "data",
  862. "in": "body",
  863. "required": true,
  864. "schema": {
  865. "$ref": "#/definitions/autocode.AutoCodeExample"
  866. }
  867. }
  868. ],
  869. "responses": {
  870. "200": {
  871. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  872. "schema": {
  873. "type": "string"
  874. }
  875. }
  876. }
  877. }
  878. },
  879. "/autoCodeExample/findAutoCodeExample": {
  880. "get": {
  881. "security": [
  882. {
  883. "ApiKeyAuth": []
  884. }
  885. ],
  886. "consumes": [
  887. "application/json"
  888. ],
  889. "produces": [
  890. "application/json"
  891. ],
  892. "tags": [
  893. "AutoCodeExample"
  894. ],
  895. "summary": "用id查询AutoCodeExample",
  896. "parameters": [
  897. {
  898. "type": "string",
  899. "description": "展示值",
  900. "name": "autoCodeExampleField",
  901. "in": "query"
  902. },
  903. {
  904. "type": "string",
  905. "description": "创建时间",
  906. "name": "createdAt",
  907. "in": "query"
  908. },
  909. {
  910. "type": "integer",
  911. "description": "主键ID",
  912. "name": "id",
  913. "in": "query"
  914. },
  915. {
  916. "type": "string",
  917. "description": "更新时间",
  918. "name": "updatedAt",
  919. "in": "query"
  920. }
  921. ],
  922. "responses": {
  923. "200": {
  924. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  925. "schema": {
  926. "type": "string"
  927. }
  928. }
  929. }
  930. }
  931. },
  932. "/autoCodeExample/getAutoCodeExampleList": {
  933. "get": {
  934. "security": [
  935. {
  936. "ApiKeyAuth": []
  937. }
  938. ],
  939. "consumes": [
  940. "application/json"
  941. ],
  942. "produces": [
  943. "application/json"
  944. ],
  945. "tags": [
  946. "AutoCodeExample"
  947. ],
  948. "summary": "分页获取AutoCodeExample列表",
  949. "parameters": [
  950. {
  951. "type": "string",
  952. "description": "展示值",
  953. "name": "autoCodeExampleField",
  954. "in": "query"
  955. },
  956. {
  957. "type": "string",
  958. "description": "创建时间",
  959. "name": "createdAt",
  960. "in": "query"
  961. },
  962. {
  963. "type": "integer",
  964. "description": "主键ID",
  965. "name": "id",
  966. "in": "query"
  967. },
  968. {
  969. "type": "integer",
  970. "description": "页码",
  971. "name": "page",
  972. "in": "query"
  973. },
  974. {
  975. "type": "integer",
  976. "description": "每页大小",
  977. "name": "pageSize",
  978. "in": "query"
  979. },
  980. {
  981. "type": "string",
  982. "description": "更新时间",
  983. "name": "updatedAt",
  984. "in": "query"
  985. }
  986. ],
  987. "responses": {
  988. "200": {
  989. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  990. "schema": {
  991. "type": "string"
  992. }
  993. }
  994. }
  995. }
  996. },
  997. "/autoCodeExample/updateAutoCodeExample": {
  998. "put": {
  999. "security": [
  1000. {
  1001. "ApiKeyAuth": []
  1002. }
  1003. ],
  1004. "consumes": [
  1005. "application/json"
  1006. ],
  1007. "produces": [
  1008. "application/json"
  1009. ],
  1010. "tags": [
  1011. "AutoCodeExample"
  1012. ],
  1013. "summary": "更新AutoCodeExample",
  1014. "parameters": [
  1015. {
  1016. "description": "更新AutoCodeExample",
  1017. "name": "data",
  1018. "in": "body",
  1019. "required": true,
  1020. "schema": {
  1021. "$ref": "#/definitions/autocode.AutoCodeExample"
  1022. }
  1023. }
  1024. ],
  1025. "responses": {
  1026. "200": {
  1027. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1028. "schema": {
  1029. "type": "string"
  1030. }
  1031. }
  1032. }
  1033. }
  1034. },
  1035. "/base/captcha": {
  1036. "post": {
  1037. "security": [
  1038. {
  1039. "ApiKeyAuth": []
  1040. }
  1041. ],
  1042. "consumes": [
  1043. "application/json"
  1044. ],
  1045. "produces": [
  1046. "application/json"
  1047. ],
  1048. "tags": [
  1049. "Base"
  1050. ],
  1051. "summary": "生成验证码",
  1052. "responses": {
  1053. "200": {
  1054. "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}",
  1055. "schema": {
  1056. "type": "string"
  1057. }
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "/base/login": {
  1063. "post": {
  1064. "produces": [
  1065. "application/json"
  1066. ],
  1067. "tags": [
  1068. "Base"
  1069. ],
  1070. "summary": "用户登录",
  1071. "parameters": [
  1072. {
  1073. "description": "用户名, 密码, 验证码",
  1074. "name": "data",
  1075. "in": "body",
  1076. "required": true,
  1077. "schema": {
  1078. "$ref": "#/definitions/request.Login"
  1079. }
  1080. }
  1081. ],
  1082. "responses": {
  1083. "200": {
  1084. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  1085. "schema": {
  1086. "type": "string"
  1087. }
  1088. }
  1089. }
  1090. }
  1091. },
  1092. "/casbin/UpdateCasbin": {
  1093. "post": {
  1094. "security": [
  1095. {
  1096. "ApiKeyAuth": []
  1097. }
  1098. ],
  1099. "consumes": [
  1100. "application/json"
  1101. ],
  1102. "produces": [
  1103. "application/json"
  1104. ],
  1105. "tags": [
  1106. "Casbin"
  1107. ],
  1108. "summary": "更新角色api权限",
  1109. "parameters": [
  1110. {
  1111. "description": "权限id, 权限模型列表",
  1112. "name": "data",
  1113. "in": "body",
  1114. "required": true,
  1115. "schema": {
  1116. "$ref": "#/definitions/request.CasbinInReceive"
  1117. }
  1118. }
  1119. ],
  1120. "responses": {
  1121. "200": {
  1122. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1123. "schema": {
  1124. "type": "string"
  1125. }
  1126. }
  1127. }
  1128. }
  1129. },
  1130. "/casbin/getPolicyPathByAuthorityId": {
  1131. "post": {
  1132. "security": [
  1133. {
  1134. "ApiKeyAuth": []
  1135. }
  1136. ],
  1137. "consumes": [
  1138. "application/json"
  1139. ],
  1140. "produces": [
  1141. "application/json"
  1142. ],
  1143. "tags": [
  1144. "Casbin"
  1145. ],
  1146. "summary": "获取权限列表",
  1147. "parameters": [
  1148. {
  1149. "description": "权限id, 权限模型列表",
  1150. "name": "data",
  1151. "in": "body",
  1152. "required": true,
  1153. "schema": {
  1154. "$ref": "#/definitions/request.CasbinInReceive"
  1155. }
  1156. }
  1157. ],
  1158. "responses": {
  1159. "200": {
  1160. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1161. "schema": {
  1162. "type": "string"
  1163. }
  1164. }
  1165. }
  1166. }
  1167. },
  1168. "/customer/customer": {
  1169. "get": {
  1170. "security": [
  1171. {
  1172. "ApiKeyAuth": []
  1173. }
  1174. ],
  1175. "consumes": [
  1176. "application/json"
  1177. ],
  1178. "produces": [
  1179. "application/json"
  1180. ],
  1181. "tags": [
  1182. "ExaCustomer"
  1183. ],
  1184. "summary": "获取单一客户信息",
  1185. "parameters": [
  1186. {
  1187. "type": "string",
  1188. "description": "创建时间",
  1189. "name": "createdAt",
  1190. "in": "query"
  1191. },
  1192. {
  1193. "type": "string",
  1194. "description": "客户名",
  1195. "name": "customerName",
  1196. "in": "query"
  1197. },
  1198. {
  1199. "type": "string",
  1200. "description": "客户手机号",
  1201. "name": "customerPhoneData",
  1202. "in": "query"
  1203. },
  1204. {
  1205. "type": "integer",
  1206. "description": "主键ID",
  1207. "name": "id",
  1208. "in": "query"
  1209. },
  1210. {
  1211. "type": "string",
  1212. "description": "管理角色ID",
  1213. "name": "sysUserAuthorityID",
  1214. "in": "query"
  1215. },
  1216. {
  1217. "type": "integer",
  1218. "description": "管理ID",
  1219. "name": "sysUserId",
  1220. "in": "query"
  1221. },
  1222. {
  1223. "type": "string",
  1224. "description": "更新时间",
  1225. "name": "updatedAt",
  1226. "in": "query"
  1227. }
  1228. ],
  1229. "responses": {
  1230. "200": {
  1231. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1232. "schema": {
  1233. "type": "string"
  1234. }
  1235. }
  1236. }
  1237. },
  1238. "put": {
  1239. "security": [
  1240. {
  1241. "ApiKeyAuth": []
  1242. }
  1243. ],
  1244. "consumes": [
  1245. "application/json"
  1246. ],
  1247. "produces": [
  1248. "application/json"
  1249. ],
  1250. "tags": [
  1251. "ExaCustomer"
  1252. ],
  1253. "summary": "更新客户信息",
  1254. "parameters": [
  1255. {
  1256. "description": "客户ID, 客户信息",
  1257. "name": "data",
  1258. "in": "body",
  1259. "required": true,
  1260. "schema": {
  1261. "$ref": "#/definitions/example.ExaCustomer"
  1262. }
  1263. }
  1264. ],
  1265. "responses": {
  1266. "200": {
  1267. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1268. "schema": {
  1269. "type": "string"
  1270. }
  1271. }
  1272. }
  1273. },
  1274. "post": {
  1275. "security": [
  1276. {
  1277. "ApiKeyAuth": []
  1278. }
  1279. ],
  1280. "consumes": [
  1281. "application/json"
  1282. ],
  1283. "produces": [
  1284. "application/json"
  1285. ],
  1286. "tags": [
  1287. "ExaCustomer"
  1288. ],
  1289. "summary": "创建客户",
  1290. "parameters": [
  1291. {
  1292. "description": "客户用户名, 客户手机号码",
  1293. "name": "data",
  1294. "in": "body",
  1295. "required": true,
  1296. "schema": {
  1297. "$ref": "#/definitions/example.ExaCustomer"
  1298. }
  1299. }
  1300. ],
  1301. "responses": {
  1302. "200": {
  1303. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1304. "schema": {
  1305. "type": "string"
  1306. }
  1307. }
  1308. }
  1309. },
  1310. "delete": {
  1311. "security": [
  1312. {
  1313. "ApiKeyAuth": []
  1314. }
  1315. ],
  1316. "consumes": [
  1317. "application/json"
  1318. ],
  1319. "produces": [
  1320. "application/json"
  1321. ],
  1322. "tags": [
  1323. "ExaCustomer"
  1324. ],
  1325. "summary": "删除客户",
  1326. "parameters": [
  1327. {
  1328. "description": "客户ID",
  1329. "name": "data",
  1330. "in": "body",
  1331. "required": true,
  1332. "schema": {
  1333. "$ref": "#/definitions/example.ExaCustomer"
  1334. }
  1335. }
  1336. ],
  1337. "responses": {
  1338. "200": {
  1339. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1340. "schema": {
  1341. "type": "string"
  1342. }
  1343. }
  1344. }
  1345. }
  1346. },
  1347. "/customer/customerList": {
  1348. "get": {
  1349. "security": [
  1350. {
  1351. "ApiKeyAuth": []
  1352. }
  1353. ],
  1354. "consumes": [
  1355. "application/json"
  1356. ],
  1357. "produces": [
  1358. "application/json"
  1359. ],
  1360. "tags": [
  1361. "ExaCustomer"
  1362. ],
  1363. "summary": "分页获取权限客户列表",
  1364. "parameters": [
  1365. {
  1366. "type": "integer",
  1367. "description": "页码",
  1368. "name": "page",
  1369. "in": "query"
  1370. },
  1371. {
  1372. "type": "integer",
  1373. "description": "每页大小",
  1374. "name": "pageSize",
  1375. "in": "query"
  1376. }
  1377. ],
  1378. "responses": {
  1379. "200": {
  1380. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1381. "schema": {
  1382. "type": "string"
  1383. }
  1384. }
  1385. }
  1386. }
  1387. },
  1388. "/email/emailTest": {
  1389. "post": {
  1390. "security": [
  1391. {
  1392. "ApiKeyAuth": []
  1393. }
  1394. ],
  1395. "produces": [
  1396. "application/json"
  1397. ],
  1398. "tags": [
  1399. "System"
  1400. ],
  1401. "summary": "发送测试邮件",
  1402. "responses": {
  1403. "200": {
  1404. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  1405. "schema": {
  1406. "type": "string"
  1407. }
  1408. }
  1409. }
  1410. }
  1411. },
  1412. "/email/sendEmail": {
  1413. "post": {
  1414. "security": [
  1415. {
  1416. "ApiKeyAuth": []
  1417. }
  1418. ],
  1419. "produces": [
  1420. "application/json"
  1421. ],
  1422. "tags": [
  1423. "System"
  1424. ],
  1425. "summary": "发送邮件",
  1426. "parameters": [
  1427. {
  1428. "description": "发送邮件必须的参数",
  1429. "name": "data",
  1430. "in": "body",
  1431. "required": true,
  1432. "schema": {
  1433. "$ref": "#/definitions/response.Email"
  1434. }
  1435. }
  1436. ],
  1437. "responses": {
  1438. "200": {
  1439. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  1440. "schema": {
  1441. "type": "string"
  1442. }
  1443. }
  1444. }
  1445. }
  1446. },
  1447. "/excel/downloadTemplate": {
  1448. "get": {
  1449. "security": [
  1450. {
  1451. "ApiKeyAuth": []
  1452. }
  1453. ],
  1454. "consumes": [
  1455. "multipart/form-data"
  1456. ],
  1457. "produces": [
  1458. "application/json"
  1459. ],
  1460. "tags": [
  1461. "excel"
  1462. ],
  1463. "summary": "下载模板",
  1464. "parameters": [
  1465. {
  1466. "type": "string",
  1467. "description": "模板名称",
  1468. "name": "fileName",
  1469. "in": "query",
  1470. "required": true
  1471. }
  1472. ],
  1473. "responses": {
  1474. "200": {
  1475. "description": ""
  1476. }
  1477. }
  1478. }
  1479. },
  1480. "/excel/exportExcel": {
  1481. "post": {
  1482. "security": [
  1483. {
  1484. "ApiKeyAuth": []
  1485. }
  1486. ],
  1487. "consumes": [
  1488. "application/json"
  1489. ],
  1490. "produces": [
  1491. "application/octet-stream"
  1492. ],
  1493. "tags": [
  1494. "excel"
  1495. ],
  1496. "summary": "导出Excel",
  1497. "parameters": [
  1498. {
  1499. "description": "导出Excel文件信息",
  1500. "name": "data",
  1501. "in": "body",
  1502. "required": true,
  1503. "schema": {
  1504. "$ref": "#/definitions/example.ExcelInfo"
  1505. }
  1506. }
  1507. ],
  1508. "responses": {
  1509. "200": {
  1510. "description": ""
  1511. }
  1512. }
  1513. }
  1514. },
  1515. "/excel/importExcel": {
  1516. "post": {
  1517. "security": [
  1518. {
  1519. "ApiKeyAuth": []
  1520. }
  1521. ],
  1522. "consumes": [
  1523. "multipart/form-data"
  1524. ],
  1525. "produces": [
  1526. "application/json"
  1527. ],
  1528. "tags": [
  1529. "excel"
  1530. ],
  1531. "summary": "导入Excel文件",
  1532. "parameters": [
  1533. {
  1534. "type": "file",
  1535. "description": "导入Excel文件",
  1536. "name": "file",
  1537. "in": "formData",
  1538. "required": true
  1539. }
  1540. ],
  1541. "responses": {
  1542. "200": {
  1543. "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}",
  1544. "schema": {
  1545. "type": "string"
  1546. }
  1547. }
  1548. }
  1549. }
  1550. },
  1551. "/excel/loadExcel": {
  1552. "get": {
  1553. "security": [
  1554. {
  1555. "ApiKeyAuth": []
  1556. }
  1557. ],
  1558. "produces": [
  1559. "application/json"
  1560. ],
  1561. "tags": [
  1562. "excel"
  1563. ],
  1564. "summary": "加载Excel数据",
  1565. "responses": {
  1566. "200": {
  1567. "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}",
  1568. "schema": {
  1569. "type": "string"
  1570. }
  1571. }
  1572. }
  1573. }
  1574. },
  1575. "/fileUploadAndDownload/breakpointContinue": {
  1576. "post": {
  1577. "security": [
  1578. {
  1579. "ApiKeyAuth": []
  1580. }
  1581. ],
  1582. "consumes": [
  1583. "multipart/form-data"
  1584. ],
  1585. "produces": [
  1586. "application/json"
  1587. ],
  1588. "tags": [
  1589. "ExaFileUploadAndDownload"
  1590. ],
  1591. "summary": "断点续传到服务器",
  1592. "parameters": [
  1593. {
  1594. "type": "file",
  1595. "description": "an example for breakpoint resume, 断点续传示例",
  1596. "name": "file",
  1597. "in": "formData",
  1598. "required": true
  1599. }
  1600. ],
  1601. "responses": {
  1602. "200": {
  1603. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1604. "schema": {
  1605. "type": "string"
  1606. }
  1607. }
  1608. }
  1609. }
  1610. },
  1611. "/fileUploadAndDownload/deleteFile": {
  1612. "post": {
  1613. "security": [
  1614. {
  1615. "ApiKeyAuth": []
  1616. }
  1617. ],
  1618. "produces": [
  1619. "application/json"
  1620. ],
  1621. "tags": [
  1622. "ExaFileUploadAndDownload"
  1623. ],
  1624. "summary": "删除文件",
  1625. "parameters": [
  1626. {
  1627. "description": "传入文件里面id即可",
  1628. "name": "data",
  1629. "in": "body",
  1630. "required": true,
  1631. "schema": {
  1632. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  1633. }
  1634. }
  1635. ],
  1636. "responses": {
  1637. "200": {
  1638. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1639. "schema": {
  1640. "type": "string"
  1641. }
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "/fileUploadAndDownload/findFile": {
  1647. "post": {
  1648. "security": [
  1649. {
  1650. "ApiKeyAuth": []
  1651. }
  1652. ],
  1653. "consumes": [
  1654. "multipart/form-data"
  1655. ],
  1656. "produces": [
  1657. "application/json"
  1658. ],
  1659. "tags": [
  1660. "ExaFileUploadAndDownload"
  1661. ],
  1662. "summary": "创建文件",
  1663. "parameters": [
  1664. {
  1665. "type": "file",
  1666. "description": "上传文件完成",
  1667. "name": "file",
  1668. "in": "formData",
  1669. "required": true
  1670. }
  1671. ],
  1672. "responses": {
  1673. "200": {
  1674. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  1675. "schema": {
  1676. "type": "string"
  1677. }
  1678. }
  1679. }
  1680. }
  1681. },
  1682. "/fileUploadAndDownload/getFileList": {
  1683. "post": {
  1684. "security": [
  1685. {
  1686. "ApiKeyAuth": []
  1687. }
  1688. ],
  1689. "consumes": [
  1690. "application/json"
  1691. ],
  1692. "produces": [
  1693. "application/json"
  1694. ],
  1695. "tags": [
  1696. "ExaFileUploadAndDownload"
  1697. ],
  1698. "summary": "分页文件列表",
  1699. "parameters": [
  1700. {
  1701. "description": "页码, 每页大小",
  1702. "name": "data",
  1703. "in": "body",
  1704. "required": true,
  1705. "schema": {
  1706. "$ref": "#/definitions/request.PageInfo"
  1707. }
  1708. }
  1709. ],
  1710. "responses": {
  1711. "200": {
  1712. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1713. "schema": {
  1714. "type": "string"
  1715. }
  1716. }
  1717. }
  1718. }
  1719. },
  1720. "/fileUploadAndDownload/removeChunk": {
  1721. "post": {
  1722. "security": [
  1723. {
  1724. "ApiKeyAuth": []
  1725. }
  1726. ],
  1727. "consumes": [
  1728. "multipart/form-data"
  1729. ],
  1730. "produces": [
  1731. "application/json"
  1732. ],
  1733. "tags": [
  1734. "ExaFileUploadAndDownload"
  1735. ],
  1736. "summary": "删除切片",
  1737. "parameters": [
  1738. {
  1739. "type": "file",
  1740. "description": "删除缓存切片",
  1741. "name": "file",
  1742. "in": "formData",
  1743. "required": true
  1744. }
  1745. ],
  1746. "responses": {
  1747. "200": {
  1748. "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}",
  1749. "schema": {
  1750. "type": "string"
  1751. }
  1752. }
  1753. }
  1754. }
  1755. },
  1756. "/fileUploadAndDownload/upload": {
  1757. "post": {
  1758. "security": [
  1759. {
  1760. "ApiKeyAuth": []
  1761. }
  1762. ],
  1763. "consumes": [
  1764. "multipart/form-data"
  1765. ],
  1766. "produces": [
  1767. "application/json"
  1768. ],
  1769. "tags": [
  1770. "ExaFileUploadAndDownload"
  1771. ],
  1772. "summary": "上传文件示例",
  1773. "parameters": [
  1774. {
  1775. "type": "file",
  1776. "description": "上传文件示例",
  1777. "name": "file",
  1778. "in": "formData",
  1779. "required": true
  1780. }
  1781. ],
  1782. "responses": {
  1783. "200": {
  1784. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1785. "schema": {
  1786. "type": "string"
  1787. }
  1788. }
  1789. }
  1790. }
  1791. },
  1792. "/init/checkdb": {
  1793. "post": {
  1794. "produces": [
  1795. "application/json"
  1796. ],
  1797. "tags": [
  1798. "CheckDB"
  1799. ],
  1800. "summary": "初始化用户数据库",
  1801. "responses": {
  1802. "200": {
  1803. "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}",
  1804. "schema": {
  1805. "type": "string"
  1806. }
  1807. }
  1808. }
  1809. }
  1810. },
  1811. "/init/initdb": {
  1812. "post": {
  1813. "produces": [
  1814. "application/json"
  1815. ],
  1816. "tags": [
  1817. "InitDB"
  1818. ],
  1819. "summary": "初始化用户数据库",
  1820. "parameters": [
  1821. {
  1822. "description": "初始化数据库参数",
  1823. "name": "data",
  1824. "in": "body",
  1825. "required": true,
  1826. "schema": {
  1827. "$ref": "#/definitions/request.InitDB"
  1828. }
  1829. }
  1830. ],
  1831. "responses": {
  1832. "200": {
  1833. "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}",
  1834. "schema": {
  1835. "type": "string"
  1836. }
  1837. }
  1838. }
  1839. }
  1840. },
  1841. "/jwt/jsonInBlacklist": {
  1842. "post": {
  1843. "security": [
  1844. {
  1845. "ApiKeyAuth": []
  1846. }
  1847. ],
  1848. "consumes": [
  1849. "application/json"
  1850. ],
  1851. "produces": [
  1852. "application/json"
  1853. ],
  1854. "tags": [
  1855. "Jwt"
  1856. ],
  1857. "summary": "jwt加入黑名单",
  1858. "responses": {
  1859. "200": {
  1860. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1861. "schema": {
  1862. "type": "string"
  1863. }
  1864. }
  1865. }
  1866. }
  1867. },
  1868. "/menu/addBaseMenu": {
  1869. "post": {
  1870. "security": [
  1871. {
  1872. "ApiKeyAuth": []
  1873. }
  1874. ],
  1875. "consumes": [
  1876. "application/json"
  1877. ],
  1878. "produces": [
  1879. "application/json"
  1880. ],
  1881. "tags": [
  1882. "Menu"
  1883. ],
  1884. "summary": "新增菜单",
  1885. "parameters": [
  1886. {
  1887. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1888. "name": "data",
  1889. "in": "body",
  1890. "required": true,
  1891. "schema": {
  1892. "$ref": "#/definitions/system.SysBaseMenu"
  1893. }
  1894. }
  1895. ],
  1896. "responses": {
  1897. "200": {
  1898. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1899. "schema": {
  1900. "type": "string"
  1901. }
  1902. }
  1903. }
  1904. }
  1905. },
  1906. "/menu/addMenuAuthority": {
  1907. "post": {
  1908. "security": [
  1909. {
  1910. "ApiKeyAuth": []
  1911. }
  1912. ],
  1913. "consumes": [
  1914. "application/json"
  1915. ],
  1916. "produces": [
  1917. "application/json"
  1918. ],
  1919. "tags": [
  1920. "AuthorityMenu"
  1921. ],
  1922. "summary": "增加menu和角色关联关系",
  1923. "parameters": [
  1924. {
  1925. "description": "角色ID",
  1926. "name": "data",
  1927. "in": "body",
  1928. "required": true,
  1929. "schema": {
  1930. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1931. }
  1932. }
  1933. ],
  1934. "responses": {
  1935. "200": {
  1936. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1937. "schema": {
  1938. "type": "string"
  1939. }
  1940. }
  1941. }
  1942. }
  1943. },
  1944. "/menu/deleteBaseMenu": {
  1945. "post": {
  1946. "security": [
  1947. {
  1948. "ApiKeyAuth": []
  1949. }
  1950. ],
  1951. "consumes": [
  1952. "application/json"
  1953. ],
  1954. "produces": [
  1955. "application/json"
  1956. ],
  1957. "tags": [
  1958. "Menu"
  1959. ],
  1960. "summary": "删除菜单",
  1961. "parameters": [
  1962. {
  1963. "description": "菜单id",
  1964. "name": "data",
  1965. "in": "body",
  1966. "required": true,
  1967. "schema": {
  1968. "$ref": "#/definitions/request.GetById"
  1969. }
  1970. }
  1971. ],
  1972. "responses": {
  1973. "200": {
  1974. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1975. "schema": {
  1976. "type": "string"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "/menu/getBaseMenuById": {
  1983. "post": {
  1984. "security": [
  1985. {
  1986. "ApiKeyAuth": []
  1987. }
  1988. ],
  1989. "consumes": [
  1990. "application/json"
  1991. ],
  1992. "produces": [
  1993. "application/json"
  1994. ],
  1995. "tags": [
  1996. "Menu"
  1997. ],
  1998. "summary": "根据id获取菜单",
  1999. "parameters": [
  2000. {
  2001. "description": "菜单id",
  2002. "name": "data",
  2003. "in": "body",
  2004. "required": true,
  2005. "schema": {
  2006. "$ref": "#/definitions/request.GetById"
  2007. }
  2008. }
  2009. ],
  2010. "responses": {
  2011. "200": {
  2012. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2013. "schema": {
  2014. "type": "string"
  2015. }
  2016. }
  2017. }
  2018. }
  2019. },
  2020. "/menu/getBaseMenuTree": {
  2021. "post": {
  2022. "security": [
  2023. {
  2024. "ApiKeyAuth": []
  2025. }
  2026. ],
  2027. "produces": [
  2028. "application/json"
  2029. ],
  2030. "tags": [
  2031. "AuthorityMenu"
  2032. ],
  2033. "summary": "获取用户动态路由",
  2034. "parameters": [
  2035. {
  2036. "description": "空",
  2037. "name": "data",
  2038. "in": "body",
  2039. "required": true,
  2040. "schema": {
  2041. "$ref": "#/definitions/request.Empty"
  2042. }
  2043. }
  2044. ],
  2045. "responses": {
  2046. "200": {
  2047. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2048. "schema": {
  2049. "type": "string"
  2050. }
  2051. }
  2052. }
  2053. }
  2054. },
  2055. "/menu/getMenu": {
  2056. "post": {
  2057. "security": [
  2058. {
  2059. "ApiKeyAuth": []
  2060. }
  2061. ],
  2062. "produces": [
  2063. "application/json"
  2064. ],
  2065. "tags": [
  2066. "AuthorityMenu"
  2067. ],
  2068. "summary": "获取用户动态路由",
  2069. "parameters": [
  2070. {
  2071. "description": "空",
  2072. "name": "data",
  2073. "in": "body",
  2074. "required": true,
  2075. "schema": {
  2076. "$ref": "#/definitions/request.Empty"
  2077. }
  2078. }
  2079. ],
  2080. "responses": {
  2081. "200": {
  2082. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2083. "schema": {
  2084. "type": "string"
  2085. }
  2086. }
  2087. }
  2088. }
  2089. },
  2090. "/menu/getMenuAuthority": {
  2091. "post": {
  2092. "security": [
  2093. {
  2094. "ApiKeyAuth": []
  2095. }
  2096. ],
  2097. "consumes": [
  2098. "application/json"
  2099. ],
  2100. "produces": [
  2101. "application/json"
  2102. ],
  2103. "tags": [
  2104. "AuthorityMenu"
  2105. ],
  2106. "summary": "获取指定角色menu",
  2107. "parameters": [
  2108. {
  2109. "description": "角色ID",
  2110. "name": "data",
  2111. "in": "body",
  2112. "required": true,
  2113. "schema": {
  2114. "$ref": "#/definitions/request.GetAuthorityId"
  2115. }
  2116. }
  2117. ],
  2118. "responses": {
  2119. "200": {
  2120. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2121. "schema": {
  2122. "type": "string"
  2123. }
  2124. }
  2125. }
  2126. }
  2127. },
  2128. "/menu/getMenuList": {
  2129. "post": {
  2130. "security": [
  2131. {
  2132. "ApiKeyAuth": []
  2133. }
  2134. ],
  2135. "consumes": [
  2136. "application/json"
  2137. ],
  2138. "produces": [
  2139. "application/json"
  2140. ],
  2141. "tags": [
  2142. "Menu"
  2143. ],
  2144. "summary": "分页获取基础menu列表",
  2145. "parameters": [
  2146. {
  2147. "description": "页码, 每页大小",
  2148. "name": "data",
  2149. "in": "body",
  2150. "required": true,
  2151. "schema": {
  2152. "$ref": "#/definitions/request.PageInfo"
  2153. }
  2154. }
  2155. ],
  2156. "responses": {
  2157. "200": {
  2158. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2159. "schema": {
  2160. "type": "string"
  2161. }
  2162. }
  2163. }
  2164. }
  2165. },
  2166. "/menu/updateBaseMenu": {
  2167. "post": {
  2168. "security": [
  2169. {
  2170. "ApiKeyAuth": []
  2171. }
  2172. ],
  2173. "consumes": [
  2174. "application/json"
  2175. ],
  2176. "produces": [
  2177. "application/json"
  2178. ],
  2179. "tags": [
  2180. "Menu"
  2181. ],
  2182. "summary": "更新菜单",
  2183. "parameters": [
  2184. {
  2185. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2186. "name": "data",
  2187. "in": "body",
  2188. "required": true,
  2189. "schema": {
  2190. "$ref": "#/definitions/system.SysBaseMenu"
  2191. }
  2192. }
  2193. ],
  2194. "responses": {
  2195. "200": {
  2196. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2197. "schema": {
  2198. "type": "string"
  2199. }
  2200. }
  2201. }
  2202. }
  2203. },
  2204. "/sysDictionary/createSysDictionary": {
  2205. "post": {
  2206. "security": [
  2207. {
  2208. "ApiKeyAuth": []
  2209. }
  2210. ],
  2211. "consumes": [
  2212. "application/json"
  2213. ],
  2214. "produces": [
  2215. "application/json"
  2216. ],
  2217. "tags": [
  2218. "SysDictionary"
  2219. ],
  2220. "summary": "创建SysDictionary",
  2221. "parameters": [
  2222. {
  2223. "description": "SysDictionary模型",
  2224. "name": "data",
  2225. "in": "body",
  2226. "required": true,
  2227. "schema": {
  2228. "$ref": "#/definitions/system.SysDictionary"
  2229. }
  2230. }
  2231. ],
  2232. "responses": {
  2233. "200": {
  2234. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2235. "schema": {
  2236. "type": "string"
  2237. }
  2238. }
  2239. }
  2240. }
  2241. },
  2242. "/sysDictionary/deleteSysDictionary": {
  2243. "delete": {
  2244. "security": [
  2245. {
  2246. "ApiKeyAuth": []
  2247. }
  2248. ],
  2249. "consumes": [
  2250. "application/json"
  2251. ],
  2252. "produces": [
  2253. "application/json"
  2254. ],
  2255. "tags": [
  2256. "SysDictionary"
  2257. ],
  2258. "summary": "删除SysDictionary",
  2259. "parameters": [
  2260. {
  2261. "description": "SysDictionary模型",
  2262. "name": "data",
  2263. "in": "body",
  2264. "required": true,
  2265. "schema": {
  2266. "$ref": "#/definitions/system.SysDictionary"
  2267. }
  2268. }
  2269. ],
  2270. "responses": {
  2271. "200": {
  2272. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2273. "schema": {
  2274. "type": "string"
  2275. }
  2276. }
  2277. }
  2278. }
  2279. },
  2280. "/sysDictionary/findSysDictionary": {
  2281. "get": {
  2282. "security": [
  2283. {
  2284. "ApiKeyAuth": []
  2285. }
  2286. ],
  2287. "consumes": [
  2288. "application/json"
  2289. ],
  2290. "produces": [
  2291. "application/json"
  2292. ],
  2293. "tags": [
  2294. "SysDictionary"
  2295. ],
  2296. "summary": "用id查询SysDictionary",
  2297. "parameters": [
  2298. {
  2299. "type": "string",
  2300. "description": "创建时间",
  2301. "name": "createdAt",
  2302. "in": "query"
  2303. },
  2304. {
  2305. "type": "string",
  2306. "description": "描述",
  2307. "name": "desc",
  2308. "in": "query"
  2309. },
  2310. {
  2311. "type": "integer",
  2312. "description": "主键ID",
  2313. "name": "id",
  2314. "in": "query"
  2315. },
  2316. {
  2317. "type": "string",
  2318. "description": "字典名(中)",
  2319. "name": "name",
  2320. "in": "query"
  2321. },
  2322. {
  2323. "type": "boolean",
  2324. "description": "状态",
  2325. "name": "status",
  2326. "in": "query"
  2327. },
  2328. {
  2329. "type": "string",
  2330. "description": "字典名(英)",
  2331. "name": "type",
  2332. "in": "query"
  2333. },
  2334. {
  2335. "type": "string",
  2336. "description": "更新时间",
  2337. "name": "updatedAt",
  2338. "in": "query"
  2339. }
  2340. ],
  2341. "responses": {
  2342. "200": {
  2343. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2344. "schema": {
  2345. "type": "string"
  2346. }
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "/sysDictionary/getSysDictionaryList": {
  2352. "get": {
  2353. "security": [
  2354. {
  2355. "ApiKeyAuth": []
  2356. }
  2357. ],
  2358. "consumes": [
  2359. "application/json"
  2360. ],
  2361. "produces": [
  2362. "application/json"
  2363. ],
  2364. "tags": [
  2365. "SysDictionary"
  2366. ],
  2367. "summary": "分页获取SysDictionary列表",
  2368. "parameters": [
  2369. {
  2370. "type": "string",
  2371. "description": "创建时间",
  2372. "name": "createdAt",
  2373. "in": "query"
  2374. },
  2375. {
  2376. "type": "string",
  2377. "description": "描述",
  2378. "name": "desc",
  2379. "in": "query"
  2380. },
  2381. {
  2382. "type": "integer",
  2383. "description": "主键ID",
  2384. "name": "id",
  2385. "in": "query"
  2386. },
  2387. {
  2388. "type": "string",
  2389. "description": "字典名(中)",
  2390. "name": "name",
  2391. "in": "query"
  2392. },
  2393. {
  2394. "type": "integer",
  2395. "description": "页码",
  2396. "name": "page",
  2397. "in": "query"
  2398. },
  2399. {
  2400. "type": "integer",
  2401. "description": "每页大小",
  2402. "name": "pageSize",
  2403. "in": "query"
  2404. },
  2405. {
  2406. "type": "boolean",
  2407. "description": "状态",
  2408. "name": "status",
  2409. "in": "query"
  2410. },
  2411. {
  2412. "type": "string",
  2413. "description": "字典名(英)",
  2414. "name": "type",
  2415. "in": "query"
  2416. },
  2417. {
  2418. "type": "string",
  2419. "description": "更新时间",
  2420. "name": "updatedAt",
  2421. "in": "query"
  2422. }
  2423. ],
  2424. "responses": {
  2425. "200": {
  2426. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2427. "schema": {
  2428. "type": "string"
  2429. }
  2430. }
  2431. }
  2432. }
  2433. },
  2434. "/sysDictionary/updateSysDictionary": {
  2435. "put": {
  2436. "security": [
  2437. {
  2438. "ApiKeyAuth": []
  2439. }
  2440. ],
  2441. "consumes": [
  2442. "application/json"
  2443. ],
  2444. "produces": [
  2445. "application/json"
  2446. ],
  2447. "tags": [
  2448. "SysDictionary"
  2449. ],
  2450. "summary": "更新SysDictionary",
  2451. "parameters": [
  2452. {
  2453. "description": "SysDictionary模型",
  2454. "name": "data",
  2455. "in": "body",
  2456. "required": true,
  2457. "schema": {
  2458. "$ref": "#/definitions/system.SysDictionary"
  2459. }
  2460. }
  2461. ],
  2462. "responses": {
  2463. "200": {
  2464. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2465. "schema": {
  2466. "type": "string"
  2467. }
  2468. }
  2469. }
  2470. }
  2471. },
  2472. "/sysDictionaryDetail/createSysDictionaryDetail": {
  2473. "post": {
  2474. "security": [
  2475. {
  2476. "ApiKeyAuth": []
  2477. }
  2478. ],
  2479. "consumes": [
  2480. "application/json"
  2481. ],
  2482. "produces": [
  2483. "application/json"
  2484. ],
  2485. "tags": [
  2486. "SysDictionaryDetail"
  2487. ],
  2488. "summary": "创建SysDictionaryDetail",
  2489. "parameters": [
  2490. {
  2491. "description": "SysDictionaryDetail模型",
  2492. "name": "data",
  2493. "in": "body",
  2494. "required": true,
  2495. "schema": {
  2496. "$ref": "#/definitions/system.SysDictionaryDetail"
  2497. }
  2498. }
  2499. ],
  2500. "responses": {
  2501. "200": {
  2502. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2503. "schema": {
  2504. "type": "string"
  2505. }
  2506. }
  2507. }
  2508. }
  2509. },
  2510. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  2511. "delete": {
  2512. "security": [
  2513. {
  2514. "ApiKeyAuth": []
  2515. }
  2516. ],
  2517. "consumes": [
  2518. "application/json"
  2519. ],
  2520. "produces": [
  2521. "application/json"
  2522. ],
  2523. "tags": [
  2524. "SysDictionaryDetail"
  2525. ],
  2526. "summary": "删除SysDictionaryDetail",
  2527. "parameters": [
  2528. {
  2529. "description": "SysDictionaryDetail模型",
  2530. "name": "data",
  2531. "in": "body",
  2532. "required": true,
  2533. "schema": {
  2534. "$ref": "#/definitions/system.SysDictionaryDetail"
  2535. }
  2536. }
  2537. ],
  2538. "responses": {
  2539. "200": {
  2540. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2541. "schema": {
  2542. "type": "string"
  2543. }
  2544. }
  2545. }
  2546. }
  2547. },
  2548. "/sysDictionaryDetail/findSysDictionaryDetail": {
  2549. "get": {
  2550. "security": [
  2551. {
  2552. "ApiKeyAuth": []
  2553. }
  2554. ],
  2555. "consumes": [
  2556. "application/json"
  2557. ],
  2558. "produces": [
  2559. "application/json"
  2560. ],
  2561. "tags": [
  2562. "SysDictionaryDetail"
  2563. ],
  2564. "summary": "用id查询SysDictionaryDetail",
  2565. "parameters": [
  2566. {
  2567. "type": "string",
  2568. "description": "创建时间",
  2569. "name": "createdAt",
  2570. "in": "query"
  2571. },
  2572. {
  2573. "type": "integer",
  2574. "description": "主键ID",
  2575. "name": "id",
  2576. "in": "query"
  2577. },
  2578. {
  2579. "type": "string",
  2580. "description": "展示值",
  2581. "name": "label",
  2582. "in": "query"
  2583. },
  2584. {
  2585. "type": "integer",
  2586. "description": "排序标记",
  2587. "name": "sort",
  2588. "in": "query"
  2589. },
  2590. {
  2591. "type": "boolean",
  2592. "description": "启用状态",
  2593. "name": "status",
  2594. "in": "query"
  2595. },
  2596. {
  2597. "type": "integer",
  2598. "description": "关联标记",
  2599. "name": "sysDictionaryID",
  2600. "in": "query"
  2601. },
  2602. {
  2603. "type": "string",
  2604. "description": "更新时间",
  2605. "name": "updatedAt",
  2606. "in": "query"
  2607. },
  2608. {
  2609. "type": "integer",
  2610. "description": "字典值",
  2611. "name": "value",
  2612. "in": "query"
  2613. }
  2614. ],
  2615. "responses": {
  2616. "200": {
  2617. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2618. "schema": {
  2619. "type": "string"
  2620. }
  2621. }
  2622. }
  2623. }
  2624. },
  2625. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  2626. "get": {
  2627. "security": [
  2628. {
  2629. "ApiKeyAuth": []
  2630. }
  2631. ],
  2632. "consumes": [
  2633. "application/json"
  2634. ],
  2635. "produces": [
  2636. "application/json"
  2637. ],
  2638. "tags": [
  2639. "SysDictionaryDetail"
  2640. ],
  2641. "summary": "分页获取SysDictionaryDetail列表",
  2642. "parameters": [
  2643. {
  2644. "type": "string",
  2645. "description": "创建时间",
  2646. "name": "createdAt",
  2647. "in": "query"
  2648. },
  2649. {
  2650. "type": "integer",
  2651. "description": "主键ID",
  2652. "name": "id",
  2653. "in": "query"
  2654. },
  2655. {
  2656. "type": "string",
  2657. "description": "展示值",
  2658. "name": "label",
  2659. "in": "query"
  2660. },
  2661. {
  2662. "type": "integer",
  2663. "description": "页码",
  2664. "name": "page",
  2665. "in": "query"
  2666. },
  2667. {
  2668. "type": "integer",
  2669. "description": "每页大小",
  2670. "name": "pageSize",
  2671. "in": "query"
  2672. },
  2673. {
  2674. "type": "integer",
  2675. "description": "排序标记",
  2676. "name": "sort",
  2677. "in": "query"
  2678. },
  2679. {
  2680. "type": "boolean",
  2681. "description": "启用状态",
  2682. "name": "status",
  2683. "in": "query"
  2684. },
  2685. {
  2686. "type": "integer",
  2687. "description": "关联标记",
  2688. "name": "sysDictionaryID",
  2689. "in": "query"
  2690. },
  2691. {
  2692. "type": "string",
  2693. "description": "更新时间",
  2694. "name": "updatedAt",
  2695. "in": "query"
  2696. },
  2697. {
  2698. "type": "integer",
  2699. "description": "字典值",
  2700. "name": "value",
  2701. "in": "query"
  2702. }
  2703. ],
  2704. "responses": {
  2705. "200": {
  2706. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2707. "schema": {
  2708. "type": "string"
  2709. }
  2710. }
  2711. }
  2712. }
  2713. },
  2714. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  2715. "put": {
  2716. "security": [
  2717. {
  2718. "ApiKeyAuth": []
  2719. }
  2720. ],
  2721. "consumes": [
  2722. "application/json"
  2723. ],
  2724. "produces": [
  2725. "application/json"
  2726. ],
  2727. "tags": [
  2728. "SysDictionaryDetail"
  2729. ],
  2730. "summary": "更新SysDictionaryDetail",
  2731. "parameters": [
  2732. {
  2733. "description": "更新SysDictionaryDetail",
  2734. "name": "data",
  2735. "in": "body",
  2736. "required": true,
  2737. "schema": {
  2738. "$ref": "#/definitions/system.SysDictionaryDetail"
  2739. }
  2740. }
  2741. ],
  2742. "responses": {
  2743. "200": {
  2744. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2745. "schema": {
  2746. "type": "string"
  2747. }
  2748. }
  2749. }
  2750. }
  2751. },
  2752. "/sysOperationRecord/createSysOperationRecord": {
  2753. "post": {
  2754. "security": [
  2755. {
  2756. "ApiKeyAuth": []
  2757. }
  2758. ],
  2759. "consumes": [
  2760. "application/json"
  2761. ],
  2762. "produces": [
  2763. "application/json"
  2764. ],
  2765. "tags": [
  2766. "SysOperationRecord"
  2767. ],
  2768. "summary": "创建SysOperationRecord",
  2769. "parameters": [
  2770. {
  2771. "description": "创建SysOperationRecord",
  2772. "name": "data",
  2773. "in": "body",
  2774. "required": true,
  2775. "schema": {
  2776. "$ref": "#/definitions/system.SysOperationRecord"
  2777. }
  2778. }
  2779. ],
  2780. "responses": {
  2781. "200": {
  2782. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2783. "schema": {
  2784. "type": "string"
  2785. }
  2786. }
  2787. }
  2788. }
  2789. },
  2790. "/sysOperationRecord/deleteSysOperationRecord": {
  2791. "delete": {
  2792. "security": [
  2793. {
  2794. "ApiKeyAuth": []
  2795. }
  2796. ],
  2797. "consumes": [
  2798. "application/json"
  2799. ],
  2800. "produces": [
  2801. "application/json"
  2802. ],
  2803. "tags": [
  2804. "SysOperationRecord"
  2805. ],
  2806. "summary": "删除SysOperationRecord",
  2807. "parameters": [
  2808. {
  2809. "description": "SysOperationRecord模型",
  2810. "name": "data",
  2811. "in": "body",
  2812. "required": true,
  2813. "schema": {
  2814. "$ref": "#/definitions/system.SysOperationRecord"
  2815. }
  2816. }
  2817. ],
  2818. "responses": {
  2819. "200": {
  2820. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2821. "schema": {
  2822. "type": "string"
  2823. }
  2824. }
  2825. }
  2826. }
  2827. },
  2828. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2829. "delete": {
  2830. "security": [
  2831. {
  2832. "ApiKeyAuth": []
  2833. }
  2834. ],
  2835. "consumes": [
  2836. "application/json"
  2837. ],
  2838. "produces": [
  2839. "application/json"
  2840. ],
  2841. "tags": [
  2842. "SysOperationRecord"
  2843. ],
  2844. "summary": "批量删除SysOperationRecord",
  2845. "parameters": [
  2846. {
  2847. "description": "批量删除SysOperationRecord",
  2848. "name": "data",
  2849. "in": "body",
  2850. "required": true,
  2851. "schema": {
  2852. "$ref": "#/definitions/request.IdsReq"
  2853. }
  2854. }
  2855. ],
  2856. "responses": {
  2857. "200": {
  2858. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  2859. "schema": {
  2860. "type": "string"
  2861. }
  2862. }
  2863. }
  2864. }
  2865. },
  2866. "/sysOperationRecord/findSysOperationRecord": {
  2867. "get": {
  2868. "security": [
  2869. {
  2870. "ApiKeyAuth": []
  2871. }
  2872. ],
  2873. "consumes": [
  2874. "application/json"
  2875. ],
  2876. "produces": [
  2877. "application/json"
  2878. ],
  2879. "tags": [
  2880. "SysOperationRecord"
  2881. ],
  2882. "summary": "用id查询SysOperationRecord",
  2883. "parameters": [
  2884. {
  2885. "type": "string",
  2886. "description": "代理",
  2887. "name": "agent",
  2888. "in": "query"
  2889. },
  2890. {
  2891. "type": "string",
  2892. "description": "请求Body",
  2893. "name": "body",
  2894. "in": "query"
  2895. },
  2896. {
  2897. "type": "string",
  2898. "description": "创建时间",
  2899. "name": "createdAt",
  2900. "in": "query"
  2901. },
  2902. {
  2903. "type": "string",
  2904. "description": "错误信息",
  2905. "name": "error_message",
  2906. "in": "query"
  2907. },
  2908. {
  2909. "type": "integer",
  2910. "description": "主键ID",
  2911. "name": "id",
  2912. "in": "query"
  2913. },
  2914. {
  2915. "type": "string",
  2916. "description": "请求ip",
  2917. "name": "ip",
  2918. "in": "query"
  2919. },
  2920. {
  2921. "type": "string",
  2922. "description": "延迟",
  2923. "name": "latency",
  2924. "in": "query"
  2925. },
  2926. {
  2927. "type": "string",
  2928. "description": "请求方法",
  2929. "name": "method",
  2930. "in": "query"
  2931. },
  2932. {
  2933. "type": "string",
  2934. "description": "请求路径",
  2935. "name": "path",
  2936. "in": "query"
  2937. },
  2938. {
  2939. "type": "string",
  2940. "description": "响应Body",
  2941. "name": "resp",
  2942. "in": "query"
  2943. },
  2944. {
  2945. "type": "integer",
  2946. "description": "请求状态",
  2947. "name": "status",
  2948. "in": "query"
  2949. },
  2950. {
  2951. "type": "string",
  2952. "description": "更新时间",
  2953. "name": "updatedAt",
  2954. "in": "query"
  2955. },
  2956. {
  2957. "type": "integer",
  2958. "description": "用户id",
  2959. "name": "user_id",
  2960. "in": "query"
  2961. }
  2962. ],
  2963. "responses": {
  2964. "200": {
  2965. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2966. "schema": {
  2967. "type": "string"
  2968. }
  2969. }
  2970. }
  2971. }
  2972. },
  2973. "/sysOperationRecord/getSysOperationRecordList": {
  2974. "get": {
  2975. "security": [
  2976. {
  2977. "ApiKeyAuth": []
  2978. }
  2979. ],
  2980. "consumes": [
  2981. "application/json"
  2982. ],
  2983. "produces": [
  2984. "application/json"
  2985. ],
  2986. "tags": [
  2987. "SysOperationRecord"
  2988. ],
  2989. "summary": "分页获取SysOperationRecord列表",
  2990. "parameters": [
  2991. {
  2992. "type": "string",
  2993. "description": "代理",
  2994. "name": "agent",
  2995. "in": "query"
  2996. },
  2997. {
  2998. "type": "string",
  2999. "description": "请求Body",
  3000. "name": "body",
  3001. "in": "query"
  3002. },
  3003. {
  3004. "type": "string",
  3005. "description": "创建时间",
  3006. "name": "createdAt",
  3007. "in": "query"
  3008. },
  3009. {
  3010. "type": "string",
  3011. "description": "错误信息",
  3012. "name": "error_message",
  3013. "in": "query"
  3014. },
  3015. {
  3016. "type": "integer",
  3017. "description": "主键ID",
  3018. "name": "id",
  3019. "in": "query"
  3020. },
  3021. {
  3022. "type": "string",
  3023. "description": "请求ip",
  3024. "name": "ip",
  3025. "in": "query"
  3026. },
  3027. {
  3028. "type": "string",
  3029. "description": "延迟",
  3030. "name": "latency",
  3031. "in": "query"
  3032. },
  3033. {
  3034. "type": "string",
  3035. "description": "请求方法",
  3036. "name": "method",
  3037. "in": "query"
  3038. },
  3039. {
  3040. "type": "integer",
  3041. "description": "页码",
  3042. "name": "page",
  3043. "in": "query"
  3044. },
  3045. {
  3046. "type": "integer",
  3047. "description": "每页大小",
  3048. "name": "pageSize",
  3049. "in": "query"
  3050. },
  3051. {
  3052. "type": "string",
  3053. "description": "请求路径",
  3054. "name": "path",
  3055. "in": "query"
  3056. },
  3057. {
  3058. "type": "string",
  3059. "description": "响应Body",
  3060. "name": "resp",
  3061. "in": "query"
  3062. },
  3063. {
  3064. "type": "integer",
  3065. "description": "请求状态",
  3066. "name": "status",
  3067. "in": "query"
  3068. },
  3069. {
  3070. "type": "string",
  3071. "description": "更新时间",
  3072. "name": "updatedAt",
  3073. "in": "query"
  3074. },
  3075. {
  3076. "type": "integer",
  3077. "description": "用户id",
  3078. "name": "user_id",
  3079. "in": "query"
  3080. }
  3081. ],
  3082. "responses": {
  3083. "200": {
  3084. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3085. "schema": {
  3086. "type": "string"
  3087. }
  3088. }
  3089. }
  3090. }
  3091. },
  3092. "/system/getServerInfo": {
  3093. "post": {
  3094. "security": [
  3095. {
  3096. "ApiKeyAuth": []
  3097. }
  3098. ],
  3099. "produces": [
  3100. "application/json"
  3101. ],
  3102. "tags": [
  3103. "System"
  3104. ],
  3105. "summary": "获取服务器信息",
  3106. "responses": {
  3107. "200": {
  3108. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3109. "schema": {
  3110. "type": "string"
  3111. }
  3112. }
  3113. }
  3114. }
  3115. },
  3116. "/system/getSystemConfig": {
  3117. "post": {
  3118. "security": [
  3119. {
  3120. "ApiKeyAuth": []
  3121. }
  3122. ],
  3123. "produces": [
  3124. "application/json"
  3125. ],
  3126. "tags": [
  3127. "System"
  3128. ],
  3129. "summary": "获取配置文件内容",
  3130. "responses": {
  3131. "200": {
  3132. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3133. "schema": {
  3134. "type": "string"
  3135. }
  3136. }
  3137. }
  3138. }
  3139. },
  3140. "/system/reloadSystem": {
  3141. "post": {
  3142. "security": [
  3143. {
  3144. "ApiKeyAuth": []
  3145. }
  3146. ],
  3147. "produces": [
  3148. "application/json"
  3149. ],
  3150. "tags": [
  3151. "System"
  3152. ],
  3153. "summary": "重启系统",
  3154. "responses": {
  3155. "200": {
  3156. "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}",
  3157. "schema": {
  3158. "type": "string"
  3159. }
  3160. }
  3161. }
  3162. }
  3163. },
  3164. "/system/setSystemConfig": {
  3165. "post": {
  3166. "security": [
  3167. {
  3168. "ApiKeyAuth": []
  3169. }
  3170. ],
  3171. "produces": [
  3172. "application/json"
  3173. ],
  3174. "tags": [
  3175. "System"
  3176. ],
  3177. "summary": "设置配置文件内容",
  3178. "parameters": [
  3179. {
  3180. "description": "设置配置文件内容",
  3181. "name": "data",
  3182. "in": "body",
  3183. "required": true,
  3184. "schema": {
  3185. "$ref": "#/definitions/system.System"
  3186. }
  3187. }
  3188. ],
  3189. "responses": {
  3190. "200": {
  3191. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3192. "schema": {
  3193. "type": "string"
  3194. }
  3195. }
  3196. }
  3197. }
  3198. },
  3199. "/user/changePassword": {
  3200. "post": {
  3201. "security": [
  3202. {
  3203. "ApiKeyAuth": []
  3204. }
  3205. ],
  3206. "produces": [
  3207. "application/json"
  3208. ],
  3209. "tags": [
  3210. "SysUser"
  3211. ],
  3212. "summary": "用户修改密码",
  3213. "parameters": [
  3214. {
  3215. "description": "用户名, 原密码, 新密码",
  3216. "name": "data",
  3217. "in": "body",
  3218. "required": true,
  3219. "schema": {
  3220. "$ref": "#/definitions/request.ChangePasswordStruct"
  3221. }
  3222. }
  3223. ],
  3224. "responses": {
  3225. "200": {
  3226. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3227. "schema": {
  3228. "type": "string"
  3229. }
  3230. }
  3231. }
  3232. }
  3233. },
  3234. "/user/deleteUser": {
  3235. "delete": {
  3236. "security": [
  3237. {
  3238. "ApiKeyAuth": []
  3239. }
  3240. ],
  3241. "consumes": [
  3242. "application/json"
  3243. ],
  3244. "produces": [
  3245. "application/json"
  3246. ],
  3247. "tags": [
  3248. "SysUser"
  3249. ],
  3250. "summary": "删除用户",
  3251. "parameters": [
  3252. {
  3253. "description": "用户ID",
  3254. "name": "data",
  3255. "in": "body",
  3256. "required": true,
  3257. "schema": {
  3258. "$ref": "#/definitions/request.GetById"
  3259. }
  3260. }
  3261. ],
  3262. "responses": {
  3263. "200": {
  3264. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  3265. "schema": {
  3266. "type": "string"
  3267. }
  3268. }
  3269. }
  3270. }
  3271. },
  3272. "/user/getUserInfo": {
  3273. "get": {
  3274. "security": [
  3275. {
  3276. "ApiKeyAuth": []
  3277. }
  3278. ],
  3279. "consumes": [
  3280. "application/json"
  3281. ],
  3282. "produces": [
  3283. "application/json"
  3284. ],
  3285. "tags": [
  3286. "SysUser"
  3287. ],
  3288. "summary": "获取用户信息",
  3289. "responses": {
  3290. "200": {
  3291. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3292. "schema": {
  3293. "type": "string"
  3294. }
  3295. }
  3296. }
  3297. }
  3298. },
  3299. "/user/getUserList": {
  3300. "post": {
  3301. "security": [
  3302. {
  3303. "ApiKeyAuth": []
  3304. }
  3305. ],
  3306. "consumes": [
  3307. "application/json"
  3308. ],
  3309. "produces": [
  3310. "application/json"
  3311. ],
  3312. "tags": [
  3313. "SysUser"
  3314. ],
  3315. "summary": "分页获取用户列表",
  3316. "parameters": [
  3317. {
  3318. "description": "页码, 每页大小",
  3319. "name": "data",
  3320. "in": "body",
  3321. "required": true,
  3322. "schema": {
  3323. "$ref": "#/definitions/request.PageInfo"
  3324. }
  3325. }
  3326. ],
  3327. "responses": {
  3328. "200": {
  3329. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3330. "schema": {
  3331. "type": "string"
  3332. }
  3333. }
  3334. }
  3335. }
  3336. },
  3337. "/user/register": {
  3338. "post": {
  3339. "produces": [
  3340. "application/json"
  3341. ],
  3342. "tags": [
  3343. "SysUser"
  3344. ],
  3345. "summary": "用户注册账号",
  3346. "parameters": [
  3347. {
  3348. "description": "用户名, 昵称, 密码, 角色ID",
  3349. "name": "data",
  3350. "in": "body",
  3351. "required": true,
  3352. "schema": {
  3353. "$ref": "#/definitions/request.Register"
  3354. }
  3355. }
  3356. ],
  3357. "responses": {
  3358. "200": {
  3359. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  3360. "schema": {
  3361. "type": "string"
  3362. }
  3363. }
  3364. }
  3365. }
  3366. },
  3367. "/user/setUserAuthorities": {
  3368. "post": {
  3369. "security": [
  3370. {
  3371. "ApiKeyAuth": []
  3372. }
  3373. ],
  3374. "consumes": [
  3375. "application/json"
  3376. ],
  3377. "produces": [
  3378. "application/json"
  3379. ],
  3380. "tags": [
  3381. "SysUser"
  3382. ],
  3383. "summary": "设置用户权限",
  3384. "parameters": [
  3385. {
  3386. "description": "用户UUID, 角色ID",
  3387. "name": "data",
  3388. "in": "body",
  3389. "required": true,
  3390. "schema": {
  3391. "$ref": "#/definitions/request.SetUserAuthorities"
  3392. }
  3393. }
  3394. ],
  3395. "responses": {
  3396. "200": {
  3397. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3398. "schema": {
  3399. "type": "string"
  3400. }
  3401. }
  3402. }
  3403. }
  3404. },
  3405. "/user/setUserAuthority": {
  3406. "post": {
  3407. "security": [
  3408. {
  3409. "ApiKeyAuth": []
  3410. }
  3411. ],
  3412. "consumes": [
  3413. "application/json"
  3414. ],
  3415. "produces": [
  3416. "application/json"
  3417. ],
  3418. "tags": [
  3419. "SysUser"
  3420. ],
  3421. "summary": "更改用户权限",
  3422. "parameters": [
  3423. {
  3424. "description": "用户UUID, 角色ID",
  3425. "name": "data",
  3426. "in": "body",
  3427. "required": true,
  3428. "schema": {
  3429. "$ref": "#/definitions/request.SetUserAuth"
  3430. }
  3431. }
  3432. ],
  3433. "responses": {
  3434. "200": {
  3435. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3436. "schema": {
  3437. "type": "string"
  3438. }
  3439. }
  3440. }
  3441. }
  3442. },
  3443. "/user/setUserInfo": {
  3444. "put": {
  3445. "security": [
  3446. {
  3447. "ApiKeyAuth": []
  3448. }
  3449. ],
  3450. "consumes": [
  3451. "application/json"
  3452. ],
  3453. "produces": [
  3454. "application/json"
  3455. ],
  3456. "tags": [
  3457. "SysUser"
  3458. ],
  3459. "summary": "设置用户信息",
  3460. "parameters": [
  3461. {
  3462. "description": "ID, 用户名, 昵称, 头像链接",
  3463. "name": "data",
  3464. "in": "body",
  3465. "required": true,
  3466. "schema": {
  3467. "$ref": "#/definitions/system.SysUser"
  3468. }
  3469. }
  3470. ],
  3471. "responses": {
  3472. "200": {
  3473. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3474. "schema": {
  3475. "type": "string"
  3476. }
  3477. }
  3478. }
  3479. }
  3480. }
  3481. },
  3482. "definitions": {
  3483. "autocode.AutoCodeExample": {
  3484. "type": "object",
  3485. "properties": {
  3486. "autoCodeExampleField": {
  3487. "description": "展示值",
  3488. "type": "string"
  3489. },
  3490. "createdAt": {
  3491. "description": "创建时间",
  3492. "type": "string"
  3493. },
  3494. "id": {
  3495. "description": "主键ID",
  3496. "type": "integer"
  3497. },
  3498. "updatedAt": {
  3499. "description": "更新时间",
  3500. "type": "string"
  3501. }
  3502. }
  3503. },
  3504. "config.AliyunOSS": {
  3505. "type": "object",
  3506. "properties": {
  3507. "accessKeyId": {
  3508. "type": "string"
  3509. },
  3510. "accessKeySecret": {
  3511. "type": "string"
  3512. },
  3513. "basePath": {
  3514. "type": "string"
  3515. },
  3516. "bucketName": {
  3517. "type": "string"
  3518. },
  3519. "bucketUrl": {
  3520. "type": "string"
  3521. },
  3522. "endpoint": {
  3523. "type": "string"
  3524. }
  3525. }
  3526. },
  3527. "config.Autocode": {
  3528. "type": "object",
  3529. "properties": {
  3530. "root": {
  3531. "type": "string"
  3532. },
  3533. "server": {
  3534. "type": "string"
  3535. },
  3536. "serverApi": {
  3537. "type": "string"
  3538. },
  3539. "serverInitialize": {
  3540. "type": "string"
  3541. },
  3542. "serverModel": {
  3543. "type": "string"
  3544. },
  3545. "serverRequest": {
  3546. "type": "string"
  3547. },
  3548. "serverRouter": {
  3549. "type": "string"
  3550. },
  3551. "serverService": {
  3552. "type": "string"
  3553. },
  3554. "transferRestart": {
  3555. "type": "boolean"
  3556. },
  3557. "web": {
  3558. "type": "string"
  3559. },
  3560. "webApi": {
  3561. "type": "string"
  3562. },
  3563. "webFlow": {
  3564. "type": "string"
  3565. },
  3566. "webForm": {
  3567. "type": "string"
  3568. },
  3569. "webTable": {
  3570. "type": "string"
  3571. }
  3572. }
  3573. },
  3574. "config.Captcha": {
  3575. "type": "object",
  3576. "properties": {
  3577. "imgHeight": {
  3578. "description": "验证码高度",
  3579. "type": "integer"
  3580. },
  3581. "imgWidth": {
  3582. "description": "验证码宽度",
  3583. "type": "integer"
  3584. },
  3585. "keyLong": {
  3586. "description": "验证码长度",
  3587. "type": "integer"
  3588. }
  3589. }
  3590. },
  3591. "config.Casbin": {
  3592. "type": "object",
  3593. "properties": {
  3594. "modelPath": {
  3595. "description": "存放casbin模型的相对路径",
  3596. "type": "string"
  3597. }
  3598. }
  3599. },
  3600. "config.Detail": {
  3601. "type": "object",
  3602. "properties": {
  3603. "compareField": {
  3604. "description": "需要比较时间的字段",
  3605. "type": "string"
  3606. },
  3607. "interval": {
  3608. "description": "时间间隔",
  3609. "type": "string"
  3610. },
  3611. "tableName": {
  3612. "description": "需要清理的表名",
  3613. "type": "string"
  3614. }
  3615. }
  3616. },
  3617. "config.Email": {
  3618. "type": "object",
  3619. "properties": {
  3620. "from": {
  3621. "description": "收件人",
  3622. "type": "string"
  3623. },
  3624. "host": {
  3625. "description": "服务器地址",
  3626. "type": "string"
  3627. },
  3628. "isSSL": {
  3629. "description": "是否SSL",
  3630. "type": "boolean"
  3631. },
  3632. "nickname": {
  3633. "description": "昵称",
  3634. "type": "string"
  3635. },
  3636. "port": {
  3637. "description": "端口",
  3638. "type": "integer"
  3639. },
  3640. "secret": {
  3641. "description": "密钥",
  3642. "type": "string"
  3643. },
  3644. "to": {
  3645. "description": "收件人:多个以英文逗号分隔",
  3646. "type": "string"
  3647. }
  3648. }
  3649. },
  3650. "config.Excel": {
  3651. "type": "object",
  3652. "properties": {
  3653. "dir": {
  3654. "type": "string"
  3655. }
  3656. }
  3657. },
  3658. "config.JWT": {
  3659. "type": "object",
  3660. "properties": {
  3661. "bufferTime": {
  3662. "description": "缓冲时间",
  3663. "type": "integer"
  3664. },
  3665. "expiresTime": {
  3666. "description": "过期时间",
  3667. "type": "integer"
  3668. },
  3669. "signingKey": {
  3670. "description": "jwt签名",
  3671. "type": "string"
  3672. }
  3673. }
  3674. },
  3675. "config.Local": {
  3676. "type": "object",
  3677. "properties": {
  3678. "path": {
  3679. "description": "本地文件路径",
  3680. "type": "string"
  3681. }
  3682. }
  3683. },
  3684. "config.Mysql": {
  3685. "type": "object",
  3686. "properties": {
  3687. "config": {
  3688. "description": "高级配置",
  3689. "type": "string"
  3690. },
  3691. "dbname": {
  3692. "description": "数据库名",
  3693. "type": "string"
  3694. },
  3695. "logMode": {
  3696. "description": "是否开启Gorm全局日志",
  3697. "type": "string"
  3698. },
  3699. "logZap": {
  3700. "description": "是否通过zap写入日志文件",
  3701. "type": "boolean"
  3702. },
  3703. "maxIdleConns": {
  3704. "description": "空闲中的最大连接数",
  3705. "type": "integer"
  3706. },
  3707. "maxOpenConns": {
  3708. "description": "打开到数据库的最大连接数",
  3709. "type": "integer"
  3710. },
  3711. "password": {
  3712. "description": "数据库密码",
  3713. "type": "string"
  3714. },
  3715. "path": {
  3716. "description": "服务器地址:端口",
  3717. "type": "string"
  3718. },
  3719. "username": {
  3720. "description": "数据库用户名",
  3721. "type": "string"
  3722. }
  3723. }
  3724. },
  3725. "config.Qiniu": {
  3726. "type": "object",
  3727. "properties": {
  3728. "accessKey": {
  3729. "description": "秘钥AK",
  3730. "type": "string"
  3731. },
  3732. "bucket": {
  3733. "description": "空间名称",
  3734. "type": "string"
  3735. },
  3736. "imgPath": {
  3737. "description": "CDN加速域名",
  3738. "type": "string"
  3739. },
  3740. "secretKey": {
  3741. "description": "秘钥SK",
  3742. "type": "string"
  3743. },
  3744. "useCdnDomains": {
  3745. "description": "上传是否使用CDN上传加速",
  3746. "type": "boolean"
  3747. },
  3748. "useHttps": {
  3749. "description": "是否使用https",
  3750. "type": "boolean"
  3751. },
  3752. "zone": {
  3753. "description": "存储区域",
  3754. "type": "string"
  3755. }
  3756. }
  3757. },
  3758. "config.Redis": {
  3759. "type": "object",
  3760. "properties": {
  3761. "addr": {
  3762. "description": "服务器地址:端口",
  3763. "type": "string"
  3764. },
  3765. "db": {
  3766. "description": "redis的哪个数据库",
  3767. "type": "integer"
  3768. },
  3769. "password": {
  3770. "description": "密码",
  3771. "type": "string"
  3772. }
  3773. }
  3774. },
  3775. "config.Server": {
  3776. "type": "object",
  3777. "properties": {
  3778. "aliyunOSS": {
  3779. "$ref": "#/definitions/config.AliyunOSS"
  3780. },
  3781. "autoCode": {
  3782. "description": "auto",
  3783. "$ref": "#/definitions/config.Autocode"
  3784. },
  3785. "captcha": {
  3786. "$ref": "#/definitions/config.Captcha"
  3787. },
  3788. "casbin": {
  3789. "$ref": "#/definitions/config.Casbin"
  3790. },
  3791. "email": {
  3792. "$ref": "#/definitions/config.Email"
  3793. },
  3794. "excel": {
  3795. "$ref": "#/definitions/config.Excel"
  3796. },
  3797. "jwt": {
  3798. "$ref": "#/definitions/config.JWT"
  3799. },
  3800. "local": {
  3801. "description": "oss",
  3802. "$ref": "#/definitions/config.Local"
  3803. },
  3804. "mysql": {
  3805. "description": "gorm",
  3806. "$ref": "#/definitions/config.Mysql"
  3807. },
  3808. "qiniu": {
  3809. "$ref": "#/definitions/config.Qiniu"
  3810. },
  3811. "redis": {
  3812. "$ref": "#/definitions/config.Redis"
  3813. },
  3814. "system": {
  3815. "$ref": "#/definitions/config.System"
  3816. },
  3817. "tencentCOS": {
  3818. "$ref": "#/definitions/config.TencentCOS"
  3819. },
  3820. "timer": {
  3821. "$ref": "#/definitions/config.Timer"
  3822. },
  3823. "zap": {
  3824. "$ref": "#/definitions/config.Zap"
  3825. }
  3826. }
  3827. },
  3828. "config.System": {
  3829. "type": "object",
  3830. "properties": {
  3831. "addr": {
  3832. "description": "端口值",
  3833. "type": "integer"
  3834. },
  3835. "dbType": {
  3836. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  3837. "type": "string"
  3838. },
  3839. "env": {
  3840. "description": "环境值",
  3841. "type": "string"
  3842. },
  3843. "ossType": {
  3844. "description": "Oss类型",
  3845. "type": "string"
  3846. },
  3847. "useMultipoint": {
  3848. "description": "多点登录拦截",
  3849. "type": "boolean"
  3850. }
  3851. }
  3852. },
  3853. "config.TencentCOS": {
  3854. "type": "object",
  3855. "properties": {
  3856. "baseURL": {
  3857. "type": "string"
  3858. },
  3859. "bucket": {
  3860. "type": "string"
  3861. },
  3862. "pathPrefix": {
  3863. "type": "string"
  3864. },
  3865. "region": {
  3866. "type": "string"
  3867. },
  3868. "secretID": {
  3869. "type": "string"
  3870. },
  3871. "secretKey": {
  3872. "type": "string"
  3873. }
  3874. }
  3875. },
  3876. "config.Timer": {
  3877. "type": "object",
  3878. "properties": {
  3879. "detail": {
  3880. "type": "array",
  3881. "items": {
  3882. "$ref": "#/definitions/config.Detail"
  3883. }
  3884. },
  3885. "spec": {
  3886. "description": "CRON表达式",
  3887. "type": "string"
  3888. },
  3889. "start": {
  3890. "description": "是否启用",
  3891. "type": "boolean"
  3892. }
  3893. }
  3894. },
  3895. "config.Zap": {
  3896. "type": "object",
  3897. "properties": {
  3898. "director": {
  3899. "description": "日志文件夹",
  3900. "type": "string"
  3901. },
  3902. "encodeLevel": {
  3903. "description": "编码级",
  3904. "type": "string"
  3905. },
  3906. "format": {
  3907. "description": "输出",
  3908. "type": "string"
  3909. },
  3910. "level": {
  3911. "description": "级别",
  3912. "type": "string"
  3913. },
  3914. "linkName": {
  3915. "description": "软链接名称",
  3916. "type": "string"
  3917. },
  3918. "logInConsole": {
  3919. "description": "输出控制台",
  3920. "type": "boolean"
  3921. },
  3922. "prefix": {
  3923. "description": "日志前缀",
  3924. "type": "string"
  3925. },
  3926. "showLine": {
  3927. "description": "显示行",
  3928. "type": "boolean"
  3929. },
  3930. "stacktraceKey": {
  3931. "description": "栈名",
  3932. "type": "string"
  3933. }
  3934. }
  3935. },
  3936. "example.ExaCustomer": {
  3937. "type": "object",
  3938. "properties": {
  3939. "createdAt": {
  3940. "description": "创建时间",
  3941. "type": "string"
  3942. },
  3943. "customerName": {
  3944. "description": "客户名",
  3945. "type": "string"
  3946. },
  3947. "customerPhoneData": {
  3948. "description": "客户手机号",
  3949. "type": "string"
  3950. },
  3951. "id": {
  3952. "description": "主键ID",
  3953. "type": "integer"
  3954. },
  3955. "sysUser": {
  3956. "description": "管理详情",
  3957. "$ref": "#/definitions/system.SysUser"
  3958. },
  3959. "sysUserAuthorityID": {
  3960. "description": "管理角色ID",
  3961. "type": "string"
  3962. },
  3963. "sysUserId": {
  3964. "description": "管理ID",
  3965. "type": "integer"
  3966. },
  3967. "updatedAt": {
  3968. "description": "更新时间",
  3969. "type": "string"
  3970. }
  3971. }
  3972. },
  3973. "example.ExaFileUploadAndDownload": {
  3974. "type": "object",
  3975. "properties": {
  3976. "createdAt": {
  3977. "description": "创建时间",
  3978. "type": "string"
  3979. },
  3980. "id": {
  3981. "description": "主键ID",
  3982. "type": "integer"
  3983. },
  3984. "key": {
  3985. "description": "编号",
  3986. "type": "string"
  3987. },
  3988. "name": {
  3989. "description": "文件名",
  3990. "type": "string"
  3991. },
  3992. "tag": {
  3993. "description": "文件标签",
  3994. "type": "string"
  3995. },
  3996. "updatedAt": {
  3997. "description": "更新时间",
  3998. "type": "string"
  3999. },
  4000. "url": {
  4001. "description": "文件地址",
  4002. "type": "string"
  4003. }
  4004. }
  4005. },
  4006. "example.ExcelInfo": {
  4007. "type": "object",
  4008. "properties": {
  4009. "fileName": {
  4010. "description": "文件名",
  4011. "type": "string"
  4012. },
  4013. "infoList": {
  4014. "type": "array",
  4015. "items": {
  4016. "$ref": "#/definitions/system.SysBaseMenu"
  4017. }
  4018. }
  4019. }
  4020. },
  4021. "request.AddMenuAuthorityInfo": {
  4022. "type": "object",
  4023. "properties": {
  4024. "authorityId": {
  4025. "description": "角色ID",
  4026. "type": "string"
  4027. },
  4028. "menus": {
  4029. "type": "array",
  4030. "items": {
  4031. "$ref": "#/definitions/system.SysBaseMenu"
  4032. }
  4033. }
  4034. }
  4035. },
  4036. "request.AutoHistoryByID": {
  4037. "type": "object",
  4038. "properties": {
  4039. "id": {
  4040. "type": "integer"
  4041. }
  4042. }
  4043. },
  4044. "request.CasbinInReceive": {
  4045. "type": "object",
  4046. "properties": {
  4047. "authorityId": {
  4048. "description": "权限id",
  4049. "type": "string"
  4050. },
  4051. "casbinInfos": {
  4052. "type": "array",
  4053. "items": {
  4054. "$ref": "#/definitions/request.CasbinInfo"
  4055. }
  4056. }
  4057. }
  4058. },
  4059. "request.CasbinInfo": {
  4060. "type": "object",
  4061. "properties": {
  4062. "method": {
  4063. "description": "方法",
  4064. "type": "string"
  4065. },
  4066. "path": {
  4067. "description": "路径",
  4068. "type": "string"
  4069. }
  4070. }
  4071. },
  4072. "request.ChangePasswordStruct": {
  4073. "type": "object",
  4074. "properties": {
  4075. "newPassword": {
  4076. "description": "新密码",
  4077. "type": "string"
  4078. },
  4079. "password": {
  4080. "description": "密码",
  4081. "type": "string"
  4082. },
  4083. "username": {
  4084. "description": "用户名",
  4085. "type": "string"
  4086. }
  4087. }
  4088. },
  4089. "request.Empty": {
  4090. "type": "object"
  4091. },
  4092. "request.GetAuthorityId": {
  4093. "type": "object",
  4094. "properties": {
  4095. "authorityId": {
  4096. "description": "角色ID",
  4097. "type": "string"
  4098. }
  4099. }
  4100. },
  4101. "request.GetById": {
  4102. "type": "object",
  4103. "properties": {
  4104. "id": {
  4105. "description": "主键ID",
  4106. "type": "number"
  4107. }
  4108. }
  4109. },
  4110. "request.IdsReq": {
  4111. "type": "object",
  4112. "properties": {
  4113. "ids": {
  4114. "type": "array",
  4115. "items": {
  4116. "type": "integer"
  4117. }
  4118. }
  4119. }
  4120. },
  4121. "request.InitDB": {
  4122. "type": "object",
  4123. "required": [
  4124. "dbName",
  4125. "userName"
  4126. ],
  4127. "properties": {
  4128. "dbName": {
  4129. "description": "数据库名",
  4130. "type": "string"
  4131. },
  4132. "host": {
  4133. "description": "服务器地址",
  4134. "type": "string"
  4135. },
  4136. "password": {
  4137. "description": "数据库密码",
  4138. "type": "string"
  4139. },
  4140. "port": {
  4141. "description": "数据库连接端口",
  4142. "type": "string"
  4143. },
  4144. "userName": {
  4145. "description": "数据库用户名",
  4146. "type": "string"
  4147. }
  4148. }
  4149. },
  4150. "request.Login": {
  4151. "type": "object",
  4152. "properties": {
  4153. "captcha": {
  4154. "description": "验证码",
  4155. "type": "string"
  4156. },
  4157. "captchaId": {
  4158. "description": "验证码ID",
  4159. "type": "string"
  4160. },
  4161. "password": {
  4162. "description": "密码",
  4163. "type": "string"
  4164. },
  4165. "username": {
  4166. "description": "用户名",
  4167. "type": "string"
  4168. }
  4169. }
  4170. },
  4171. "request.PageInfo": {
  4172. "type": "object",
  4173. "properties": {
  4174. "page": {
  4175. "description": "页码",
  4176. "type": "integer"
  4177. },
  4178. "pageSize": {
  4179. "description": "每页大小",
  4180. "type": "integer"
  4181. }
  4182. }
  4183. },
  4184. "request.Register": {
  4185. "type": "object",
  4186. "properties": {
  4187. "authorityId": {
  4188. "type": "string"
  4189. },
  4190. "authorityIds": {
  4191. "type": "array",
  4192. "items": {
  4193. "type": "string"
  4194. }
  4195. },
  4196. "headerImg": {
  4197. "type": "string"
  4198. },
  4199. "nickName": {
  4200. "type": "string"
  4201. },
  4202. "passWord": {
  4203. "type": "string"
  4204. },
  4205. "userName": {
  4206. "type": "string"
  4207. }
  4208. }
  4209. },
  4210. "request.SearchApiParams": {
  4211. "type": "object",
  4212. "properties": {
  4213. "apiGroup": {
  4214. "description": "api组",
  4215. "type": "string"
  4216. },
  4217. "createdAt": {
  4218. "description": "创建时间",
  4219. "type": "string"
  4220. },
  4221. "desc": {
  4222. "description": "排序方式:升序false(默认)|降序true",
  4223. "type": "boolean"
  4224. },
  4225. "description": {
  4226. "description": "api中文描述",
  4227. "type": "string"
  4228. },
  4229. "id": {
  4230. "description": "主键ID",
  4231. "type": "integer"
  4232. },
  4233. "method": {
  4234. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4235. "type": "string"
  4236. },
  4237. "orderKey": {
  4238. "description": "排序",
  4239. "type": "string"
  4240. },
  4241. "page": {
  4242. "description": "页码",
  4243. "type": "integer"
  4244. },
  4245. "pageSize": {
  4246. "description": "每页大小",
  4247. "type": "integer"
  4248. },
  4249. "path": {
  4250. "description": "api路径",
  4251. "type": "string"
  4252. },
  4253. "updatedAt": {
  4254. "description": "更新时间",
  4255. "type": "string"
  4256. }
  4257. }
  4258. },
  4259. "request.SetUserAuth": {
  4260. "type": "object",
  4261. "properties": {
  4262. "authorityId": {
  4263. "description": "角色ID",
  4264. "type": "string"
  4265. }
  4266. }
  4267. },
  4268. "request.SetUserAuthorities": {
  4269. "type": "object",
  4270. "properties": {
  4271. "authorityIds": {
  4272. "description": "角色ID",
  4273. "type": "array",
  4274. "items": {
  4275. "type": "string"
  4276. }
  4277. },
  4278. "id": {
  4279. "type": "integer"
  4280. }
  4281. }
  4282. },
  4283. "request.SysAutoHistory": {
  4284. "type": "object",
  4285. "properties": {
  4286. "page": {
  4287. "description": "页码",
  4288. "type": "integer"
  4289. },
  4290. "pageSize": {
  4291. "description": "每页大小",
  4292. "type": "integer"
  4293. }
  4294. }
  4295. },
  4296. "response.Email": {
  4297. "type": "object",
  4298. "properties": {
  4299. "body": {
  4300. "description": "邮件内容",
  4301. "type": "string"
  4302. },
  4303. "subject": {
  4304. "description": "邮件标题",
  4305. "type": "string"
  4306. },
  4307. "to": {
  4308. "description": "邮件发送给谁",
  4309. "type": "string"
  4310. }
  4311. }
  4312. },
  4313. "response.SysAuthorityCopyResponse": {
  4314. "type": "object",
  4315. "properties": {
  4316. "authority": {
  4317. "$ref": "#/definitions/system.SysAuthority"
  4318. },
  4319. "oldAuthorityId": {
  4320. "description": "旧角色ID",
  4321. "type": "string"
  4322. }
  4323. }
  4324. },
  4325. "system.AutoCodeStruct": {
  4326. "type": "object",
  4327. "properties": {
  4328. "abbreviation": {
  4329. "description": "Struct简称",
  4330. "type": "string"
  4331. },
  4332. "autoCreateApiToSql": {
  4333. "description": "是否自动创建api",
  4334. "type": "boolean"
  4335. },
  4336. "autoMoveFile": {
  4337. "description": "是否自动移动文件",
  4338. "type": "boolean"
  4339. },
  4340. "description": {
  4341. "description": "Struct中文名称",
  4342. "type": "string"
  4343. },
  4344. "fields": {
  4345. "type": "array",
  4346. "items": {
  4347. "$ref": "#/definitions/system.Field"
  4348. }
  4349. },
  4350. "humpPackageName": {
  4351. "description": "go文件名称",
  4352. "type": "string"
  4353. },
  4354. "packageName": {
  4355. "description": "文件名称",
  4356. "type": "string"
  4357. },
  4358. "structName": {
  4359. "description": "Struct名称",
  4360. "type": "string"
  4361. },
  4362. "tableName": {
  4363. "description": "表名",
  4364. "type": "string"
  4365. }
  4366. }
  4367. },
  4368. "system.Field": {
  4369. "type": "object",
  4370. "properties": {
  4371. "columnName": {
  4372. "description": "数据库字段",
  4373. "type": "string"
  4374. },
  4375. "comment": {
  4376. "description": "数据库字段描述",
  4377. "type": "string"
  4378. },
  4379. "dataType": {
  4380. "description": "数据库字段类型",
  4381. "type": "string"
  4382. },
  4383. "dataTypeLong": {
  4384. "description": "数据库字段长度",
  4385. "type": "string"
  4386. },
  4387. "dictType": {
  4388. "description": "字典",
  4389. "type": "string"
  4390. },
  4391. "fieldDesc": {
  4392. "description": "中文名",
  4393. "type": "string"
  4394. },
  4395. "fieldJson": {
  4396. "description": "FieldJson",
  4397. "type": "string"
  4398. },
  4399. "fieldName": {
  4400. "description": "Field名",
  4401. "type": "string"
  4402. },
  4403. "fieldSearchType": {
  4404. "description": "搜索条件",
  4405. "type": "string"
  4406. },
  4407. "fieldType": {
  4408. "description": "Field数据类型",
  4409. "type": "string"
  4410. }
  4411. }
  4412. },
  4413. "system.SysApi": {
  4414. "type": "object",
  4415. "properties": {
  4416. "apiGroup": {
  4417. "description": "api组",
  4418. "type": "string"
  4419. },
  4420. "createdAt": {
  4421. "description": "创建时间",
  4422. "type": "string"
  4423. },
  4424. "description": {
  4425. "description": "api中文描述",
  4426. "type": "string"
  4427. },
  4428. "id": {
  4429. "description": "主键ID",
  4430. "type": "integer"
  4431. },
  4432. "method": {
  4433. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4434. "type": "string"
  4435. },
  4436. "path": {
  4437. "description": "api路径",
  4438. "type": "string"
  4439. },
  4440. "updatedAt": {
  4441. "description": "更新时间",
  4442. "type": "string"
  4443. }
  4444. }
  4445. },
  4446. "system.SysAuthority": {
  4447. "type": "object",
  4448. "properties": {
  4449. "authorityId": {
  4450. "description": "角色ID",
  4451. "type": "string"
  4452. },
  4453. "authorityName": {
  4454. "description": "角色名",
  4455. "type": "string"
  4456. },
  4457. "children": {
  4458. "type": "array",
  4459. "items": {
  4460. "$ref": "#/definitions/system.SysAuthority"
  4461. }
  4462. },
  4463. "createdAt": {
  4464. "description": "创建时间",
  4465. "type": "string"
  4466. },
  4467. "dataAuthorityId": {
  4468. "type": "array",
  4469. "items": {
  4470. "$ref": "#/definitions/system.SysAuthority"
  4471. }
  4472. },
  4473. "defaultRouter": {
  4474. "description": "默认菜单(默认dashboard)",
  4475. "type": "string"
  4476. },
  4477. "deletedAt": {
  4478. "type": "string"
  4479. },
  4480. "menus": {
  4481. "type": "array",
  4482. "items": {
  4483. "$ref": "#/definitions/system.SysBaseMenu"
  4484. }
  4485. },
  4486. "parentId": {
  4487. "description": "父角色ID",
  4488. "type": "string"
  4489. },
  4490. "updatedAt": {
  4491. "description": "更新时间",
  4492. "type": "string"
  4493. }
  4494. }
  4495. },
  4496. "system.SysBaseMenu": {
  4497. "type": "object",
  4498. "properties": {
  4499. "authoritys": {
  4500. "type": "array",
  4501. "items": {
  4502. "$ref": "#/definitions/system.SysAuthority"
  4503. }
  4504. },
  4505. "children": {
  4506. "type": "array",
  4507. "items": {
  4508. "$ref": "#/definitions/system.SysBaseMenu"
  4509. }
  4510. },
  4511. "closeTab": {
  4512. "description": "自动关闭tab",
  4513. "type": "boolean"
  4514. },
  4515. "component": {
  4516. "description": "对应前端文件路径",
  4517. "type": "string"
  4518. },
  4519. "createdAt": {
  4520. "description": "创建时间",
  4521. "type": "string"
  4522. },
  4523. "defaultMenu": {
  4524. "description": "是否是基础路由(开发中)",
  4525. "type": "boolean"
  4526. },
  4527. "hidden": {
  4528. "description": "是否在列表隐藏",
  4529. "type": "boolean"
  4530. },
  4531. "icon": {
  4532. "description": "菜单图标",
  4533. "type": "string"
  4534. },
  4535. "id": {
  4536. "description": "主键ID",
  4537. "type": "integer"
  4538. },
  4539. "keepAlive": {
  4540. "description": "是否缓存",
  4541. "type": "boolean"
  4542. },
  4543. "name": {
  4544. "description": "路由name",
  4545. "type": "string"
  4546. },
  4547. "parameters": {
  4548. "type": "array",
  4549. "items": {
  4550. "$ref": "#/definitions/system.SysBaseMenuParameter"
  4551. }
  4552. },
  4553. "parentId": {
  4554. "description": "父菜单ID",
  4555. "type": "string"
  4556. },
  4557. "path": {
  4558. "description": "路由path",
  4559. "type": "string"
  4560. },
  4561. "sort": {
  4562. "description": "排序标记",
  4563. "type": "integer"
  4564. },
  4565. "title": {
  4566. "description": "菜单名",
  4567. "type": "string"
  4568. },
  4569. "updatedAt": {
  4570. "description": "更新时间",
  4571. "type": "string"
  4572. }
  4573. }
  4574. },
  4575. "system.SysBaseMenuParameter": {
  4576. "type": "object",
  4577. "properties": {
  4578. "createdAt": {
  4579. "description": "创建时间",
  4580. "type": "string"
  4581. },
  4582. "id": {
  4583. "description": "主键ID",
  4584. "type": "integer"
  4585. },
  4586. "key": {
  4587. "description": "地址栏携带参数的key",
  4588. "type": "string"
  4589. },
  4590. "sysBaseMenuID": {
  4591. "type": "integer"
  4592. },
  4593. "type": {
  4594. "description": "地址栏携带参数为params还是query",
  4595. "type": "string"
  4596. },
  4597. "updatedAt": {
  4598. "description": "更新时间",
  4599. "type": "string"
  4600. },
  4601. "value": {
  4602. "description": "地址栏携带参数的值",
  4603. "type": "string"
  4604. }
  4605. }
  4606. },
  4607. "system.SysDictionary": {
  4608. "type": "object",
  4609. "properties": {
  4610. "createdAt": {
  4611. "description": "创建时间",
  4612. "type": "string"
  4613. },
  4614. "desc": {
  4615. "description": "描述",
  4616. "type": "string"
  4617. },
  4618. "id": {
  4619. "description": "主键ID",
  4620. "type": "integer"
  4621. },
  4622. "name": {
  4623. "description": "字典名(中)",
  4624. "type": "string"
  4625. },
  4626. "status": {
  4627. "description": "状态",
  4628. "type": "boolean"
  4629. },
  4630. "sysDictionaryDetails": {
  4631. "type": "array",
  4632. "items": {
  4633. "$ref": "#/definitions/system.SysDictionaryDetail"
  4634. }
  4635. },
  4636. "type": {
  4637. "description": "字典名(英)",
  4638. "type": "string"
  4639. },
  4640. "updatedAt": {
  4641. "description": "更新时间",
  4642. "type": "string"
  4643. }
  4644. }
  4645. },
  4646. "system.SysDictionaryDetail": {
  4647. "type": "object",
  4648. "properties": {
  4649. "createdAt": {
  4650. "description": "创建时间",
  4651. "type": "string"
  4652. },
  4653. "id": {
  4654. "description": "主键ID",
  4655. "type": "integer"
  4656. },
  4657. "label": {
  4658. "description": "展示值",
  4659. "type": "string"
  4660. },
  4661. "sort": {
  4662. "description": "排序标记",
  4663. "type": "integer"
  4664. },
  4665. "status": {
  4666. "description": "启用状态",
  4667. "type": "boolean"
  4668. },
  4669. "sysDictionaryID": {
  4670. "description": "关联标记",
  4671. "type": "integer"
  4672. },
  4673. "updatedAt": {
  4674. "description": "更新时间",
  4675. "type": "string"
  4676. },
  4677. "value": {
  4678. "description": "字典值",
  4679. "type": "integer"
  4680. }
  4681. }
  4682. },
  4683. "system.SysOperationRecord": {
  4684. "type": "object",
  4685. "properties": {
  4686. "agent": {
  4687. "description": "代理",
  4688. "type": "string"
  4689. },
  4690. "body": {
  4691. "description": "请求Body",
  4692. "type": "string"
  4693. },
  4694. "createdAt": {
  4695. "description": "创建时间",
  4696. "type": "string"
  4697. },
  4698. "error_message": {
  4699. "description": "错误信息",
  4700. "type": "string"
  4701. },
  4702. "id": {
  4703. "description": "主键ID",
  4704. "type": "integer"
  4705. },
  4706. "ip": {
  4707. "description": "请求ip",
  4708. "type": "string"
  4709. },
  4710. "latency": {
  4711. "description": "延迟",
  4712. "type": "string"
  4713. },
  4714. "method": {
  4715. "description": "请求方法",
  4716. "type": "string"
  4717. },
  4718. "path": {
  4719. "description": "请求路径",
  4720. "type": "string"
  4721. },
  4722. "resp": {
  4723. "description": "响应Body",
  4724. "type": "string"
  4725. },
  4726. "status": {
  4727. "description": "请求状态",
  4728. "type": "integer"
  4729. },
  4730. "updatedAt": {
  4731. "description": "更新时间",
  4732. "type": "string"
  4733. },
  4734. "user": {
  4735. "$ref": "#/definitions/system.SysUser"
  4736. },
  4737. "user_id": {
  4738. "description": "用户id",
  4739. "type": "integer"
  4740. }
  4741. }
  4742. },
  4743. "system.SysUser": {
  4744. "type": "object",
  4745. "properties": {
  4746. "activeColor": {
  4747. "description": "活跃颜色",
  4748. "type": "string"
  4749. },
  4750. "authorities": {
  4751. "type": "array",
  4752. "items": {
  4753. "$ref": "#/definitions/system.SysAuthority"
  4754. }
  4755. },
  4756. "authority": {
  4757. "$ref": "#/definitions/system.SysAuthority"
  4758. },
  4759. "authorityId": {
  4760. "description": "用户角色ID",
  4761. "type": "string"
  4762. },
  4763. "baseColor": {
  4764. "description": "基础颜色",
  4765. "type": "string"
  4766. },
  4767. "createdAt": {
  4768. "description": "创建时间",
  4769. "type": "string"
  4770. },
  4771. "headerImg": {
  4772. "description": "用户头像",
  4773. "type": "string"
  4774. },
  4775. "id": {
  4776. "description": "主键ID",
  4777. "type": "integer"
  4778. },
  4779. "nickName": {
  4780. "description": "用户昵称",
  4781. "type": "string"
  4782. },
  4783. "sideMode": {
  4784. "description": "用户侧边主题",
  4785. "type": "string"
  4786. },
  4787. "updatedAt": {
  4788. "description": "更新时间",
  4789. "type": "string"
  4790. },
  4791. "userName": {
  4792. "description": "用户登录名",
  4793. "type": "string"
  4794. },
  4795. "uuid": {
  4796. "description": "用户UUID",
  4797. "type": "string"
  4798. }
  4799. }
  4800. },
  4801. "system.System": {
  4802. "type": "object",
  4803. "properties": {
  4804. "config": {
  4805. "$ref": "#/definitions/config.Server"
  4806. }
  4807. }
  4808. }
  4809. },
  4810. "securityDefinitions": {
  4811. "ApiKeyAuth": {
  4812. "type": "apiKey",
  4813. "name": "x-token",
  4814. "in": "header"
  4815. }
  4816. }
  4817. }