docs.go 155 KB

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