docs.go 238 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018
  1. // Package docs Code generated by swaggo/swag. DO NOT EDIT
  2. package docs
  3. import "github.com/swaggo/swag"
  4. const docTemplate = `{
  5. "schemes": {{ marshal .Schemes }},
  6. "swagger": "2.0",
  7. "info": {
  8. "description": "{{escape .Description}}",
  9. "title": "{{.Title}}",
  10. "contact": {},
  11. "version": "{{.Version}}"
  12. },
  13. "host": "{{.Host}}",
  14. "basePath": "{{.BasePath}}",
  15. "paths": {
  16. "/api/createApi": {
  17. "post": {
  18. "security": [
  19. {
  20. "ApiKeyAuth": []
  21. }
  22. ],
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "SysApi"
  31. ],
  32. "summary": "创建基础api",
  33. "parameters": [
  34. {
  35. "description": "api路径, api中文描述, api组, 方法",
  36. "name": "data",
  37. "in": "body",
  38. "required": true,
  39. "schema": {
  40. "$ref": "#/definitions/system.SysApi"
  41. }
  42. }
  43. ],
  44. "responses": {
  45. "200": {
  46. "description": "创建基础api",
  47. "schema": {
  48. "allOf": [
  49. {
  50. "$ref": "#/definitions/response.Response"
  51. },
  52. {
  53. "type": "object",
  54. "properties": {
  55. "msg": {
  56. "type": "string"
  57. }
  58. }
  59. }
  60. ]
  61. }
  62. }
  63. }
  64. }
  65. },
  66. "/api/deleteApi": {
  67. "post": {
  68. "security": [
  69. {
  70. "ApiKeyAuth": []
  71. }
  72. ],
  73. "consumes": [
  74. "application/json"
  75. ],
  76. "produces": [
  77. "application/json"
  78. ],
  79. "tags": [
  80. "SysApi"
  81. ],
  82. "summary": "删除api",
  83. "parameters": [
  84. {
  85. "description": "ID",
  86. "name": "data",
  87. "in": "body",
  88. "required": true,
  89. "schema": {
  90. "$ref": "#/definitions/system.SysApi"
  91. }
  92. }
  93. ],
  94. "responses": {
  95. "200": {
  96. "description": "删除api",
  97. "schema": {
  98. "allOf": [
  99. {
  100. "$ref": "#/definitions/response.Response"
  101. },
  102. {
  103. "type": "object",
  104. "properties": {
  105. "msg": {
  106. "type": "string"
  107. }
  108. }
  109. }
  110. ]
  111. }
  112. }
  113. }
  114. }
  115. },
  116. "/api/deleteApisByIds": {
  117. "delete": {
  118. "security": [
  119. {
  120. "ApiKeyAuth": []
  121. }
  122. ],
  123. "consumes": [
  124. "application/json"
  125. ],
  126. "produces": [
  127. "application/json"
  128. ],
  129. "tags": [
  130. "SysApi"
  131. ],
  132. "summary": "删除选中Api",
  133. "parameters": [
  134. {
  135. "description": "ID",
  136. "name": "data",
  137. "in": "body",
  138. "required": true,
  139. "schema": {
  140. "$ref": "#/definitions/request.IdsReq"
  141. }
  142. }
  143. ],
  144. "responses": {
  145. "200": {
  146. "description": "删除选中Api",
  147. "schema": {
  148. "allOf": [
  149. {
  150. "$ref": "#/definitions/response.Response"
  151. },
  152. {
  153. "type": "object",
  154. "properties": {
  155. "msg": {
  156. "type": "string"
  157. }
  158. }
  159. }
  160. ]
  161. }
  162. }
  163. }
  164. }
  165. },
  166. "/api/freshCasbin": {
  167. "get": {
  168. "consumes": [
  169. "application/json"
  170. ],
  171. "produces": [
  172. "application/json"
  173. ],
  174. "tags": [
  175. "SysApi"
  176. ],
  177. "summary": "刷新casbin缓存",
  178. "responses": {
  179. "200": {
  180. "description": "刷新成功",
  181. "schema": {
  182. "allOf": [
  183. {
  184. "$ref": "#/definitions/response.Response"
  185. },
  186. {
  187. "type": "object",
  188. "properties": {
  189. "msg": {
  190. "type": "string"
  191. }
  192. }
  193. }
  194. ]
  195. }
  196. }
  197. }
  198. }
  199. },
  200. "/api/getAllApis": {
  201. "post": {
  202. "security": [
  203. {
  204. "ApiKeyAuth": []
  205. }
  206. ],
  207. "consumes": [
  208. "application/json"
  209. ],
  210. "produces": [
  211. "application/json"
  212. ],
  213. "tags": [
  214. "SysApi"
  215. ],
  216. "summary": "获取所有的Api 不分页",
  217. "responses": {
  218. "200": {
  219. "description": "获取所有的Api 不分页,返回包括api列表",
  220. "schema": {
  221. "allOf": [
  222. {
  223. "$ref": "#/definitions/response.Response"
  224. },
  225. {
  226. "type": "object",
  227. "properties": {
  228. "data": {
  229. "$ref": "#/definitions/response.SysAPIListResponse"
  230. },
  231. "msg": {
  232. "type": "string"
  233. }
  234. }
  235. }
  236. ]
  237. }
  238. }
  239. }
  240. }
  241. },
  242. "/api/getApiById": {
  243. "post": {
  244. "security": [
  245. {
  246. "ApiKeyAuth": []
  247. }
  248. ],
  249. "consumes": [
  250. "application/json"
  251. ],
  252. "produces": [
  253. "application/json"
  254. ],
  255. "tags": [
  256. "SysApi"
  257. ],
  258. "summary": "根据id获取api",
  259. "parameters": [
  260. {
  261. "description": "根据id获取api",
  262. "name": "data",
  263. "in": "body",
  264. "required": true,
  265. "schema": {
  266. "$ref": "#/definitions/request.GetById"
  267. }
  268. }
  269. ],
  270. "responses": {
  271. "200": {
  272. "description": "根据id获取api,返回包括api详情",
  273. "schema": {
  274. "allOf": [
  275. {
  276. "$ref": "#/definitions/response.Response"
  277. },
  278. {
  279. "type": "object",
  280. "properties": {
  281. "data": {
  282. "$ref": "#/definitions/response.SysAPIResponse"
  283. }
  284. }
  285. }
  286. ]
  287. }
  288. }
  289. }
  290. }
  291. },
  292. "/api/getApiList": {
  293. "post": {
  294. "security": [
  295. {
  296. "ApiKeyAuth": []
  297. }
  298. ],
  299. "consumes": [
  300. "application/json"
  301. ],
  302. "produces": [
  303. "application/json"
  304. ],
  305. "tags": [
  306. "SysApi"
  307. ],
  308. "summary": "分页获取API列表",
  309. "parameters": [
  310. {
  311. "description": "分页获取API列表",
  312. "name": "data",
  313. "in": "body",
  314. "required": true,
  315. "schema": {
  316. "$ref": "#/definitions/request.SearchApiParams"
  317. }
  318. }
  319. ],
  320. "responses": {
  321. "200": {
  322. "description": "分页获取API列表,返回包括列表,总数,页码,每页数量",
  323. "schema": {
  324. "allOf": [
  325. {
  326. "$ref": "#/definitions/response.Response"
  327. },
  328. {
  329. "type": "object",
  330. "properties": {
  331. "data": {
  332. "$ref": "#/definitions/response.PageResult"
  333. },
  334. "msg": {
  335. "type": "string"
  336. }
  337. }
  338. }
  339. ]
  340. }
  341. }
  342. }
  343. }
  344. },
  345. "/api/updateApi": {
  346. "post": {
  347. "security": [
  348. {
  349. "ApiKeyAuth": []
  350. }
  351. ],
  352. "consumes": [
  353. "application/json"
  354. ],
  355. "produces": [
  356. "application/json"
  357. ],
  358. "tags": [
  359. "SysApi"
  360. ],
  361. "summary": "修改基础api",
  362. "parameters": [
  363. {
  364. "description": "api路径, api中文描述, api组, 方法",
  365. "name": "data",
  366. "in": "body",
  367. "required": true,
  368. "schema": {
  369. "$ref": "#/definitions/system.SysApi"
  370. }
  371. }
  372. ],
  373. "responses": {
  374. "200": {
  375. "description": "修改基础api",
  376. "schema": {
  377. "allOf": [
  378. {
  379. "$ref": "#/definitions/response.Response"
  380. },
  381. {
  382. "type": "object",
  383. "properties": {
  384. "msg": {
  385. "type": "string"
  386. }
  387. }
  388. }
  389. ]
  390. }
  391. }
  392. }
  393. }
  394. },
  395. "/authority/copyAuthority": {
  396. "post": {
  397. "security": [
  398. {
  399. "ApiKeyAuth": []
  400. }
  401. ],
  402. "consumes": [
  403. "application/json"
  404. ],
  405. "produces": [
  406. "application/json"
  407. ],
  408. "tags": [
  409. "Authority"
  410. ],
  411. "summary": "拷贝角色",
  412. "parameters": [
  413. {
  414. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  415. "name": "data",
  416. "in": "body",
  417. "required": true,
  418. "schema": {
  419. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  420. }
  421. }
  422. ],
  423. "responses": {
  424. "200": {
  425. "description": "拷贝角色,返回包括系统角色详情",
  426. "schema": {
  427. "allOf": [
  428. {
  429. "$ref": "#/definitions/response.Response"
  430. },
  431. {
  432. "type": "object",
  433. "properties": {
  434. "data": {
  435. "$ref": "#/definitions/response.SysAuthorityResponse"
  436. },
  437. "msg": {
  438. "type": "string"
  439. }
  440. }
  441. }
  442. ]
  443. }
  444. }
  445. }
  446. }
  447. },
  448. "/authority/createAuthority": {
  449. "post": {
  450. "security": [
  451. {
  452. "ApiKeyAuth": []
  453. }
  454. ],
  455. "consumes": [
  456. "application/json"
  457. ],
  458. "produces": [
  459. "application/json"
  460. ],
  461. "tags": [
  462. "Authority"
  463. ],
  464. "summary": "创建角色",
  465. "parameters": [
  466. {
  467. "description": "权限id, 权限名, 父角色id",
  468. "name": "data",
  469. "in": "body",
  470. "required": true,
  471. "schema": {
  472. "$ref": "#/definitions/system.SysAuthority"
  473. }
  474. }
  475. ],
  476. "responses": {
  477. "200": {
  478. "description": "创建角色,返回包括系统角色详情",
  479. "schema": {
  480. "allOf": [
  481. {
  482. "$ref": "#/definitions/response.Response"
  483. },
  484. {
  485. "type": "object",
  486. "properties": {
  487. "data": {
  488. "$ref": "#/definitions/response.SysAuthorityResponse"
  489. },
  490. "msg": {
  491. "type": "string"
  492. }
  493. }
  494. }
  495. ]
  496. }
  497. }
  498. }
  499. }
  500. },
  501. "/authority/deleteAuthority": {
  502. "post": {
  503. "security": [
  504. {
  505. "ApiKeyAuth": []
  506. }
  507. ],
  508. "consumes": [
  509. "application/json"
  510. ],
  511. "produces": [
  512. "application/json"
  513. ],
  514. "tags": [
  515. "Authority"
  516. ],
  517. "summary": "删除角色",
  518. "parameters": [
  519. {
  520. "description": "删除角色",
  521. "name": "data",
  522. "in": "body",
  523. "required": true,
  524. "schema": {
  525. "$ref": "#/definitions/system.SysAuthority"
  526. }
  527. }
  528. ],
  529. "responses": {
  530. "200": {
  531. "description": "删除角色",
  532. "schema": {
  533. "allOf": [
  534. {
  535. "$ref": "#/definitions/response.Response"
  536. },
  537. {
  538. "type": "object",
  539. "properties": {
  540. "msg": {
  541. "type": "string"
  542. }
  543. }
  544. }
  545. ]
  546. }
  547. }
  548. }
  549. }
  550. },
  551. "/authority/getAuthorityList": {
  552. "post": {
  553. "security": [
  554. {
  555. "ApiKeyAuth": []
  556. }
  557. ],
  558. "consumes": [
  559. "application/json"
  560. ],
  561. "produces": [
  562. "application/json"
  563. ],
  564. "tags": [
  565. "Authority"
  566. ],
  567. "summary": "分页获取角色列表",
  568. "parameters": [
  569. {
  570. "description": "页码, 每页大小",
  571. "name": "data",
  572. "in": "body",
  573. "required": true,
  574. "schema": {
  575. "$ref": "#/definitions/request.PageInfo"
  576. }
  577. }
  578. ],
  579. "responses": {
  580. "200": {
  581. "description": "分页获取角色列表,返回包括列表,总数,页码,每页数量",
  582. "schema": {
  583. "allOf": [
  584. {
  585. "$ref": "#/definitions/response.Response"
  586. },
  587. {
  588. "type": "object",
  589. "properties": {
  590. "data": {
  591. "$ref": "#/definitions/response.PageResult"
  592. },
  593. "msg": {
  594. "type": "string"
  595. }
  596. }
  597. }
  598. ]
  599. }
  600. }
  601. }
  602. }
  603. },
  604. "/authority/setDataAuthority": {
  605. "post": {
  606. "security": [
  607. {
  608. "ApiKeyAuth": []
  609. }
  610. ],
  611. "consumes": [
  612. "application/json"
  613. ],
  614. "produces": [
  615. "application/json"
  616. ],
  617. "tags": [
  618. "Authority"
  619. ],
  620. "summary": "设置角色资源权限",
  621. "parameters": [
  622. {
  623. "description": "设置角色资源权限",
  624. "name": "data",
  625. "in": "body",
  626. "required": true,
  627. "schema": {
  628. "$ref": "#/definitions/system.SysAuthority"
  629. }
  630. }
  631. ],
  632. "responses": {
  633. "200": {
  634. "description": "设置角色资源权限",
  635. "schema": {
  636. "allOf": [
  637. {
  638. "$ref": "#/definitions/response.Response"
  639. },
  640. {
  641. "type": "object",
  642. "properties": {
  643. "msg": {
  644. "type": "string"
  645. }
  646. }
  647. }
  648. ]
  649. }
  650. }
  651. }
  652. }
  653. },
  654. "/authority/updateAuthority": {
  655. "post": {
  656. "security": [
  657. {
  658. "ApiKeyAuth": []
  659. }
  660. ],
  661. "consumes": [
  662. "application/json"
  663. ],
  664. "produces": [
  665. "application/json"
  666. ],
  667. "tags": [
  668. "Authority"
  669. ],
  670. "summary": "更新角色信息",
  671. "parameters": [
  672. {
  673. "description": "权限id, 权限名, 父角色id",
  674. "name": "data",
  675. "in": "body",
  676. "required": true,
  677. "schema": {
  678. "$ref": "#/definitions/system.SysAuthority"
  679. }
  680. }
  681. ],
  682. "responses": {
  683. "200": {
  684. "description": "更新角色信息,返回包括系统角色详情",
  685. "schema": {
  686. "allOf": [
  687. {
  688. "$ref": "#/definitions/response.Response"
  689. },
  690. {
  691. "type": "object",
  692. "properties": {
  693. "data": {
  694. "$ref": "#/definitions/response.SysAuthorityResponse"
  695. },
  696. "msg": {
  697. "type": "string"
  698. }
  699. }
  700. }
  701. ]
  702. }
  703. }
  704. }
  705. }
  706. },
  707. "/authorityBtn/canRemoveAuthorityBtn": {
  708. "post": {
  709. "security": [
  710. {
  711. "ApiKeyAuth": []
  712. }
  713. ],
  714. "consumes": [
  715. "application/json"
  716. ],
  717. "produces": [
  718. "application/json"
  719. ],
  720. "tags": [
  721. "AuthorityBtn"
  722. ],
  723. "summary": "设置权限按钮",
  724. "responses": {
  725. "200": {
  726. "description": "删除成功",
  727. "schema": {
  728. "allOf": [
  729. {
  730. "$ref": "#/definitions/response.Response"
  731. },
  732. {
  733. "type": "object",
  734. "properties": {
  735. "msg": {
  736. "type": "string"
  737. }
  738. }
  739. }
  740. ]
  741. }
  742. }
  743. }
  744. }
  745. },
  746. "/authorityBtn/getAuthorityBtn": {
  747. "post": {
  748. "security": [
  749. {
  750. "ApiKeyAuth": []
  751. }
  752. ],
  753. "consumes": [
  754. "application/json"
  755. ],
  756. "produces": [
  757. "application/json"
  758. ],
  759. "tags": [
  760. "AuthorityBtn"
  761. ],
  762. "summary": "获取权限按钮",
  763. "parameters": [
  764. {
  765. "description": "菜单id, 角色id, 选中的按钮id",
  766. "name": "data",
  767. "in": "body",
  768. "required": true,
  769. "schema": {
  770. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  771. }
  772. }
  773. ],
  774. "responses": {
  775. "200": {
  776. "description": "返回列表成功",
  777. "schema": {
  778. "allOf": [
  779. {
  780. "$ref": "#/definitions/response.Response"
  781. },
  782. {
  783. "type": "object",
  784. "properties": {
  785. "data": {
  786. "$ref": "#/definitions/response.SysAuthorityBtnRes"
  787. },
  788. "msg": {
  789. "type": "string"
  790. }
  791. }
  792. }
  793. ]
  794. }
  795. }
  796. }
  797. }
  798. },
  799. "/authorityBtn/setAuthorityBtn": {
  800. "post": {
  801. "security": [
  802. {
  803. "ApiKeyAuth": []
  804. }
  805. ],
  806. "consumes": [
  807. "application/json"
  808. ],
  809. "produces": [
  810. "application/json"
  811. ],
  812. "tags": [
  813. "AuthorityBtn"
  814. ],
  815. "summary": "设置权限按钮",
  816. "parameters": [
  817. {
  818. "description": "菜单id, 角色id, 选中的按钮id",
  819. "name": "data",
  820. "in": "body",
  821. "required": true,
  822. "schema": {
  823. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  824. }
  825. }
  826. ],
  827. "responses": {
  828. "200": {
  829. "description": "返回列表成功",
  830. "schema": {
  831. "allOf": [
  832. {
  833. "$ref": "#/definitions/response.Response"
  834. },
  835. {
  836. "type": "object",
  837. "properties": {
  838. "msg": {
  839. "type": "string"
  840. }
  841. }
  842. }
  843. ]
  844. }
  845. }
  846. }
  847. }
  848. },
  849. "/autoCode/createPackage": {
  850. "post": {
  851. "security": [
  852. {
  853. "ApiKeyAuth": []
  854. }
  855. ],
  856. "consumes": [
  857. "application/json"
  858. ],
  859. "produces": [
  860. "application/json"
  861. ],
  862. "tags": [
  863. "AutoCode"
  864. ],
  865. "summary": "创建package",
  866. "parameters": [
  867. {
  868. "description": "创建package",
  869. "name": "data",
  870. "in": "body",
  871. "required": true,
  872. "schema": {
  873. "$ref": "#/definitions/system.SysAutoCode"
  874. }
  875. }
  876. ],
  877. "responses": {
  878. "200": {
  879. "description": "创建package成功",
  880. "schema": {
  881. "allOf": [
  882. {
  883. "$ref": "#/definitions/response.Response"
  884. },
  885. {
  886. "type": "object",
  887. "properties": {
  888. "data": {
  889. "type": "object",
  890. "additionalProperties": true
  891. },
  892. "msg": {
  893. "type": "string"
  894. }
  895. }
  896. }
  897. ]
  898. }
  899. }
  900. }
  901. }
  902. },
  903. "/autoCode/createPlug": {
  904. "post": {
  905. "security": [
  906. {
  907. "ApiKeyAuth": []
  908. }
  909. ],
  910. "consumes": [
  911. "application/json"
  912. ],
  913. "produces": [
  914. "application/json"
  915. ],
  916. "tags": [
  917. "AutoCode"
  918. ],
  919. "summary": "创建插件模板",
  920. "parameters": [
  921. {
  922. "description": "创建插件模板",
  923. "name": "data",
  924. "in": "body",
  925. "required": true,
  926. "schema": {
  927. "$ref": "#/definitions/system.SysAutoCode"
  928. }
  929. }
  930. ],
  931. "responses": {
  932. "200": {
  933. "description": "创建插件模板成功",
  934. "schema": {
  935. "allOf": [
  936. {
  937. "$ref": "#/definitions/response.Response"
  938. },
  939. {
  940. "type": "object",
  941. "properties": {
  942. "data": {
  943. "type": "object",
  944. "additionalProperties": true
  945. },
  946. "msg": {
  947. "type": "string"
  948. }
  949. }
  950. }
  951. ]
  952. }
  953. }
  954. }
  955. }
  956. },
  957. "/autoCode/createTemp": {
  958. "post": {
  959. "security": [
  960. {
  961. "ApiKeyAuth": []
  962. }
  963. ],
  964. "consumes": [
  965. "application/json"
  966. ],
  967. "produces": [
  968. "application/json"
  969. ],
  970. "tags": [
  971. "AutoCode"
  972. ],
  973. "summary": "自动代码模板",
  974. "parameters": [
  975. {
  976. "description": "创建自动代码",
  977. "name": "data",
  978. "in": "body",
  979. "required": true,
  980. "schema": {
  981. "$ref": "#/definitions/system.AutoCodeStruct"
  982. }
  983. }
  984. ],
  985. "responses": {
  986. "200": {
  987. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  988. "schema": {
  989. "type": "string"
  990. }
  991. }
  992. }
  993. }
  994. },
  995. "/autoCode/delPackage": {
  996. "post": {
  997. "security": [
  998. {
  999. "ApiKeyAuth": []
  1000. }
  1001. ],
  1002. "consumes": [
  1003. "application/json"
  1004. ],
  1005. "produces": [
  1006. "application/json"
  1007. ],
  1008. "tags": [
  1009. "AutoCode"
  1010. ],
  1011. "summary": "删除package",
  1012. "parameters": [
  1013. {
  1014. "description": "创建package",
  1015. "name": "data",
  1016. "in": "body",
  1017. "required": true,
  1018. "schema": {
  1019. "$ref": "#/definitions/system.SysAutoCode"
  1020. }
  1021. }
  1022. ],
  1023. "responses": {
  1024. "200": {
  1025. "description": "删除package成功",
  1026. "schema": {
  1027. "allOf": [
  1028. {
  1029. "$ref": "#/definitions/response.Response"
  1030. },
  1031. {
  1032. "type": "object",
  1033. "properties": {
  1034. "data": {
  1035. "type": "object",
  1036. "additionalProperties": true
  1037. },
  1038. "msg": {
  1039. "type": "string"
  1040. }
  1041. }
  1042. }
  1043. ]
  1044. }
  1045. }
  1046. }
  1047. }
  1048. },
  1049. "/autoCode/delSysHistory": {
  1050. "post": {
  1051. "security": [
  1052. {
  1053. "ApiKeyAuth": []
  1054. }
  1055. ],
  1056. "consumes": [
  1057. "application/json"
  1058. ],
  1059. "produces": [
  1060. "application/json"
  1061. ],
  1062. "tags": [
  1063. "AutoCode"
  1064. ],
  1065. "summary": "删除回滚记录",
  1066. "parameters": [
  1067. {
  1068. "description": "请求参数",
  1069. "name": "data",
  1070. "in": "body",
  1071. "required": true,
  1072. "schema": {
  1073. "$ref": "#/definitions/request.GetById"
  1074. }
  1075. }
  1076. ],
  1077. "responses": {
  1078. "200": {
  1079. "description": "删除回滚记录",
  1080. "schema": {
  1081. "allOf": [
  1082. {
  1083. "$ref": "#/definitions/response.Response"
  1084. },
  1085. {
  1086. "type": "object",
  1087. "properties": {
  1088. "msg": {
  1089. "type": "string"
  1090. }
  1091. }
  1092. }
  1093. ]
  1094. }
  1095. }
  1096. }
  1097. }
  1098. },
  1099. "/autoCode/getColumn": {
  1100. "get": {
  1101. "security": [
  1102. {
  1103. "ApiKeyAuth": []
  1104. }
  1105. ],
  1106. "consumes": [
  1107. "application/json"
  1108. ],
  1109. "produces": [
  1110. "application/json"
  1111. ],
  1112. "tags": [
  1113. "AutoCode"
  1114. ],
  1115. "summary": "获取当前表所有字段",
  1116. "responses": {
  1117. "200": {
  1118. "description": "获取当前表所有字段",
  1119. "schema": {
  1120. "allOf": [
  1121. {
  1122. "$ref": "#/definitions/response.Response"
  1123. },
  1124. {
  1125. "type": "object",
  1126. "properties": {
  1127. "data": {
  1128. "type": "object",
  1129. "additionalProperties": true
  1130. },
  1131. "msg": {
  1132. "type": "string"
  1133. }
  1134. }
  1135. }
  1136. ]
  1137. }
  1138. }
  1139. }
  1140. }
  1141. },
  1142. "/autoCode/getDatabase": {
  1143. "get": {
  1144. "security": [
  1145. {
  1146. "ApiKeyAuth": []
  1147. }
  1148. ],
  1149. "consumes": [
  1150. "application/json"
  1151. ],
  1152. "produces": [
  1153. "application/json"
  1154. ],
  1155. "tags": [
  1156. "AutoCode"
  1157. ],
  1158. "summary": "获取当前所有数据库",
  1159. "responses": {
  1160. "200": {
  1161. "description": "获取当前所有数据库",
  1162. "schema": {
  1163. "allOf": [
  1164. {
  1165. "$ref": "#/definitions/response.Response"
  1166. },
  1167. {
  1168. "type": "object",
  1169. "properties": {
  1170. "data": {
  1171. "type": "object",
  1172. "additionalProperties": true
  1173. },
  1174. "msg": {
  1175. "type": "string"
  1176. }
  1177. }
  1178. }
  1179. ]
  1180. }
  1181. }
  1182. }
  1183. }
  1184. },
  1185. "/autoCode/getMeta": {
  1186. "post": {
  1187. "security": [
  1188. {
  1189. "ApiKeyAuth": []
  1190. }
  1191. ],
  1192. "consumes": [
  1193. "application/json"
  1194. ],
  1195. "produces": [
  1196. "application/json"
  1197. ],
  1198. "tags": [
  1199. "AutoCode"
  1200. ],
  1201. "summary": "获取meta信息",
  1202. "parameters": [
  1203. {
  1204. "description": "请求参数",
  1205. "name": "data",
  1206. "in": "body",
  1207. "required": true,
  1208. "schema": {
  1209. "$ref": "#/definitions/request.GetById"
  1210. }
  1211. }
  1212. ],
  1213. "responses": {
  1214. "200": {
  1215. "description": "获取meta信息",
  1216. "schema": {
  1217. "allOf": [
  1218. {
  1219. "$ref": "#/definitions/response.Response"
  1220. },
  1221. {
  1222. "type": "object",
  1223. "properties": {
  1224. "data": {
  1225. "type": "object",
  1226. "additionalProperties": true
  1227. },
  1228. "msg": {
  1229. "type": "string"
  1230. }
  1231. }
  1232. }
  1233. ]
  1234. }
  1235. }
  1236. }
  1237. }
  1238. },
  1239. "/autoCode/getPackage": {
  1240. "post": {
  1241. "security": [
  1242. {
  1243. "ApiKeyAuth": []
  1244. }
  1245. ],
  1246. "consumes": [
  1247. "application/json"
  1248. ],
  1249. "produces": [
  1250. "application/json"
  1251. ],
  1252. "tags": [
  1253. "AutoCode"
  1254. ],
  1255. "summary": "获取package",
  1256. "responses": {
  1257. "200": {
  1258. "description": "创建package成功",
  1259. "schema": {
  1260. "allOf": [
  1261. {
  1262. "$ref": "#/definitions/response.Response"
  1263. },
  1264. {
  1265. "type": "object",
  1266. "properties": {
  1267. "data": {
  1268. "type": "object",
  1269. "additionalProperties": true
  1270. },
  1271. "msg": {
  1272. "type": "string"
  1273. }
  1274. }
  1275. }
  1276. ]
  1277. }
  1278. }
  1279. }
  1280. }
  1281. },
  1282. "/autoCode/getSysHistory": {
  1283. "post": {
  1284. "security": [
  1285. {
  1286. "ApiKeyAuth": []
  1287. }
  1288. ],
  1289. "consumes": [
  1290. "application/json"
  1291. ],
  1292. "produces": [
  1293. "application/json"
  1294. ],
  1295. "tags": [
  1296. "AutoCode"
  1297. ],
  1298. "summary": "查询回滚记录",
  1299. "parameters": [
  1300. {
  1301. "description": "请求参数",
  1302. "name": "data",
  1303. "in": "body",
  1304. "required": true,
  1305. "schema": {
  1306. "$ref": "#/definitions/request.SysAutoHistory"
  1307. }
  1308. }
  1309. ],
  1310. "responses": {
  1311. "200": {
  1312. "description": "查询回滚记录,返回包括列表,总数,页码,每页数量",
  1313. "schema": {
  1314. "allOf": [
  1315. {
  1316. "$ref": "#/definitions/response.Response"
  1317. },
  1318. {
  1319. "type": "object",
  1320. "properties": {
  1321. "data": {
  1322. "$ref": "#/definitions/response.PageResult"
  1323. },
  1324. "msg": {
  1325. "type": "string"
  1326. }
  1327. }
  1328. }
  1329. ]
  1330. }
  1331. }
  1332. }
  1333. }
  1334. },
  1335. "/autoCode/getTables": {
  1336. "get": {
  1337. "security": [
  1338. {
  1339. "ApiKeyAuth": []
  1340. }
  1341. ],
  1342. "consumes": [
  1343. "application/json"
  1344. ],
  1345. "produces": [
  1346. "application/json"
  1347. ],
  1348. "tags": [
  1349. "AutoCode"
  1350. ],
  1351. "summary": "获取当前数据库所有表",
  1352. "responses": {
  1353. "200": {
  1354. "description": "获取当前数据库所有表",
  1355. "schema": {
  1356. "allOf": [
  1357. {
  1358. "$ref": "#/definitions/response.Response"
  1359. },
  1360. {
  1361. "type": "object",
  1362. "properties": {
  1363. "data": {
  1364. "type": "object",
  1365. "additionalProperties": true
  1366. },
  1367. "msg": {
  1368. "type": "string"
  1369. }
  1370. }
  1371. }
  1372. ]
  1373. }
  1374. }
  1375. }
  1376. }
  1377. },
  1378. "/autoCode/installPlugin": {
  1379. "post": {
  1380. "security": [
  1381. {
  1382. "ApiKeyAuth": []
  1383. }
  1384. ],
  1385. "consumes": [
  1386. "multipart/form-data"
  1387. ],
  1388. "produces": [
  1389. "application/json"
  1390. ],
  1391. "tags": [
  1392. "AutoCode"
  1393. ],
  1394. "summary": "安装插件",
  1395. "parameters": [
  1396. {
  1397. "type": "file",
  1398. "description": "this is a test file",
  1399. "name": "plug",
  1400. "in": "formData",
  1401. "required": true
  1402. }
  1403. ],
  1404. "responses": {
  1405. "200": {
  1406. "description": "安装插件成功",
  1407. "schema": {
  1408. "allOf": [
  1409. {
  1410. "$ref": "#/definitions/response.Response"
  1411. },
  1412. {
  1413. "type": "object",
  1414. "properties": {
  1415. "data": {
  1416. "type": "array",
  1417. "items": {
  1418. "type": "object"
  1419. }
  1420. },
  1421. "msg": {
  1422. "type": "string"
  1423. }
  1424. }
  1425. }
  1426. ]
  1427. }
  1428. }
  1429. }
  1430. }
  1431. },
  1432. "/autoCode/preview": {
  1433. "post": {
  1434. "security": [
  1435. {
  1436. "ApiKeyAuth": []
  1437. }
  1438. ],
  1439. "consumes": [
  1440. "application/json"
  1441. ],
  1442. "produces": [
  1443. "application/json"
  1444. ],
  1445. "tags": [
  1446. "AutoCode"
  1447. ],
  1448. "summary": "预览创建后的代码",
  1449. "parameters": [
  1450. {
  1451. "description": "预览创建代码",
  1452. "name": "data",
  1453. "in": "body",
  1454. "required": true,
  1455. "schema": {
  1456. "$ref": "#/definitions/system.AutoCodeStruct"
  1457. }
  1458. }
  1459. ],
  1460. "responses": {
  1461. "200": {
  1462. "description": "预览创建后的代码",
  1463. "schema": {
  1464. "allOf": [
  1465. {
  1466. "$ref": "#/definitions/response.Response"
  1467. },
  1468. {
  1469. "type": "object",
  1470. "properties": {
  1471. "data": {
  1472. "type": "object",
  1473. "additionalProperties": true
  1474. },
  1475. "msg": {
  1476. "type": "string"
  1477. }
  1478. }
  1479. }
  1480. ]
  1481. }
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "/autoCode/pubPlug": {
  1487. "get": {
  1488. "security": [
  1489. {
  1490. "ApiKeyAuth": []
  1491. }
  1492. ],
  1493. "consumes": [
  1494. "application/json"
  1495. ],
  1496. "produces": [
  1497. "application/json"
  1498. ],
  1499. "tags": [
  1500. "AutoCode"
  1501. ],
  1502. "summary": "打包插件",
  1503. "parameters": [
  1504. {
  1505. "description": "打包插件",
  1506. "name": "data",
  1507. "in": "body",
  1508. "required": true,
  1509. "schema": {
  1510. "$ref": "#/definitions/system.SysAutoCode"
  1511. }
  1512. }
  1513. ],
  1514. "responses": {
  1515. "200": {
  1516. "description": "打包插件成功",
  1517. "schema": {
  1518. "allOf": [
  1519. {
  1520. "$ref": "#/definitions/response.Response"
  1521. },
  1522. {
  1523. "type": "object",
  1524. "properties": {
  1525. "data": {
  1526. "type": "object",
  1527. "additionalProperties": true
  1528. },
  1529. "msg": {
  1530. "type": "string"
  1531. }
  1532. }
  1533. }
  1534. ]
  1535. }
  1536. }
  1537. }
  1538. }
  1539. },
  1540. "/autoCode/rollback": {
  1541. "post": {
  1542. "security": [
  1543. {
  1544. "ApiKeyAuth": []
  1545. }
  1546. ],
  1547. "consumes": [
  1548. "application/json"
  1549. ],
  1550. "produces": [
  1551. "application/json"
  1552. ],
  1553. "tags": [
  1554. "AutoCode"
  1555. ],
  1556. "summary": "回滚自动生成代码",
  1557. "parameters": [
  1558. {
  1559. "description": "请求参数",
  1560. "name": "data",
  1561. "in": "body",
  1562. "required": true,
  1563. "schema": {
  1564. "$ref": "#/definitions/request.RollBack"
  1565. }
  1566. }
  1567. ],
  1568. "responses": {
  1569. "200": {
  1570. "description": "回滚自动生成代码",
  1571. "schema": {
  1572. "allOf": [
  1573. {
  1574. "$ref": "#/definitions/response.Response"
  1575. },
  1576. {
  1577. "type": "object",
  1578. "properties": {
  1579. "msg": {
  1580. "type": "string"
  1581. }
  1582. }
  1583. }
  1584. ]
  1585. }
  1586. }
  1587. }
  1588. }
  1589. },
  1590. "/base/captcha": {
  1591. "post": {
  1592. "security": [
  1593. {
  1594. "ApiKeyAuth": []
  1595. }
  1596. ],
  1597. "consumes": [
  1598. "application/json"
  1599. ],
  1600. "produces": [
  1601. "application/json"
  1602. ],
  1603. "tags": [
  1604. "Base"
  1605. ],
  1606. "summary": "生成验证码",
  1607. "responses": {
  1608. "200": {
  1609. "description": "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码",
  1610. "schema": {
  1611. "allOf": [
  1612. {
  1613. "$ref": "#/definitions/response.Response"
  1614. },
  1615. {
  1616. "type": "object",
  1617. "properties": {
  1618. "data": {
  1619. "$ref": "#/definitions/response.SysCaptchaResponse"
  1620. },
  1621. "msg": {
  1622. "type": "string"
  1623. }
  1624. }
  1625. }
  1626. ]
  1627. }
  1628. }
  1629. }
  1630. }
  1631. },
  1632. "/base/login": {
  1633. "post": {
  1634. "produces": [
  1635. "application/json"
  1636. ],
  1637. "tags": [
  1638. "Base"
  1639. ],
  1640. "summary": "用户登录",
  1641. "parameters": [
  1642. {
  1643. "description": "用户名, 密码, 验证码",
  1644. "name": "data",
  1645. "in": "body",
  1646. "required": true,
  1647. "schema": {
  1648. "$ref": "#/definitions/request.Login"
  1649. }
  1650. }
  1651. ],
  1652. "responses": {
  1653. "200": {
  1654. "description": "返回包括用户信息,token,过期时间",
  1655. "schema": {
  1656. "allOf": [
  1657. {
  1658. "$ref": "#/definitions/response.Response"
  1659. },
  1660. {
  1661. "type": "object",
  1662. "properties": {
  1663. "data": {
  1664. "$ref": "#/definitions/response.LoginResponse"
  1665. },
  1666. "msg": {
  1667. "type": "string"
  1668. }
  1669. }
  1670. }
  1671. ]
  1672. }
  1673. }
  1674. }
  1675. }
  1676. },
  1677. "/casbin/UpdateCasbin": {
  1678. "post": {
  1679. "security": [
  1680. {
  1681. "ApiKeyAuth": []
  1682. }
  1683. ],
  1684. "consumes": [
  1685. "application/json"
  1686. ],
  1687. "produces": [
  1688. "application/json"
  1689. ],
  1690. "tags": [
  1691. "Casbin"
  1692. ],
  1693. "summary": "更新角色api权限",
  1694. "parameters": [
  1695. {
  1696. "description": "权限id, 权限模型列表",
  1697. "name": "data",
  1698. "in": "body",
  1699. "required": true,
  1700. "schema": {
  1701. "$ref": "#/definitions/request.CasbinInReceive"
  1702. }
  1703. }
  1704. ],
  1705. "responses": {
  1706. "200": {
  1707. "description": "更新角色api权限",
  1708. "schema": {
  1709. "allOf": [
  1710. {
  1711. "$ref": "#/definitions/response.Response"
  1712. },
  1713. {
  1714. "type": "object",
  1715. "properties": {
  1716. "msg": {
  1717. "type": "string"
  1718. }
  1719. }
  1720. }
  1721. ]
  1722. }
  1723. }
  1724. }
  1725. }
  1726. },
  1727. "/casbin/getPolicyPathByAuthorityId": {
  1728. "post": {
  1729. "security": [
  1730. {
  1731. "ApiKeyAuth": []
  1732. }
  1733. ],
  1734. "consumes": [
  1735. "application/json"
  1736. ],
  1737. "produces": [
  1738. "application/json"
  1739. ],
  1740. "tags": [
  1741. "Casbin"
  1742. ],
  1743. "summary": "获取权限列表",
  1744. "parameters": [
  1745. {
  1746. "description": "权限id, 权限模型列表",
  1747. "name": "data",
  1748. "in": "body",
  1749. "required": true,
  1750. "schema": {
  1751. "$ref": "#/definitions/request.CasbinInReceive"
  1752. }
  1753. }
  1754. ],
  1755. "responses": {
  1756. "200": {
  1757. "description": "获取权限列表,返回包括casbin详情列表",
  1758. "schema": {
  1759. "allOf": [
  1760. {
  1761. "$ref": "#/definitions/response.Response"
  1762. },
  1763. {
  1764. "type": "object",
  1765. "properties": {
  1766. "data": {
  1767. "$ref": "#/definitions/response.PolicyPathResponse"
  1768. },
  1769. "msg": {
  1770. "type": "string"
  1771. }
  1772. }
  1773. }
  1774. ]
  1775. }
  1776. }
  1777. }
  1778. }
  1779. },
  1780. "/customer/customer": {
  1781. "get": {
  1782. "security": [
  1783. {
  1784. "ApiKeyAuth": []
  1785. }
  1786. ],
  1787. "consumes": [
  1788. "application/json"
  1789. ],
  1790. "produces": [
  1791. "application/json"
  1792. ],
  1793. "tags": [
  1794. "ExaCustomer"
  1795. ],
  1796. "summary": "获取单一客户信息",
  1797. "parameters": [
  1798. {
  1799. "type": "integer",
  1800. "description": "主键ID",
  1801. "name": "ID",
  1802. "in": "query"
  1803. },
  1804. {
  1805. "type": "string",
  1806. "description": "创建时间",
  1807. "name": "createdAt",
  1808. "in": "query"
  1809. },
  1810. {
  1811. "type": "string",
  1812. "description": "客户名",
  1813. "name": "customerName",
  1814. "in": "query"
  1815. },
  1816. {
  1817. "type": "string",
  1818. "description": "客户手机号",
  1819. "name": "customerPhoneData",
  1820. "in": "query"
  1821. },
  1822. {
  1823. "type": "integer",
  1824. "description": "管理角色ID",
  1825. "name": "sysUserAuthorityID",
  1826. "in": "query"
  1827. },
  1828. {
  1829. "type": "integer",
  1830. "description": "管理ID",
  1831. "name": "sysUserId",
  1832. "in": "query"
  1833. },
  1834. {
  1835. "type": "string",
  1836. "description": "更新时间",
  1837. "name": "updatedAt",
  1838. "in": "query"
  1839. }
  1840. ],
  1841. "responses": {
  1842. "200": {
  1843. "description": "获取单一客户信息,返回包括客户详情",
  1844. "schema": {
  1845. "allOf": [
  1846. {
  1847. "$ref": "#/definitions/response.Response"
  1848. },
  1849. {
  1850. "type": "object",
  1851. "properties": {
  1852. "data": {
  1853. "$ref": "#/definitions/response.ExaCustomerResponse"
  1854. },
  1855. "msg": {
  1856. "type": "string"
  1857. }
  1858. }
  1859. }
  1860. ]
  1861. }
  1862. }
  1863. }
  1864. },
  1865. "put": {
  1866. "security": [
  1867. {
  1868. "ApiKeyAuth": []
  1869. }
  1870. ],
  1871. "consumes": [
  1872. "application/json"
  1873. ],
  1874. "produces": [
  1875. "application/json"
  1876. ],
  1877. "tags": [
  1878. "ExaCustomer"
  1879. ],
  1880. "summary": "更新客户信息",
  1881. "parameters": [
  1882. {
  1883. "description": "客户ID, 客户信息",
  1884. "name": "data",
  1885. "in": "body",
  1886. "required": true,
  1887. "schema": {
  1888. "$ref": "#/definitions/example.ExaCustomer"
  1889. }
  1890. }
  1891. ],
  1892. "responses": {
  1893. "200": {
  1894. "description": "更新客户信息",
  1895. "schema": {
  1896. "allOf": [
  1897. {
  1898. "$ref": "#/definitions/response.Response"
  1899. },
  1900. {
  1901. "type": "object",
  1902. "properties": {
  1903. "msg": {
  1904. "type": "string"
  1905. }
  1906. }
  1907. }
  1908. ]
  1909. }
  1910. }
  1911. }
  1912. },
  1913. "post": {
  1914. "security": [
  1915. {
  1916. "ApiKeyAuth": []
  1917. }
  1918. ],
  1919. "consumes": [
  1920. "application/json"
  1921. ],
  1922. "produces": [
  1923. "application/json"
  1924. ],
  1925. "tags": [
  1926. "ExaCustomer"
  1927. ],
  1928. "summary": "创建客户",
  1929. "parameters": [
  1930. {
  1931. "description": "客户用户名, 客户手机号码",
  1932. "name": "data",
  1933. "in": "body",
  1934. "required": true,
  1935. "schema": {
  1936. "$ref": "#/definitions/example.ExaCustomer"
  1937. }
  1938. }
  1939. ],
  1940. "responses": {
  1941. "200": {
  1942. "description": "创建客户",
  1943. "schema": {
  1944. "allOf": [
  1945. {
  1946. "$ref": "#/definitions/response.Response"
  1947. },
  1948. {
  1949. "type": "object",
  1950. "properties": {
  1951. "msg": {
  1952. "type": "string"
  1953. }
  1954. }
  1955. }
  1956. ]
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "delete": {
  1962. "security": [
  1963. {
  1964. "ApiKeyAuth": []
  1965. }
  1966. ],
  1967. "consumes": [
  1968. "application/json"
  1969. ],
  1970. "produces": [
  1971. "application/json"
  1972. ],
  1973. "tags": [
  1974. "ExaCustomer"
  1975. ],
  1976. "summary": "删除客户",
  1977. "parameters": [
  1978. {
  1979. "description": "客户ID",
  1980. "name": "data",
  1981. "in": "body",
  1982. "required": true,
  1983. "schema": {
  1984. "$ref": "#/definitions/example.ExaCustomer"
  1985. }
  1986. }
  1987. ],
  1988. "responses": {
  1989. "200": {
  1990. "description": "删除客户",
  1991. "schema": {
  1992. "allOf": [
  1993. {
  1994. "$ref": "#/definitions/response.Response"
  1995. },
  1996. {
  1997. "type": "object",
  1998. "properties": {
  1999. "msg": {
  2000. "type": "string"
  2001. }
  2002. }
  2003. }
  2004. ]
  2005. }
  2006. }
  2007. }
  2008. }
  2009. },
  2010. "/customer/customerList": {
  2011. "get": {
  2012. "security": [
  2013. {
  2014. "ApiKeyAuth": []
  2015. }
  2016. ],
  2017. "consumes": [
  2018. "application/json"
  2019. ],
  2020. "produces": [
  2021. "application/json"
  2022. ],
  2023. "tags": [
  2024. "ExaCustomer"
  2025. ],
  2026. "summary": "分页获取权限客户列表",
  2027. "parameters": [
  2028. {
  2029. "type": "string",
  2030. "description": "关键字",
  2031. "name": "keyword",
  2032. "in": "query"
  2033. },
  2034. {
  2035. "type": "integer",
  2036. "description": "页码",
  2037. "name": "page",
  2038. "in": "query"
  2039. },
  2040. {
  2041. "type": "integer",
  2042. "description": "每页大小",
  2043. "name": "pageSize",
  2044. "in": "query"
  2045. }
  2046. ],
  2047. "responses": {
  2048. "200": {
  2049. "description": "分页获取权限客户列表,返回包括列表,总数,页码,每页数量",
  2050. "schema": {
  2051. "allOf": [
  2052. {
  2053. "$ref": "#/definitions/response.Response"
  2054. },
  2055. {
  2056. "type": "object",
  2057. "properties": {
  2058. "data": {
  2059. "$ref": "#/definitions/response.PageResult"
  2060. },
  2061. "msg": {
  2062. "type": "string"
  2063. }
  2064. }
  2065. }
  2066. ]
  2067. }
  2068. }
  2069. }
  2070. }
  2071. },
  2072. "/email/emailTest": {
  2073. "post": {
  2074. "security": [
  2075. {
  2076. "ApiKeyAuth": []
  2077. }
  2078. ],
  2079. "produces": [
  2080. "application/json"
  2081. ],
  2082. "tags": [
  2083. "System"
  2084. ],
  2085. "summary": "发送测试邮件",
  2086. "responses": {
  2087. "200": {
  2088. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2089. "schema": {
  2090. "type": "string"
  2091. }
  2092. }
  2093. }
  2094. }
  2095. },
  2096. "/email/sendEmail": {
  2097. "post": {
  2098. "security": [
  2099. {
  2100. "ApiKeyAuth": []
  2101. }
  2102. ],
  2103. "produces": [
  2104. "application/json"
  2105. ],
  2106. "tags": [
  2107. "System"
  2108. ],
  2109. "summary": "发送邮件",
  2110. "parameters": [
  2111. {
  2112. "description": "发送邮件必须的参数",
  2113. "name": "data",
  2114. "in": "body",
  2115. "required": true,
  2116. "schema": {
  2117. "$ref": "#/definitions/response.Email"
  2118. }
  2119. }
  2120. ],
  2121. "responses": {
  2122. "200": {
  2123. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2124. "schema": {
  2125. "type": "string"
  2126. }
  2127. }
  2128. }
  2129. }
  2130. },
  2131. "/fileUploadAndDownload/breakpointContinue": {
  2132. "post": {
  2133. "security": [
  2134. {
  2135. "ApiKeyAuth": []
  2136. }
  2137. ],
  2138. "consumes": [
  2139. "multipart/form-data"
  2140. ],
  2141. "produces": [
  2142. "application/json"
  2143. ],
  2144. "tags": [
  2145. "ExaFileUploadAndDownload"
  2146. ],
  2147. "summary": "断点续传到服务器",
  2148. "parameters": [
  2149. {
  2150. "type": "file",
  2151. "description": "an example for breakpoint resume, 断点续传示例",
  2152. "name": "file",
  2153. "in": "formData",
  2154. "required": true
  2155. }
  2156. ],
  2157. "responses": {
  2158. "200": {
  2159. "description": "断点续传到服务器",
  2160. "schema": {
  2161. "allOf": [
  2162. {
  2163. "$ref": "#/definitions/response.Response"
  2164. },
  2165. {
  2166. "type": "object",
  2167. "properties": {
  2168. "msg": {
  2169. "type": "string"
  2170. }
  2171. }
  2172. }
  2173. ]
  2174. }
  2175. }
  2176. }
  2177. }
  2178. },
  2179. "/fileUploadAndDownload/deleteFile": {
  2180. "post": {
  2181. "security": [
  2182. {
  2183. "ApiKeyAuth": []
  2184. }
  2185. ],
  2186. "produces": [
  2187. "application/json"
  2188. ],
  2189. "tags": [
  2190. "ExaFileUploadAndDownload"
  2191. ],
  2192. "summary": "删除文件",
  2193. "parameters": [
  2194. {
  2195. "description": "传入文件里面id即可",
  2196. "name": "data",
  2197. "in": "body",
  2198. "required": true,
  2199. "schema": {
  2200. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2201. }
  2202. }
  2203. ],
  2204. "responses": {
  2205. "200": {
  2206. "description": "删除文件",
  2207. "schema": {
  2208. "allOf": [
  2209. {
  2210. "$ref": "#/definitions/response.Response"
  2211. },
  2212. {
  2213. "type": "object",
  2214. "properties": {
  2215. "msg": {
  2216. "type": "string"
  2217. }
  2218. }
  2219. }
  2220. ]
  2221. }
  2222. }
  2223. }
  2224. }
  2225. },
  2226. "/fileUploadAndDownload/findFile": {
  2227. "post": {
  2228. "security": [
  2229. {
  2230. "ApiKeyAuth": []
  2231. }
  2232. ],
  2233. "consumes": [
  2234. "multipart/form-data"
  2235. ],
  2236. "produces": [
  2237. "application/json"
  2238. ],
  2239. "tags": [
  2240. "ExaFileUploadAndDownload"
  2241. ],
  2242. "summary": "创建文件",
  2243. "parameters": [
  2244. {
  2245. "type": "file",
  2246. "description": "上传文件完成",
  2247. "name": "file",
  2248. "in": "formData",
  2249. "required": true
  2250. }
  2251. ],
  2252. "responses": {
  2253. "200": {
  2254. "description": "创建文件,返回包括文件路径",
  2255. "schema": {
  2256. "allOf": [
  2257. {
  2258. "$ref": "#/definitions/response.Response"
  2259. },
  2260. {
  2261. "type": "object",
  2262. "properties": {
  2263. "data": {
  2264. "$ref": "#/definitions/response.FilePathResponse"
  2265. },
  2266. "msg": {
  2267. "type": "string"
  2268. }
  2269. }
  2270. }
  2271. ]
  2272. }
  2273. }
  2274. }
  2275. }
  2276. },
  2277. "/fileUploadAndDownload/getFileList": {
  2278. "post": {
  2279. "security": [
  2280. {
  2281. "ApiKeyAuth": []
  2282. }
  2283. ],
  2284. "consumes": [
  2285. "application/json"
  2286. ],
  2287. "produces": [
  2288. "application/json"
  2289. ],
  2290. "tags": [
  2291. "ExaFileUploadAndDownload"
  2292. ],
  2293. "summary": "分页文件列表",
  2294. "parameters": [
  2295. {
  2296. "description": "页码, 每页大小",
  2297. "name": "data",
  2298. "in": "body",
  2299. "required": true,
  2300. "schema": {
  2301. "$ref": "#/definitions/request.PageInfo"
  2302. }
  2303. }
  2304. ],
  2305. "responses": {
  2306. "200": {
  2307. "description": "分页文件列表,返回包括列表,总数,页码,每页数量",
  2308. "schema": {
  2309. "allOf": [
  2310. {
  2311. "$ref": "#/definitions/response.Response"
  2312. },
  2313. {
  2314. "type": "object",
  2315. "properties": {
  2316. "data": {
  2317. "$ref": "#/definitions/response.PageResult"
  2318. },
  2319. "msg": {
  2320. "type": "string"
  2321. }
  2322. }
  2323. }
  2324. ]
  2325. }
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "/fileUploadAndDownload/removeChunk": {
  2331. "post": {
  2332. "security": [
  2333. {
  2334. "ApiKeyAuth": []
  2335. }
  2336. ],
  2337. "consumes": [
  2338. "multipart/form-data"
  2339. ],
  2340. "produces": [
  2341. "application/json"
  2342. ],
  2343. "tags": [
  2344. "ExaFileUploadAndDownload"
  2345. ],
  2346. "summary": "删除切片",
  2347. "parameters": [
  2348. {
  2349. "type": "file",
  2350. "description": "删除缓存切片",
  2351. "name": "file",
  2352. "in": "formData",
  2353. "required": true
  2354. }
  2355. ],
  2356. "responses": {
  2357. "200": {
  2358. "description": "删除切片",
  2359. "schema": {
  2360. "allOf": [
  2361. {
  2362. "$ref": "#/definitions/response.Response"
  2363. },
  2364. {
  2365. "type": "object",
  2366. "properties": {
  2367. "msg": {
  2368. "type": "string"
  2369. }
  2370. }
  2371. }
  2372. ]
  2373. }
  2374. }
  2375. }
  2376. }
  2377. },
  2378. "/fileUploadAndDownload/upload": {
  2379. "post": {
  2380. "security": [
  2381. {
  2382. "ApiKeyAuth": []
  2383. }
  2384. ],
  2385. "consumes": [
  2386. "multipart/form-data"
  2387. ],
  2388. "produces": [
  2389. "application/json"
  2390. ],
  2391. "tags": [
  2392. "ExaFileUploadAndDownload"
  2393. ],
  2394. "summary": "上传文件示例",
  2395. "parameters": [
  2396. {
  2397. "type": "file",
  2398. "description": "上传文件示例",
  2399. "name": "file",
  2400. "in": "formData",
  2401. "required": true
  2402. }
  2403. ],
  2404. "responses": {
  2405. "200": {
  2406. "description": "上传文件示例,返回包括文件详情",
  2407. "schema": {
  2408. "allOf": [
  2409. {
  2410. "$ref": "#/definitions/response.Response"
  2411. },
  2412. {
  2413. "type": "object",
  2414. "properties": {
  2415. "data": {
  2416. "$ref": "#/definitions/response.ExaFileResponse"
  2417. },
  2418. "msg": {
  2419. "type": "string"
  2420. }
  2421. }
  2422. }
  2423. ]
  2424. }
  2425. }
  2426. }
  2427. }
  2428. },
  2429. "/init/checkdb": {
  2430. "post": {
  2431. "produces": [
  2432. "application/json"
  2433. ],
  2434. "tags": [
  2435. "CheckDB"
  2436. ],
  2437. "summary": "初始化用户数据库",
  2438. "responses": {
  2439. "200": {
  2440. "description": "初始化用户数据库",
  2441. "schema": {
  2442. "allOf": [
  2443. {
  2444. "$ref": "#/definitions/response.Response"
  2445. },
  2446. {
  2447. "type": "object",
  2448. "properties": {
  2449. "data": {
  2450. "type": "object",
  2451. "additionalProperties": true
  2452. },
  2453. "msg": {
  2454. "type": "string"
  2455. }
  2456. }
  2457. }
  2458. ]
  2459. }
  2460. }
  2461. }
  2462. }
  2463. },
  2464. "/init/initdb": {
  2465. "post": {
  2466. "produces": [
  2467. "application/json"
  2468. ],
  2469. "tags": [
  2470. "InitDB"
  2471. ],
  2472. "summary": "初始化用户数据库",
  2473. "parameters": [
  2474. {
  2475. "description": "初始化数据库参数",
  2476. "name": "data",
  2477. "in": "body",
  2478. "required": true,
  2479. "schema": {
  2480. "$ref": "#/definitions/request.InitDB"
  2481. }
  2482. }
  2483. ],
  2484. "responses": {
  2485. "200": {
  2486. "description": "初始化用户数据库",
  2487. "schema": {
  2488. "allOf": [
  2489. {
  2490. "$ref": "#/definitions/response.Response"
  2491. },
  2492. {
  2493. "type": "object",
  2494. "properties": {
  2495. "data": {
  2496. "type": "string"
  2497. }
  2498. }
  2499. }
  2500. ]
  2501. }
  2502. }
  2503. }
  2504. }
  2505. },
  2506. "/jwt/jsonInBlacklist": {
  2507. "post": {
  2508. "security": [
  2509. {
  2510. "ApiKeyAuth": []
  2511. }
  2512. ],
  2513. "consumes": [
  2514. "application/json"
  2515. ],
  2516. "produces": [
  2517. "application/json"
  2518. ],
  2519. "tags": [
  2520. "Jwt"
  2521. ],
  2522. "summary": "jwt加入黑名单",
  2523. "responses": {
  2524. "200": {
  2525. "description": "jwt加入黑名单",
  2526. "schema": {
  2527. "allOf": [
  2528. {
  2529. "$ref": "#/definitions/response.Response"
  2530. },
  2531. {
  2532. "type": "object",
  2533. "properties": {
  2534. "msg": {
  2535. "type": "string"
  2536. }
  2537. }
  2538. }
  2539. ]
  2540. }
  2541. }
  2542. }
  2543. }
  2544. },
  2545. "/menu/addBaseMenu": {
  2546. "post": {
  2547. "security": [
  2548. {
  2549. "ApiKeyAuth": []
  2550. }
  2551. ],
  2552. "consumes": [
  2553. "application/json"
  2554. ],
  2555. "produces": [
  2556. "application/json"
  2557. ],
  2558. "tags": [
  2559. "Menu"
  2560. ],
  2561. "summary": "新增菜单",
  2562. "parameters": [
  2563. {
  2564. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2565. "name": "data",
  2566. "in": "body",
  2567. "required": true,
  2568. "schema": {
  2569. "$ref": "#/definitions/system.SysBaseMenu"
  2570. }
  2571. }
  2572. ],
  2573. "responses": {
  2574. "200": {
  2575. "description": "新增菜单",
  2576. "schema": {
  2577. "allOf": [
  2578. {
  2579. "$ref": "#/definitions/response.Response"
  2580. },
  2581. {
  2582. "type": "object",
  2583. "properties": {
  2584. "msg": {
  2585. "type": "string"
  2586. }
  2587. }
  2588. }
  2589. ]
  2590. }
  2591. }
  2592. }
  2593. }
  2594. },
  2595. "/menu/addMenuAuthority": {
  2596. "post": {
  2597. "security": [
  2598. {
  2599. "ApiKeyAuth": []
  2600. }
  2601. ],
  2602. "consumes": [
  2603. "application/json"
  2604. ],
  2605. "produces": [
  2606. "application/json"
  2607. ],
  2608. "tags": [
  2609. "AuthorityMenu"
  2610. ],
  2611. "summary": "增加menu和角色关联关系",
  2612. "parameters": [
  2613. {
  2614. "description": "角色ID",
  2615. "name": "data",
  2616. "in": "body",
  2617. "required": true,
  2618. "schema": {
  2619. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  2620. }
  2621. }
  2622. ],
  2623. "responses": {
  2624. "200": {
  2625. "description": "增加menu和角色关联关系",
  2626. "schema": {
  2627. "allOf": [
  2628. {
  2629. "$ref": "#/definitions/response.Response"
  2630. },
  2631. {
  2632. "type": "object",
  2633. "properties": {
  2634. "msg": {
  2635. "type": "string"
  2636. }
  2637. }
  2638. }
  2639. ]
  2640. }
  2641. }
  2642. }
  2643. }
  2644. },
  2645. "/menu/deleteBaseMenu": {
  2646. "post": {
  2647. "security": [
  2648. {
  2649. "ApiKeyAuth": []
  2650. }
  2651. ],
  2652. "consumes": [
  2653. "application/json"
  2654. ],
  2655. "produces": [
  2656. "application/json"
  2657. ],
  2658. "tags": [
  2659. "Menu"
  2660. ],
  2661. "summary": "删除菜单",
  2662. "parameters": [
  2663. {
  2664. "description": "菜单id",
  2665. "name": "data",
  2666. "in": "body",
  2667. "required": true,
  2668. "schema": {
  2669. "$ref": "#/definitions/request.GetById"
  2670. }
  2671. }
  2672. ],
  2673. "responses": {
  2674. "200": {
  2675. "description": "删除菜单",
  2676. "schema": {
  2677. "allOf": [
  2678. {
  2679. "$ref": "#/definitions/response.Response"
  2680. },
  2681. {
  2682. "type": "object",
  2683. "properties": {
  2684. "msg": {
  2685. "type": "string"
  2686. }
  2687. }
  2688. }
  2689. ]
  2690. }
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "/menu/getBaseMenuById": {
  2696. "post": {
  2697. "security": [
  2698. {
  2699. "ApiKeyAuth": []
  2700. }
  2701. ],
  2702. "consumes": [
  2703. "application/json"
  2704. ],
  2705. "produces": [
  2706. "application/json"
  2707. ],
  2708. "tags": [
  2709. "Menu"
  2710. ],
  2711. "summary": "根据id获取菜单",
  2712. "parameters": [
  2713. {
  2714. "description": "菜单id",
  2715. "name": "data",
  2716. "in": "body",
  2717. "required": true,
  2718. "schema": {
  2719. "$ref": "#/definitions/request.GetById"
  2720. }
  2721. }
  2722. ],
  2723. "responses": {
  2724. "200": {
  2725. "description": "根据id获取菜单,返回包括系统菜单列表",
  2726. "schema": {
  2727. "allOf": [
  2728. {
  2729. "$ref": "#/definitions/response.Response"
  2730. },
  2731. {
  2732. "type": "object",
  2733. "properties": {
  2734. "data": {
  2735. "$ref": "#/definitions/response.SysBaseMenuResponse"
  2736. },
  2737. "msg": {
  2738. "type": "string"
  2739. }
  2740. }
  2741. }
  2742. ]
  2743. }
  2744. }
  2745. }
  2746. }
  2747. },
  2748. "/menu/getBaseMenuTree": {
  2749. "post": {
  2750. "security": [
  2751. {
  2752. "ApiKeyAuth": []
  2753. }
  2754. ],
  2755. "produces": [
  2756. "application/json"
  2757. ],
  2758. "tags": [
  2759. "AuthorityMenu"
  2760. ],
  2761. "summary": "获取用户动态路由",
  2762. "parameters": [
  2763. {
  2764. "description": "空",
  2765. "name": "data",
  2766. "in": "body",
  2767. "required": true,
  2768. "schema": {
  2769. "$ref": "#/definitions/request.Empty"
  2770. }
  2771. }
  2772. ],
  2773. "responses": {
  2774. "200": {
  2775. "description": "获取用户动态路由,返回包括系统菜单列表",
  2776. "schema": {
  2777. "allOf": [
  2778. {
  2779. "$ref": "#/definitions/response.Response"
  2780. },
  2781. {
  2782. "type": "object",
  2783. "properties": {
  2784. "data": {
  2785. "$ref": "#/definitions/response.SysBaseMenusResponse"
  2786. },
  2787. "msg": {
  2788. "type": "string"
  2789. }
  2790. }
  2791. }
  2792. ]
  2793. }
  2794. }
  2795. }
  2796. }
  2797. },
  2798. "/menu/getMenu": {
  2799. "post": {
  2800. "security": [
  2801. {
  2802. "ApiKeyAuth": []
  2803. }
  2804. ],
  2805. "produces": [
  2806. "application/json"
  2807. ],
  2808. "tags": [
  2809. "AuthorityMenu"
  2810. ],
  2811. "summary": "获取用户动态路由",
  2812. "parameters": [
  2813. {
  2814. "description": "空",
  2815. "name": "data",
  2816. "in": "body",
  2817. "required": true,
  2818. "schema": {
  2819. "$ref": "#/definitions/request.Empty"
  2820. }
  2821. }
  2822. ],
  2823. "responses": {
  2824. "200": {
  2825. "description": "获取用户动态路由,返回包括系统菜单详情列表",
  2826. "schema": {
  2827. "allOf": [
  2828. {
  2829. "$ref": "#/definitions/response.Response"
  2830. },
  2831. {
  2832. "type": "object",
  2833. "properties": {
  2834. "data": {
  2835. "$ref": "#/definitions/response.SysMenusResponse"
  2836. },
  2837. "msg": {
  2838. "type": "string"
  2839. }
  2840. }
  2841. }
  2842. ]
  2843. }
  2844. }
  2845. }
  2846. }
  2847. },
  2848. "/menu/getMenuAuthority": {
  2849. "post": {
  2850. "security": [
  2851. {
  2852. "ApiKeyAuth": []
  2853. }
  2854. ],
  2855. "consumes": [
  2856. "application/json"
  2857. ],
  2858. "produces": [
  2859. "application/json"
  2860. ],
  2861. "tags": [
  2862. "AuthorityMenu"
  2863. ],
  2864. "summary": "获取指定角色menu",
  2865. "parameters": [
  2866. {
  2867. "description": "角色ID",
  2868. "name": "data",
  2869. "in": "body",
  2870. "required": true,
  2871. "schema": {
  2872. "$ref": "#/definitions/request.GetAuthorityId"
  2873. }
  2874. }
  2875. ],
  2876. "responses": {
  2877. "200": {
  2878. "description": "获取指定角色menu",
  2879. "schema": {
  2880. "allOf": [
  2881. {
  2882. "$ref": "#/definitions/response.Response"
  2883. },
  2884. {
  2885. "type": "object",
  2886. "properties": {
  2887. "data": {
  2888. "type": "object",
  2889. "additionalProperties": true
  2890. },
  2891. "msg": {
  2892. "type": "string"
  2893. }
  2894. }
  2895. }
  2896. ]
  2897. }
  2898. }
  2899. }
  2900. }
  2901. },
  2902. "/menu/getMenuList": {
  2903. "post": {
  2904. "security": [
  2905. {
  2906. "ApiKeyAuth": []
  2907. }
  2908. ],
  2909. "consumes": [
  2910. "application/json"
  2911. ],
  2912. "produces": [
  2913. "application/json"
  2914. ],
  2915. "tags": [
  2916. "Menu"
  2917. ],
  2918. "summary": "分页获取基础menu列表",
  2919. "parameters": [
  2920. {
  2921. "description": "页码, 每页大小",
  2922. "name": "data",
  2923. "in": "body",
  2924. "required": true,
  2925. "schema": {
  2926. "$ref": "#/definitions/request.PageInfo"
  2927. }
  2928. }
  2929. ],
  2930. "responses": {
  2931. "200": {
  2932. "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量",
  2933. "schema": {
  2934. "allOf": [
  2935. {
  2936. "$ref": "#/definitions/response.Response"
  2937. },
  2938. {
  2939. "type": "object",
  2940. "properties": {
  2941. "data": {
  2942. "$ref": "#/definitions/response.PageResult"
  2943. },
  2944. "msg": {
  2945. "type": "string"
  2946. }
  2947. }
  2948. }
  2949. ]
  2950. }
  2951. }
  2952. }
  2953. }
  2954. },
  2955. "/menu/updateBaseMenu": {
  2956. "post": {
  2957. "security": [
  2958. {
  2959. "ApiKeyAuth": []
  2960. }
  2961. ],
  2962. "consumes": [
  2963. "application/json"
  2964. ],
  2965. "produces": [
  2966. "application/json"
  2967. ],
  2968. "tags": [
  2969. "Menu"
  2970. ],
  2971. "summary": "更新菜单",
  2972. "parameters": [
  2973. {
  2974. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2975. "name": "data",
  2976. "in": "body",
  2977. "required": true,
  2978. "schema": {
  2979. "$ref": "#/definitions/system.SysBaseMenu"
  2980. }
  2981. }
  2982. ],
  2983. "responses": {
  2984. "200": {
  2985. "description": "更新菜单",
  2986. "schema": {
  2987. "allOf": [
  2988. {
  2989. "$ref": "#/definitions/response.Response"
  2990. },
  2991. {
  2992. "type": "object",
  2993. "properties": {
  2994. "msg": {
  2995. "type": "string"
  2996. }
  2997. }
  2998. }
  2999. ]
  3000. }
  3001. }
  3002. }
  3003. }
  3004. },
  3005. "/sysDictionary/createSysDictionary": {
  3006. "post": {
  3007. "security": [
  3008. {
  3009. "ApiKeyAuth": []
  3010. }
  3011. ],
  3012. "consumes": [
  3013. "application/json"
  3014. ],
  3015. "produces": [
  3016. "application/json"
  3017. ],
  3018. "tags": [
  3019. "SysDictionary"
  3020. ],
  3021. "summary": "创建SysDictionary",
  3022. "parameters": [
  3023. {
  3024. "description": "SysDictionary模型",
  3025. "name": "data",
  3026. "in": "body",
  3027. "required": true,
  3028. "schema": {
  3029. "$ref": "#/definitions/system.SysDictionary"
  3030. }
  3031. }
  3032. ],
  3033. "responses": {
  3034. "200": {
  3035. "description": "创建SysDictionary",
  3036. "schema": {
  3037. "allOf": [
  3038. {
  3039. "$ref": "#/definitions/response.Response"
  3040. },
  3041. {
  3042. "type": "object",
  3043. "properties": {
  3044. "msg": {
  3045. "type": "string"
  3046. }
  3047. }
  3048. }
  3049. ]
  3050. }
  3051. }
  3052. }
  3053. }
  3054. },
  3055. "/sysDictionary/deleteSysDictionary": {
  3056. "delete": {
  3057. "security": [
  3058. {
  3059. "ApiKeyAuth": []
  3060. }
  3061. ],
  3062. "consumes": [
  3063. "application/json"
  3064. ],
  3065. "produces": [
  3066. "application/json"
  3067. ],
  3068. "tags": [
  3069. "SysDictionary"
  3070. ],
  3071. "summary": "删除SysDictionary",
  3072. "parameters": [
  3073. {
  3074. "description": "SysDictionary模型",
  3075. "name": "data",
  3076. "in": "body",
  3077. "required": true,
  3078. "schema": {
  3079. "$ref": "#/definitions/system.SysDictionary"
  3080. }
  3081. }
  3082. ],
  3083. "responses": {
  3084. "200": {
  3085. "description": "删除SysDictionary",
  3086. "schema": {
  3087. "allOf": [
  3088. {
  3089. "$ref": "#/definitions/response.Response"
  3090. },
  3091. {
  3092. "type": "object",
  3093. "properties": {
  3094. "msg": {
  3095. "type": "string"
  3096. }
  3097. }
  3098. }
  3099. ]
  3100. }
  3101. }
  3102. }
  3103. }
  3104. },
  3105. "/sysDictionary/findSysDictionary": {
  3106. "get": {
  3107. "security": [
  3108. {
  3109. "ApiKeyAuth": []
  3110. }
  3111. ],
  3112. "consumes": [
  3113. "application/json"
  3114. ],
  3115. "produces": [
  3116. "application/json"
  3117. ],
  3118. "tags": [
  3119. "SysDictionary"
  3120. ],
  3121. "summary": "用id查询SysDictionary",
  3122. "parameters": [
  3123. {
  3124. "type": "integer",
  3125. "description": "主键ID",
  3126. "name": "ID",
  3127. "in": "query"
  3128. },
  3129. {
  3130. "type": "string",
  3131. "description": "创建时间",
  3132. "name": "createdAt",
  3133. "in": "query"
  3134. },
  3135. {
  3136. "type": "string",
  3137. "description": "描述",
  3138. "name": "desc",
  3139. "in": "query"
  3140. },
  3141. {
  3142. "type": "string",
  3143. "description": "字典名(中)",
  3144. "name": "name",
  3145. "in": "query"
  3146. },
  3147. {
  3148. "type": "boolean",
  3149. "description": "状态",
  3150. "name": "status",
  3151. "in": "query"
  3152. },
  3153. {
  3154. "type": "string",
  3155. "description": "字典名(英)",
  3156. "name": "type",
  3157. "in": "query"
  3158. },
  3159. {
  3160. "type": "string",
  3161. "description": "更新时间",
  3162. "name": "updatedAt",
  3163. "in": "query"
  3164. }
  3165. ],
  3166. "responses": {
  3167. "200": {
  3168. "description": "用id查询SysDictionary",
  3169. "schema": {
  3170. "allOf": [
  3171. {
  3172. "$ref": "#/definitions/response.Response"
  3173. },
  3174. {
  3175. "type": "object",
  3176. "properties": {
  3177. "data": {
  3178. "type": "object",
  3179. "additionalProperties": true
  3180. },
  3181. "msg": {
  3182. "type": "string"
  3183. }
  3184. }
  3185. }
  3186. ]
  3187. }
  3188. }
  3189. }
  3190. }
  3191. },
  3192. "/sysDictionary/getSysDictionaryList": {
  3193. "get": {
  3194. "security": [
  3195. {
  3196. "ApiKeyAuth": []
  3197. }
  3198. ],
  3199. "consumes": [
  3200. "application/json"
  3201. ],
  3202. "produces": [
  3203. "application/json"
  3204. ],
  3205. "tags": [
  3206. "SysDictionary"
  3207. ],
  3208. "summary": "分页获取SysDictionary列表",
  3209. "responses": {
  3210. "200": {
  3211. "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量",
  3212. "schema": {
  3213. "allOf": [
  3214. {
  3215. "$ref": "#/definitions/response.Response"
  3216. },
  3217. {
  3218. "type": "object",
  3219. "properties": {
  3220. "data": {
  3221. "$ref": "#/definitions/response.PageResult"
  3222. },
  3223. "msg": {
  3224. "type": "string"
  3225. }
  3226. }
  3227. }
  3228. ]
  3229. }
  3230. }
  3231. }
  3232. }
  3233. },
  3234. "/sysDictionary/updateSysDictionary": {
  3235. "put": {
  3236. "security": [
  3237. {
  3238. "ApiKeyAuth": []
  3239. }
  3240. ],
  3241. "consumes": [
  3242. "application/json"
  3243. ],
  3244. "produces": [
  3245. "application/json"
  3246. ],
  3247. "tags": [
  3248. "SysDictionary"
  3249. ],
  3250. "summary": "更新SysDictionary",
  3251. "parameters": [
  3252. {
  3253. "description": "SysDictionary模型",
  3254. "name": "data",
  3255. "in": "body",
  3256. "required": true,
  3257. "schema": {
  3258. "$ref": "#/definitions/system.SysDictionary"
  3259. }
  3260. }
  3261. ],
  3262. "responses": {
  3263. "200": {
  3264. "description": "更新SysDictionary",
  3265. "schema": {
  3266. "allOf": [
  3267. {
  3268. "$ref": "#/definitions/response.Response"
  3269. },
  3270. {
  3271. "type": "object",
  3272. "properties": {
  3273. "msg": {
  3274. "type": "string"
  3275. }
  3276. }
  3277. }
  3278. ]
  3279. }
  3280. }
  3281. }
  3282. }
  3283. },
  3284. "/sysDictionaryDetail/createSysDictionaryDetail": {
  3285. "post": {
  3286. "security": [
  3287. {
  3288. "ApiKeyAuth": []
  3289. }
  3290. ],
  3291. "consumes": [
  3292. "application/json"
  3293. ],
  3294. "produces": [
  3295. "application/json"
  3296. ],
  3297. "tags": [
  3298. "SysDictionaryDetail"
  3299. ],
  3300. "summary": "创建SysDictionaryDetail",
  3301. "parameters": [
  3302. {
  3303. "description": "SysDictionaryDetail模型",
  3304. "name": "data",
  3305. "in": "body",
  3306. "required": true,
  3307. "schema": {
  3308. "$ref": "#/definitions/system.SysDictionaryDetail"
  3309. }
  3310. }
  3311. ],
  3312. "responses": {
  3313. "200": {
  3314. "description": "创建SysDictionaryDetail",
  3315. "schema": {
  3316. "allOf": [
  3317. {
  3318. "$ref": "#/definitions/response.Response"
  3319. },
  3320. {
  3321. "type": "object",
  3322. "properties": {
  3323. "msg": {
  3324. "type": "string"
  3325. }
  3326. }
  3327. }
  3328. ]
  3329. }
  3330. }
  3331. }
  3332. }
  3333. },
  3334. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  3335. "delete": {
  3336. "security": [
  3337. {
  3338. "ApiKeyAuth": []
  3339. }
  3340. ],
  3341. "consumes": [
  3342. "application/json"
  3343. ],
  3344. "produces": [
  3345. "application/json"
  3346. ],
  3347. "tags": [
  3348. "SysDictionaryDetail"
  3349. ],
  3350. "summary": "删除SysDictionaryDetail",
  3351. "parameters": [
  3352. {
  3353. "description": "SysDictionaryDetail模型",
  3354. "name": "data",
  3355. "in": "body",
  3356. "required": true,
  3357. "schema": {
  3358. "$ref": "#/definitions/system.SysDictionaryDetail"
  3359. }
  3360. }
  3361. ],
  3362. "responses": {
  3363. "200": {
  3364. "description": "删除SysDictionaryDetail",
  3365. "schema": {
  3366. "allOf": [
  3367. {
  3368. "$ref": "#/definitions/response.Response"
  3369. },
  3370. {
  3371. "type": "object",
  3372. "properties": {
  3373. "msg": {
  3374. "type": "string"
  3375. }
  3376. }
  3377. }
  3378. ]
  3379. }
  3380. }
  3381. }
  3382. }
  3383. },
  3384. "/sysDictionaryDetail/findSysDictionaryDetail": {
  3385. "get": {
  3386. "security": [
  3387. {
  3388. "ApiKeyAuth": []
  3389. }
  3390. ],
  3391. "consumes": [
  3392. "application/json"
  3393. ],
  3394. "produces": [
  3395. "application/json"
  3396. ],
  3397. "tags": [
  3398. "SysDictionaryDetail"
  3399. ],
  3400. "summary": "用id查询SysDictionaryDetail",
  3401. "parameters": [
  3402. {
  3403. "type": "integer",
  3404. "description": "主键ID",
  3405. "name": "ID",
  3406. "in": "query"
  3407. },
  3408. {
  3409. "type": "string",
  3410. "description": "创建时间",
  3411. "name": "createdAt",
  3412. "in": "query"
  3413. },
  3414. {
  3415. "type": "string",
  3416. "description": "扩展值",
  3417. "name": "extend",
  3418. "in": "query"
  3419. },
  3420. {
  3421. "type": "string",
  3422. "description": "展示值",
  3423. "name": "label",
  3424. "in": "query"
  3425. },
  3426. {
  3427. "type": "integer",
  3428. "description": "排序标记",
  3429. "name": "sort",
  3430. "in": "query"
  3431. },
  3432. {
  3433. "type": "boolean",
  3434. "description": "启用状态",
  3435. "name": "status",
  3436. "in": "query"
  3437. },
  3438. {
  3439. "type": "integer",
  3440. "description": "关联标记",
  3441. "name": "sysDictionaryID",
  3442. "in": "query"
  3443. },
  3444. {
  3445. "type": "string",
  3446. "description": "更新时间",
  3447. "name": "updatedAt",
  3448. "in": "query"
  3449. },
  3450. {
  3451. "type": "integer",
  3452. "description": "字典值",
  3453. "name": "value",
  3454. "in": "query"
  3455. }
  3456. ],
  3457. "responses": {
  3458. "200": {
  3459. "description": "用id查询SysDictionaryDetail",
  3460. "schema": {
  3461. "allOf": [
  3462. {
  3463. "$ref": "#/definitions/response.Response"
  3464. },
  3465. {
  3466. "type": "object",
  3467. "properties": {
  3468. "data": {
  3469. "type": "object",
  3470. "additionalProperties": true
  3471. },
  3472. "msg": {
  3473. "type": "string"
  3474. }
  3475. }
  3476. }
  3477. ]
  3478. }
  3479. }
  3480. }
  3481. }
  3482. },
  3483. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  3484. "get": {
  3485. "security": [
  3486. {
  3487. "ApiKeyAuth": []
  3488. }
  3489. ],
  3490. "consumes": [
  3491. "application/json"
  3492. ],
  3493. "produces": [
  3494. "application/json"
  3495. ],
  3496. "tags": [
  3497. "SysDictionaryDetail"
  3498. ],
  3499. "summary": "分页获取SysDictionaryDetail列表",
  3500. "parameters": [
  3501. {
  3502. "type": "integer",
  3503. "description": "主键ID",
  3504. "name": "ID",
  3505. "in": "query"
  3506. },
  3507. {
  3508. "type": "string",
  3509. "description": "创建时间",
  3510. "name": "createdAt",
  3511. "in": "query"
  3512. },
  3513. {
  3514. "type": "string",
  3515. "description": "扩展值",
  3516. "name": "extend",
  3517. "in": "query"
  3518. },
  3519. {
  3520. "type": "string",
  3521. "description": "关键字",
  3522. "name": "keyword",
  3523. "in": "query"
  3524. },
  3525. {
  3526. "type": "string",
  3527. "description": "展示值",
  3528. "name": "label",
  3529. "in": "query"
  3530. },
  3531. {
  3532. "type": "integer",
  3533. "description": "页码",
  3534. "name": "page",
  3535. "in": "query"
  3536. },
  3537. {
  3538. "type": "integer",
  3539. "description": "每页大小",
  3540. "name": "pageSize",
  3541. "in": "query"
  3542. },
  3543. {
  3544. "type": "integer",
  3545. "description": "排序标记",
  3546. "name": "sort",
  3547. "in": "query"
  3548. },
  3549. {
  3550. "type": "boolean",
  3551. "description": "启用状态",
  3552. "name": "status",
  3553. "in": "query"
  3554. },
  3555. {
  3556. "type": "integer",
  3557. "description": "关联标记",
  3558. "name": "sysDictionaryID",
  3559. "in": "query"
  3560. },
  3561. {
  3562. "type": "string",
  3563. "description": "更新时间",
  3564. "name": "updatedAt",
  3565. "in": "query"
  3566. },
  3567. {
  3568. "type": "integer",
  3569. "description": "字典值",
  3570. "name": "value",
  3571. "in": "query"
  3572. }
  3573. ],
  3574. "responses": {
  3575. "200": {
  3576. "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量",
  3577. "schema": {
  3578. "allOf": [
  3579. {
  3580. "$ref": "#/definitions/response.Response"
  3581. },
  3582. {
  3583. "type": "object",
  3584. "properties": {
  3585. "data": {
  3586. "$ref": "#/definitions/response.PageResult"
  3587. },
  3588. "msg": {
  3589. "type": "string"
  3590. }
  3591. }
  3592. }
  3593. ]
  3594. }
  3595. }
  3596. }
  3597. }
  3598. },
  3599. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  3600. "put": {
  3601. "security": [
  3602. {
  3603. "ApiKeyAuth": []
  3604. }
  3605. ],
  3606. "consumes": [
  3607. "application/json"
  3608. ],
  3609. "produces": [
  3610. "application/json"
  3611. ],
  3612. "tags": [
  3613. "SysDictionaryDetail"
  3614. ],
  3615. "summary": "更新SysDictionaryDetail",
  3616. "parameters": [
  3617. {
  3618. "description": "更新SysDictionaryDetail",
  3619. "name": "data",
  3620. "in": "body",
  3621. "required": true,
  3622. "schema": {
  3623. "$ref": "#/definitions/system.SysDictionaryDetail"
  3624. }
  3625. }
  3626. ],
  3627. "responses": {
  3628. "200": {
  3629. "description": "更新SysDictionaryDetail",
  3630. "schema": {
  3631. "allOf": [
  3632. {
  3633. "$ref": "#/definitions/response.Response"
  3634. },
  3635. {
  3636. "type": "object",
  3637. "properties": {
  3638. "msg": {
  3639. "type": "string"
  3640. }
  3641. }
  3642. }
  3643. ]
  3644. }
  3645. }
  3646. }
  3647. }
  3648. },
  3649. "/sysOperationRecord/createSysOperationRecord": {
  3650. "post": {
  3651. "security": [
  3652. {
  3653. "ApiKeyAuth": []
  3654. }
  3655. ],
  3656. "consumes": [
  3657. "application/json"
  3658. ],
  3659. "produces": [
  3660. "application/json"
  3661. ],
  3662. "tags": [
  3663. "SysOperationRecord"
  3664. ],
  3665. "summary": "创建SysOperationRecord",
  3666. "parameters": [
  3667. {
  3668. "description": "创建SysOperationRecord",
  3669. "name": "data",
  3670. "in": "body",
  3671. "required": true,
  3672. "schema": {
  3673. "$ref": "#/definitions/system.SysOperationRecord"
  3674. }
  3675. }
  3676. ],
  3677. "responses": {
  3678. "200": {
  3679. "description": "创建SysOperationRecord",
  3680. "schema": {
  3681. "allOf": [
  3682. {
  3683. "$ref": "#/definitions/response.Response"
  3684. },
  3685. {
  3686. "type": "object",
  3687. "properties": {
  3688. "msg": {
  3689. "type": "string"
  3690. }
  3691. }
  3692. }
  3693. ]
  3694. }
  3695. }
  3696. }
  3697. }
  3698. },
  3699. "/sysOperationRecord/deleteSysOperationRecord": {
  3700. "delete": {
  3701. "security": [
  3702. {
  3703. "ApiKeyAuth": []
  3704. }
  3705. ],
  3706. "consumes": [
  3707. "application/json"
  3708. ],
  3709. "produces": [
  3710. "application/json"
  3711. ],
  3712. "tags": [
  3713. "SysOperationRecord"
  3714. ],
  3715. "summary": "删除SysOperationRecord",
  3716. "parameters": [
  3717. {
  3718. "description": "SysOperationRecord模型",
  3719. "name": "data",
  3720. "in": "body",
  3721. "required": true,
  3722. "schema": {
  3723. "$ref": "#/definitions/system.SysOperationRecord"
  3724. }
  3725. }
  3726. ],
  3727. "responses": {
  3728. "200": {
  3729. "description": "删除SysOperationRecord",
  3730. "schema": {
  3731. "allOf": [
  3732. {
  3733. "$ref": "#/definitions/response.Response"
  3734. },
  3735. {
  3736. "type": "object",
  3737. "properties": {
  3738. "msg": {
  3739. "type": "string"
  3740. }
  3741. }
  3742. }
  3743. ]
  3744. }
  3745. }
  3746. }
  3747. }
  3748. },
  3749. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  3750. "delete": {
  3751. "security": [
  3752. {
  3753. "ApiKeyAuth": []
  3754. }
  3755. ],
  3756. "consumes": [
  3757. "application/json"
  3758. ],
  3759. "produces": [
  3760. "application/json"
  3761. ],
  3762. "tags": [
  3763. "SysOperationRecord"
  3764. ],
  3765. "summary": "批量删除SysOperationRecord",
  3766. "parameters": [
  3767. {
  3768. "description": "批量删除SysOperationRecord",
  3769. "name": "data",
  3770. "in": "body",
  3771. "required": true,
  3772. "schema": {
  3773. "$ref": "#/definitions/request.IdsReq"
  3774. }
  3775. }
  3776. ],
  3777. "responses": {
  3778. "200": {
  3779. "description": "批量删除SysOperationRecord",
  3780. "schema": {
  3781. "allOf": [
  3782. {
  3783. "$ref": "#/definitions/response.Response"
  3784. },
  3785. {
  3786. "type": "object",
  3787. "properties": {
  3788. "msg": {
  3789. "type": "string"
  3790. }
  3791. }
  3792. }
  3793. ]
  3794. }
  3795. }
  3796. }
  3797. }
  3798. },
  3799. "/sysOperationRecord/findSysOperationRecord": {
  3800. "get": {
  3801. "security": [
  3802. {
  3803. "ApiKeyAuth": []
  3804. }
  3805. ],
  3806. "consumes": [
  3807. "application/json"
  3808. ],
  3809. "produces": [
  3810. "application/json"
  3811. ],
  3812. "tags": [
  3813. "SysOperationRecord"
  3814. ],
  3815. "summary": "用id查询SysOperationRecord",
  3816. "parameters": [
  3817. {
  3818. "type": "integer",
  3819. "description": "主键ID",
  3820. "name": "ID",
  3821. "in": "query"
  3822. },
  3823. {
  3824. "type": "string",
  3825. "description": "代理",
  3826. "name": "agent",
  3827. "in": "query"
  3828. },
  3829. {
  3830. "type": "string",
  3831. "description": "请求Body",
  3832. "name": "body",
  3833. "in": "query"
  3834. },
  3835. {
  3836. "type": "string",
  3837. "description": "创建时间",
  3838. "name": "createdAt",
  3839. "in": "query"
  3840. },
  3841. {
  3842. "type": "string",
  3843. "description": "错误信息",
  3844. "name": "error_message",
  3845. "in": "query"
  3846. },
  3847. {
  3848. "type": "string",
  3849. "description": "请求ip",
  3850. "name": "ip",
  3851. "in": "query"
  3852. },
  3853. {
  3854. "type": "string",
  3855. "description": "延迟",
  3856. "name": "latency",
  3857. "in": "query"
  3858. },
  3859. {
  3860. "type": "string",
  3861. "description": "请求方法",
  3862. "name": "method",
  3863. "in": "query"
  3864. },
  3865. {
  3866. "type": "string",
  3867. "description": "请求路径",
  3868. "name": "path",
  3869. "in": "query"
  3870. },
  3871. {
  3872. "type": "string",
  3873. "description": "响应Body",
  3874. "name": "resp",
  3875. "in": "query"
  3876. },
  3877. {
  3878. "type": "integer",
  3879. "description": "请求状态",
  3880. "name": "status",
  3881. "in": "query"
  3882. },
  3883. {
  3884. "type": "string",
  3885. "description": "更新时间",
  3886. "name": "updatedAt",
  3887. "in": "query"
  3888. },
  3889. {
  3890. "type": "integer",
  3891. "description": "用户id",
  3892. "name": "user_id",
  3893. "in": "query"
  3894. }
  3895. ],
  3896. "responses": {
  3897. "200": {
  3898. "description": "用id查询SysOperationRecord",
  3899. "schema": {
  3900. "allOf": [
  3901. {
  3902. "$ref": "#/definitions/response.Response"
  3903. },
  3904. {
  3905. "type": "object",
  3906. "properties": {
  3907. "data": {
  3908. "type": "object",
  3909. "additionalProperties": true
  3910. },
  3911. "msg": {
  3912. "type": "string"
  3913. }
  3914. }
  3915. }
  3916. ]
  3917. }
  3918. }
  3919. }
  3920. }
  3921. },
  3922. "/sysOperationRecord/getSysOperationRecordList": {
  3923. "get": {
  3924. "security": [
  3925. {
  3926. "ApiKeyAuth": []
  3927. }
  3928. ],
  3929. "consumes": [
  3930. "application/json"
  3931. ],
  3932. "produces": [
  3933. "application/json"
  3934. ],
  3935. "tags": [
  3936. "SysOperationRecord"
  3937. ],
  3938. "summary": "分页获取SysOperationRecord列表",
  3939. "parameters": [
  3940. {
  3941. "type": "integer",
  3942. "description": "主键ID",
  3943. "name": "ID",
  3944. "in": "query"
  3945. },
  3946. {
  3947. "type": "string",
  3948. "description": "代理",
  3949. "name": "agent",
  3950. "in": "query"
  3951. },
  3952. {
  3953. "type": "string",
  3954. "description": "请求Body",
  3955. "name": "body",
  3956. "in": "query"
  3957. },
  3958. {
  3959. "type": "string",
  3960. "description": "创建时间",
  3961. "name": "createdAt",
  3962. "in": "query"
  3963. },
  3964. {
  3965. "type": "string",
  3966. "description": "错误信息",
  3967. "name": "error_message",
  3968. "in": "query"
  3969. },
  3970. {
  3971. "type": "string",
  3972. "description": "请求ip",
  3973. "name": "ip",
  3974. "in": "query"
  3975. },
  3976. {
  3977. "type": "string",
  3978. "description": "关键字",
  3979. "name": "keyword",
  3980. "in": "query"
  3981. },
  3982. {
  3983. "type": "string",
  3984. "description": "延迟",
  3985. "name": "latency",
  3986. "in": "query"
  3987. },
  3988. {
  3989. "type": "string",
  3990. "description": "请求方法",
  3991. "name": "method",
  3992. "in": "query"
  3993. },
  3994. {
  3995. "type": "integer",
  3996. "description": "页码",
  3997. "name": "page",
  3998. "in": "query"
  3999. },
  4000. {
  4001. "type": "integer",
  4002. "description": "每页大小",
  4003. "name": "pageSize",
  4004. "in": "query"
  4005. },
  4006. {
  4007. "type": "string",
  4008. "description": "请求路径",
  4009. "name": "path",
  4010. "in": "query"
  4011. },
  4012. {
  4013. "type": "string",
  4014. "description": "响应Body",
  4015. "name": "resp",
  4016. "in": "query"
  4017. },
  4018. {
  4019. "type": "integer",
  4020. "description": "请求状态",
  4021. "name": "status",
  4022. "in": "query"
  4023. },
  4024. {
  4025. "type": "string",
  4026. "description": "更新时间",
  4027. "name": "updatedAt",
  4028. "in": "query"
  4029. },
  4030. {
  4031. "type": "integer",
  4032. "description": "用户id",
  4033. "name": "user_id",
  4034. "in": "query"
  4035. }
  4036. ],
  4037. "responses": {
  4038. "200": {
  4039. "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量",
  4040. "schema": {
  4041. "allOf": [
  4042. {
  4043. "$ref": "#/definitions/response.Response"
  4044. },
  4045. {
  4046. "type": "object",
  4047. "properties": {
  4048. "data": {
  4049. "$ref": "#/definitions/response.PageResult"
  4050. },
  4051. "msg": {
  4052. "type": "string"
  4053. }
  4054. }
  4055. }
  4056. ]
  4057. }
  4058. }
  4059. }
  4060. }
  4061. },
  4062. "/system/getServerInfo": {
  4063. "post": {
  4064. "security": [
  4065. {
  4066. "ApiKeyAuth": []
  4067. }
  4068. ],
  4069. "produces": [
  4070. "application/json"
  4071. ],
  4072. "tags": [
  4073. "System"
  4074. ],
  4075. "summary": "获取服务器信息",
  4076. "responses": {
  4077. "200": {
  4078. "description": "获取服务器信息",
  4079. "schema": {
  4080. "allOf": [
  4081. {
  4082. "$ref": "#/definitions/response.Response"
  4083. },
  4084. {
  4085. "type": "object",
  4086. "properties": {
  4087. "data": {
  4088. "type": "object",
  4089. "additionalProperties": true
  4090. },
  4091. "msg": {
  4092. "type": "string"
  4093. }
  4094. }
  4095. }
  4096. ]
  4097. }
  4098. }
  4099. }
  4100. }
  4101. },
  4102. "/system/getSystemConfig": {
  4103. "post": {
  4104. "security": [
  4105. {
  4106. "ApiKeyAuth": []
  4107. }
  4108. ],
  4109. "produces": [
  4110. "application/json"
  4111. ],
  4112. "tags": [
  4113. "System"
  4114. ],
  4115. "summary": "获取配置文件内容",
  4116. "responses": {
  4117. "200": {
  4118. "description": "获取配置文件内容,返回包括系统配置",
  4119. "schema": {
  4120. "allOf": [
  4121. {
  4122. "$ref": "#/definitions/response.Response"
  4123. },
  4124. {
  4125. "type": "object",
  4126. "properties": {
  4127. "data": {
  4128. "$ref": "#/definitions/response.SysConfigResponse"
  4129. },
  4130. "msg": {
  4131. "type": "string"
  4132. }
  4133. }
  4134. }
  4135. ]
  4136. }
  4137. }
  4138. }
  4139. }
  4140. },
  4141. "/system/reloadSystem": {
  4142. "post": {
  4143. "security": [
  4144. {
  4145. "ApiKeyAuth": []
  4146. }
  4147. ],
  4148. "produces": [
  4149. "application/json"
  4150. ],
  4151. "tags": [
  4152. "System"
  4153. ],
  4154. "summary": "重启系统",
  4155. "responses": {
  4156. "200": {
  4157. "description": "重启系统",
  4158. "schema": {
  4159. "allOf": [
  4160. {
  4161. "$ref": "#/definitions/response.Response"
  4162. },
  4163. {
  4164. "type": "object",
  4165. "properties": {
  4166. "msg": {
  4167. "type": "string"
  4168. }
  4169. }
  4170. }
  4171. ]
  4172. }
  4173. }
  4174. }
  4175. }
  4176. },
  4177. "/system/setSystemConfig": {
  4178. "post": {
  4179. "security": [
  4180. {
  4181. "ApiKeyAuth": []
  4182. }
  4183. ],
  4184. "produces": [
  4185. "application/json"
  4186. ],
  4187. "tags": [
  4188. "System"
  4189. ],
  4190. "summary": "设置配置文件内容",
  4191. "parameters": [
  4192. {
  4193. "description": "设置配置文件内容",
  4194. "name": "data",
  4195. "in": "body",
  4196. "required": true,
  4197. "schema": {
  4198. "$ref": "#/definitions/system.System"
  4199. }
  4200. }
  4201. ],
  4202. "responses": {
  4203. "200": {
  4204. "description": "设置配置文件内容",
  4205. "schema": {
  4206. "allOf": [
  4207. {
  4208. "$ref": "#/definitions/response.Response"
  4209. },
  4210. {
  4211. "type": "object",
  4212. "properties": {
  4213. "data": {
  4214. "type": "string"
  4215. }
  4216. }
  4217. }
  4218. ]
  4219. }
  4220. }
  4221. }
  4222. }
  4223. },
  4224. "/user/SetSelfInfo": {
  4225. "put": {
  4226. "security": [
  4227. {
  4228. "ApiKeyAuth": []
  4229. }
  4230. ],
  4231. "consumes": [
  4232. "application/json"
  4233. ],
  4234. "produces": [
  4235. "application/json"
  4236. ],
  4237. "tags": [
  4238. "SysUser"
  4239. ],
  4240. "summary": "设置用户信息",
  4241. "parameters": [
  4242. {
  4243. "description": "ID, 用户名, 昵称, 头像链接",
  4244. "name": "data",
  4245. "in": "body",
  4246. "required": true,
  4247. "schema": {
  4248. "$ref": "#/definitions/system.SysUser"
  4249. }
  4250. }
  4251. ],
  4252. "responses": {
  4253. "200": {
  4254. "description": "设置用户信息",
  4255. "schema": {
  4256. "allOf": [
  4257. {
  4258. "$ref": "#/definitions/response.Response"
  4259. },
  4260. {
  4261. "type": "object",
  4262. "properties": {
  4263. "data": {
  4264. "type": "object",
  4265. "additionalProperties": true
  4266. },
  4267. "msg": {
  4268. "type": "string"
  4269. }
  4270. }
  4271. }
  4272. ]
  4273. }
  4274. }
  4275. }
  4276. }
  4277. },
  4278. "/user/admin_register": {
  4279. "post": {
  4280. "produces": [
  4281. "application/json"
  4282. ],
  4283. "tags": [
  4284. "SysUser"
  4285. ],
  4286. "summary": "用户注册账号",
  4287. "parameters": [
  4288. {
  4289. "description": "用户名, 昵称, 密码, 角色ID",
  4290. "name": "data",
  4291. "in": "body",
  4292. "required": true,
  4293. "schema": {
  4294. "$ref": "#/definitions/request.Register"
  4295. }
  4296. }
  4297. ],
  4298. "responses": {
  4299. "200": {
  4300. "description": "用户注册账号,返回包括用户信息",
  4301. "schema": {
  4302. "allOf": [
  4303. {
  4304. "$ref": "#/definitions/response.Response"
  4305. },
  4306. {
  4307. "type": "object",
  4308. "properties": {
  4309. "data": {
  4310. "$ref": "#/definitions/response.SysUserResponse"
  4311. },
  4312. "msg": {
  4313. "type": "string"
  4314. }
  4315. }
  4316. }
  4317. ]
  4318. }
  4319. }
  4320. }
  4321. }
  4322. },
  4323. "/user/changePassword": {
  4324. "post": {
  4325. "security": [
  4326. {
  4327. "ApiKeyAuth": []
  4328. }
  4329. ],
  4330. "produces": [
  4331. "application/json"
  4332. ],
  4333. "tags": [
  4334. "SysUser"
  4335. ],
  4336. "summary": "用户修改密码",
  4337. "parameters": [
  4338. {
  4339. "description": "用户名, 原密码, 新密码",
  4340. "name": "data",
  4341. "in": "body",
  4342. "required": true,
  4343. "schema": {
  4344. "$ref": "#/definitions/request.ChangePasswordReq"
  4345. }
  4346. }
  4347. ],
  4348. "responses": {
  4349. "200": {
  4350. "description": "用户修改密码",
  4351. "schema": {
  4352. "allOf": [
  4353. {
  4354. "$ref": "#/definitions/response.Response"
  4355. },
  4356. {
  4357. "type": "object",
  4358. "properties": {
  4359. "msg": {
  4360. "type": "string"
  4361. }
  4362. }
  4363. }
  4364. ]
  4365. }
  4366. }
  4367. }
  4368. }
  4369. },
  4370. "/user/deleteUser": {
  4371. "delete": {
  4372. "security": [
  4373. {
  4374. "ApiKeyAuth": []
  4375. }
  4376. ],
  4377. "consumes": [
  4378. "application/json"
  4379. ],
  4380. "produces": [
  4381. "application/json"
  4382. ],
  4383. "tags": [
  4384. "SysUser"
  4385. ],
  4386. "summary": "删除用户",
  4387. "parameters": [
  4388. {
  4389. "description": "用户ID",
  4390. "name": "data",
  4391. "in": "body",
  4392. "required": true,
  4393. "schema": {
  4394. "$ref": "#/definitions/request.GetById"
  4395. }
  4396. }
  4397. ],
  4398. "responses": {
  4399. "200": {
  4400. "description": "删除用户",
  4401. "schema": {
  4402. "allOf": [
  4403. {
  4404. "$ref": "#/definitions/response.Response"
  4405. },
  4406. {
  4407. "type": "object",
  4408. "properties": {
  4409. "msg": {
  4410. "type": "string"
  4411. }
  4412. }
  4413. }
  4414. ]
  4415. }
  4416. }
  4417. }
  4418. }
  4419. },
  4420. "/user/getUserInfo": {
  4421. "get": {
  4422. "security": [
  4423. {
  4424. "ApiKeyAuth": []
  4425. }
  4426. ],
  4427. "consumes": [
  4428. "application/json"
  4429. ],
  4430. "produces": [
  4431. "application/json"
  4432. ],
  4433. "tags": [
  4434. "SysUser"
  4435. ],
  4436. "summary": "获取用户信息",
  4437. "responses": {
  4438. "200": {
  4439. "description": "获取用户信息",
  4440. "schema": {
  4441. "allOf": [
  4442. {
  4443. "$ref": "#/definitions/response.Response"
  4444. },
  4445. {
  4446. "type": "object",
  4447. "properties": {
  4448. "data": {
  4449. "type": "object",
  4450. "additionalProperties": true
  4451. },
  4452. "msg": {
  4453. "type": "string"
  4454. }
  4455. }
  4456. }
  4457. ]
  4458. }
  4459. }
  4460. }
  4461. }
  4462. },
  4463. "/user/getUserList": {
  4464. "post": {
  4465. "security": [
  4466. {
  4467. "ApiKeyAuth": []
  4468. }
  4469. ],
  4470. "consumes": [
  4471. "application/json"
  4472. ],
  4473. "produces": [
  4474. "application/json"
  4475. ],
  4476. "tags": [
  4477. "SysUser"
  4478. ],
  4479. "summary": "分页获取用户列表",
  4480. "parameters": [
  4481. {
  4482. "description": "页码, 每页大小",
  4483. "name": "data",
  4484. "in": "body",
  4485. "required": true,
  4486. "schema": {
  4487. "$ref": "#/definitions/request.PageInfo"
  4488. }
  4489. }
  4490. ],
  4491. "responses": {
  4492. "200": {
  4493. "description": "分页获取用户列表,返回包括列表,总数,页码,每页数量",
  4494. "schema": {
  4495. "allOf": [
  4496. {
  4497. "$ref": "#/definitions/response.Response"
  4498. },
  4499. {
  4500. "type": "object",
  4501. "properties": {
  4502. "data": {
  4503. "$ref": "#/definitions/response.PageResult"
  4504. },
  4505. "msg": {
  4506. "type": "string"
  4507. }
  4508. }
  4509. }
  4510. ]
  4511. }
  4512. }
  4513. }
  4514. }
  4515. },
  4516. "/user/resetPassword": {
  4517. "post": {
  4518. "security": [
  4519. {
  4520. "ApiKeyAuth": []
  4521. }
  4522. ],
  4523. "produces": [
  4524. "application/json"
  4525. ],
  4526. "tags": [
  4527. "SysUser"
  4528. ],
  4529. "summary": "重置用户密码",
  4530. "parameters": [
  4531. {
  4532. "description": "ID",
  4533. "name": "data",
  4534. "in": "body",
  4535. "required": true,
  4536. "schema": {
  4537. "$ref": "#/definitions/system.SysUser"
  4538. }
  4539. }
  4540. ],
  4541. "responses": {
  4542. "200": {
  4543. "description": "重置用户密码",
  4544. "schema": {
  4545. "allOf": [
  4546. {
  4547. "$ref": "#/definitions/response.Response"
  4548. },
  4549. {
  4550. "type": "object",
  4551. "properties": {
  4552. "msg": {
  4553. "type": "string"
  4554. }
  4555. }
  4556. }
  4557. ]
  4558. }
  4559. }
  4560. }
  4561. }
  4562. },
  4563. "/user/setUserAuthorities": {
  4564. "post": {
  4565. "security": [
  4566. {
  4567. "ApiKeyAuth": []
  4568. }
  4569. ],
  4570. "consumes": [
  4571. "application/json"
  4572. ],
  4573. "produces": [
  4574. "application/json"
  4575. ],
  4576. "tags": [
  4577. "SysUser"
  4578. ],
  4579. "summary": "设置用户权限",
  4580. "parameters": [
  4581. {
  4582. "description": "用户UUID, 角色ID",
  4583. "name": "data",
  4584. "in": "body",
  4585. "required": true,
  4586. "schema": {
  4587. "$ref": "#/definitions/request.SetUserAuthorities"
  4588. }
  4589. }
  4590. ],
  4591. "responses": {
  4592. "200": {
  4593. "description": "设置用户权限",
  4594. "schema": {
  4595. "allOf": [
  4596. {
  4597. "$ref": "#/definitions/response.Response"
  4598. },
  4599. {
  4600. "type": "object",
  4601. "properties": {
  4602. "msg": {
  4603. "type": "string"
  4604. }
  4605. }
  4606. }
  4607. ]
  4608. }
  4609. }
  4610. }
  4611. }
  4612. },
  4613. "/user/setUserAuthority": {
  4614. "post": {
  4615. "security": [
  4616. {
  4617. "ApiKeyAuth": []
  4618. }
  4619. ],
  4620. "consumes": [
  4621. "application/json"
  4622. ],
  4623. "produces": [
  4624. "application/json"
  4625. ],
  4626. "tags": [
  4627. "SysUser"
  4628. ],
  4629. "summary": "更改用户权限",
  4630. "parameters": [
  4631. {
  4632. "description": "用户UUID, 角色ID",
  4633. "name": "data",
  4634. "in": "body",
  4635. "required": true,
  4636. "schema": {
  4637. "$ref": "#/definitions/request.SetUserAuth"
  4638. }
  4639. }
  4640. ],
  4641. "responses": {
  4642. "200": {
  4643. "description": "设置用户权限",
  4644. "schema": {
  4645. "allOf": [
  4646. {
  4647. "$ref": "#/definitions/response.Response"
  4648. },
  4649. {
  4650. "type": "object",
  4651. "properties": {
  4652. "msg": {
  4653. "type": "string"
  4654. }
  4655. }
  4656. }
  4657. ]
  4658. }
  4659. }
  4660. }
  4661. }
  4662. },
  4663. "/user/setUserInfo": {
  4664. "put": {
  4665. "security": [
  4666. {
  4667. "ApiKeyAuth": []
  4668. }
  4669. ],
  4670. "consumes": [
  4671. "application/json"
  4672. ],
  4673. "produces": [
  4674. "application/json"
  4675. ],
  4676. "tags": [
  4677. "SysUser"
  4678. ],
  4679. "summary": "设置用户信息",
  4680. "parameters": [
  4681. {
  4682. "description": "ID, 用户名, 昵称, 头像链接",
  4683. "name": "data",
  4684. "in": "body",
  4685. "required": true,
  4686. "schema": {
  4687. "$ref": "#/definitions/system.SysUser"
  4688. }
  4689. }
  4690. ],
  4691. "responses": {
  4692. "200": {
  4693. "description": "设置用户信息",
  4694. "schema": {
  4695. "allOf": [
  4696. {
  4697. "$ref": "#/definitions/response.Response"
  4698. },
  4699. {
  4700. "type": "object",
  4701. "properties": {
  4702. "data": {
  4703. "type": "object",
  4704. "additionalProperties": true
  4705. },
  4706. "msg": {
  4707. "type": "string"
  4708. }
  4709. }
  4710. }
  4711. ]
  4712. }
  4713. }
  4714. }
  4715. }
  4716. }
  4717. },
  4718. "definitions": {
  4719. "config.AliyunOSS": {
  4720. "type": "object",
  4721. "properties": {
  4722. "access-key-id": {
  4723. "type": "string"
  4724. },
  4725. "access-key-secret": {
  4726. "type": "string"
  4727. },
  4728. "base-path": {
  4729. "type": "string"
  4730. },
  4731. "bucket-name": {
  4732. "type": "string"
  4733. },
  4734. "bucket-url": {
  4735. "type": "string"
  4736. },
  4737. "endpoint": {
  4738. "type": "string"
  4739. }
  4740. }
  4741. },
  4742. "config.Autocode": {
  4743. "type": "object",
  4744. "properties": {
  4745. "root": {
  4746. "type": "string"
  4747. },
  4748. "server": {
  4749. "type": "string"
  4750. },
  4751. "server-api": {
  4752. "type": "string"
  4753. },
  4754. "server-initialize": {
  4755. "type": "string"
  4756. },
  4757. "server-model": {
  4758. "type": "string"
  4759. },
  4760. "server-plug": {
  4761. "type": "string"
  4762. },
  4763. "server-request": {
  4764. "type": "string"
  4765. },
  4766. "server-router": {
  4767. "type": "string"
  4768. },
  4769. "server-service": {
  4770. "type": "string"
  4771. },
  4772. "transfer-restart": {
  4773. "type": "boolean"
  4774. },
  4775. "web": {
  4776. "type": "string"
  4777. },
  4778. "web-api": {
  4779. "type": "string"
  4780. },
  4781. "web-form": {
  4782. "type": "string"
  4783. },
  4784. "web-table": {
  4785. "type": "string"
  4786. }
  4787. }
  4788. },
  4789. "config.AwsS3": {
  4790. "type": "object",
  4791. "properties": {
  4792. "base-url": {
  4793. "type": "string"
  4794. },
  4795. "bucket": {
  4796. "type": "string"
  4797. },
  4798. "disable-ssl": {
  4799. "type": "boolean"
  4800. },
  4801. "endpoint": {
  4802. "type": "string"
  4803. },
  4804. "path-prefix": {
  4805. "type": "string"
  4806. },
  4807. "region": {
  4808. "type": "string"
  4809. },
  4810. "s3-force-path-style": {
  4811. "type": "boolean"
  4812. },
  4813. "secret-id": {
  4814. "type": "string"
  4815. },
  4816. "secret-key": {
  4817. "type": "string"
  4818. }
  4819. }
  4820. },
  4821. "config.CORS": {
  4822. "type": "object",
  4823. "properties": {
  4824. "mode": {
  4825. "type": "string"
  4826. },
  4827. "whitelist": {
  4828. "type": "array",
  4829. "items": {
  4830. "$ref": "#/definitions/config.CORSWhitelist"
  4831. }
  4832. }
  4833. }
  4834. },
  4835. "config.CORSWhitelist": {
  4836. "type": "object",
  4837. "properties": {
  4838. "allow-credentials": {
  4839. "type": "boolean"
  4840. },
  4841. "allow-headers": {
  4842. "type": "string"
  4843. },
  4844. "allow-methods": {
  4845. "type": "string"
  4846. },
  4847. "allow-origin": {
  4848. "type": "string"
  4849. },
  4850. "expose-headers": {
  4851. "type": "string"
  4852. }
  4853. }
  4854. },
  4855. "config.Captcha": {
  4856. "type": "object",
  4857. "properties": {
  4858. "img-height": {
  4859. "description": "验证码高度",
  4860. "type": "integer"
  4861. },
  4862. "img-width": {
  4863. "description": "验证码宽度",
  4864. "type": "integer"
  4865. },
  4866. "key-long": {
  4867. "description": "验证码长度",
  4868. "type": "integer"
  4869. },
  4870. "open-captcha": {
  4871. "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码",
  4872. "type": "integer"
  4873. },
  4874. "open-captcha-timeout": {
  4875. "description": "防爆破验证码超时时间,单位:s(秒)",
  4876. "type": "integer"
  4877. }
  4878. }
  4879. },
  4880. "config.Excel": {
  4881. "type": "object",
  4882. "properties": {
  4883. "dir": {
  4884. "type": "string"
  4885. }
  4886. }
  4887. },
  4888. "config.HuaWeiObs": {
  4889. "type": "object",
  4890. "properties": {
  4891. "access-key": {
  4892. "type": "string"
  4893. },
  4894. "bucket": {
  4895. "type": "string"
  4896. },
  4897. "endpoint": {
  4898. "type": "string"
  4899. },
  4900. "path": {
  4901. "type": "string"
  4902. },
  4903. "secret-key": {
  4904. "type": "string"
  4905. }
  4906. }
  4907. },
  4908. "config.JWT": {
  4909. "type": "object",
  4910. "properties": {
  4911. "buffer-time": {
  4912. "description": "缓冲时间",
  4913. "type": "string"
  4914. },
  4915. "expires-time": {
  4916. "description": "过期时间",
  4917. "type": "string"
  4918. },
  4919. "issuer": {
  4920. "description": "签发者",
  4921. "type": "string"
  4922. },
  4923. "signing-key": {
  4924. "description": "jwt签名",
  4925. "type": "string"
  4926. }
  4927. }
  4928. },
  4929. "config.Local": {
  4930. "type": "object",
  4931. "properties": {
  4932. "path": {
  4933. "description": "本地文件访问路径",
  4934. "type": "string"
  4935. },
  4936. "store-path": {
  4937. "description": "本地文件存储路径",
  4938. "type": "string"
  4939. }
  4940. }
  4941. },
  4942. "config.Mongo": {
  4943. "type": "object",
  4944. "properties": {
  4945. "coll": {
  4946. "description": "collection name",
  4947. "type": "string"
  4948. },
  4949. "connect-timeout-ms": {
  4950. "description": "连接超时时间",
  4951. "type": "integer"
  4952. },
  4953. "database": {
  4954. "description": "database name",
  4955. "type": "string"
  4956. },
  4957. "hosts": {
  4958. "description": "主机列表",
  4959. "type": "array",
  4960. "items": {
  4961. "$ref": "#/definitions/config.MongoHost"
  4962. }
  4963. },
  4964. "is-zap": {
  4965. "description": "是否开启zap日志",
  4966. "type": "boolean"
  4967. },
  4968. "max-pool-size": {
  4969. "description": "最大连接池",
  4970. "type": "integer"
  4971. },
  4972. "min-pool-size": {
  4973. "description": "最小连接池",
  4974. "type": "integer"
  4975. },
  4976. "options": {
  4977. "description": "mongodb options",
  4978. "type": "string"
  4979. },
  4980. "password": {
  4981. "description": "密码",
  4982. "type": "string"
  4983. },
  4984. "socket-timeout-ms": {
  4985. "description": "socket超时时间",
  4986. "type": "integer"
  4987. },
  4988. "username": {
  4989. "description": "用户名",
  4990. "type": "string"
  4991. }
  4992. }
  4993. },
  4994. "config.MongoHost": {
  4995. "type": "object",
  4996. "properties": {
  4997. "host": {
  4998. "description": "ip地址",
  4999. "type": "string"
  5000. },
  5001. "port": {
  5002. "description": "端口",
  5003. "type": "string"
  5004. }
  5005. }
  5006. },
  5007. "config.Mssql": {
  5008. "type": "object",
  5009. "properties": {
  5010. "config": {
  5011. "description": "高级配置",
  5012. "type": "string"
  5013. },
  5014. "db-name": {
  5015. "description": "数据库名",
  5016. "type": "string"
  5017. },
  5018. "engine": {
  5019. "description": "数据库引擎,默认InnoDB",
  5020. "type": "string",
  5021. "default": "InnoDB"
  5022. },
  5023. "log-mode": {
  5024. "description": "是否开启Gorm全局日志",
  5025. "type": "string"
  5026. },
  5027. "log-zap": {
  5028. "description": "是否通过zap写入日志文件",
  5029. "type": "boolean"
  5030. },
  5031. "max-idle-conns": {
  5032. "description": "空闲中的最大连接数",
  5033. "type": "integer"
  5034. },
  5035. "max-open-conns": {
  5036. "description": "打开到数据库的最大连接数",
  5037. "type": "integer"
  5038. },
  5039. "password": {
  5040. "description": "数据库密码",
  5041. "type": "string"
  5042. },
  5043. "path": {
  5044. "type": "string"
  5045. },
  5046. "port": {
  5047. "type": "string"
  5048. },
  5049. "prefix": {
  5050. "type": "string"
  5051. },
  5052. "singular": {
  5053. "description": "是否开启全局禁用复数,true表示开启",
  5054. "type": "boolean"
  5055. },
  5056. "username": {
  5057. "description": "数据库密码",
  5058. "type": "string"
  5059. }
  5060. }
  5061. },
  5062. "config.Mysql": {
  5063. "type": "object",
  5064. "properties": {
  5065. "config": {
  5066. "description": "高级配置",
  5067. "type": "string"
  5068. },
  5069. "db-name": {
  5070. "description": "数据库名",
  5071. "type": "string"
  5072. },
  5073. "engine": {
  5074. "description": "数据库引擎,默认InnoDB",
  5075. "type": "string",
  5076. "default": "InnoDB"
  5077. },
  5078. "log-mode": {
  5079. "description": "是否开启Gorm全局日志",
  5080. "type": "string"
  5081. },
  5082. "log-zap": {
  5083. "description": "是否通过zap写入日志文件",
  5084. "type": "boolean"
  5085. },
  5086. "max-idle-conns": {
  5087. "description": "空闲中的最大连接数",
  5088. "type": "integer"
  5089. },
  5090. "max-open-conns": {
  5091. "description": "打开到数据库的最大连接数",
  5092. "type": "integer"
  5093. },
  5094. "password": {
  5095. "description": "数据库密码",
  5096. "type": "string"
  5097. },
  5098. "path": {
  5099. "type": "string"
  5100. },
  5101. "port": {
  5102. "type": "string"
  5103. },
  5104. "prefix": {
  5105. "type": "string"
  5106. },
  5107. "singular": {
  5108. "description": "是否开启全局禁用复数,true表示开启",
  5109. "type": "boolean"
  5110. },
  5111. "username": {
  5112. "description": "数据库密码",
  5113. "type": "string"
  5114. }
  5115. }
  5116. },
  5117. "config.Oracle": {
  5118. "type": "object",
  5119. "properties": {
  5120. "config": {
  5121. "description": "高级配置",
  5122. "type": "string"
  5123. },
  5124. "db-name": {
  5125. "description": "数据库名",
  5126. "type": "string"
  5127. },
  5128. "engine": {
  5129. "description": "数据库引擎,默认InnoDB",
  5130. "type": "string",
  5131. "default": "InnoDB"
  5132. },
  5133. "log-mode": {
  5134. "description": "是否开启Gorm全局日志",
  5135. "type": "string"
  5136. },
  5137. "log-zap": {
  5138. "description": "是否通过zap写入日志文件",
  5139. "type": "boolean"
  5140. },
  5141. "max-idle-conns": {
  5142. "description": "空闲中的最大连接数",
  5143. "type": "integer"
  5144. },
  5145. "max-open-conns": {
  5146. "description": "打开到数据库的最大连接数",
  5147. "type": "integer"
  5148. },
  5149. "password": {
  5150. "description": "数据库密码",
  5151. "type": "string"
  5152. },
  5153. "path": {
  5154. "type": "string"
  5155. },
  5156. "port": {
  5157. "type": "string"
  5158. },
  5159. "prefix": {
  5160. "type": "string"
  5161. },
  5162. "singular": {
  5163. "description": "是否开启全局禁用复数,true表示开启",
  5164. "type": "boolean"
  5165. },
  5166. "username": {
  5167. "description": "数据库密码",
  5168. "type": "string"
  5169. }
  5170. }
  5171. },
  5172. "config.Pgsql": {
  5173. "type": "object",
  5174. "properties": {
  5175. "config": {
  5176. "description": "高级配置",
  5177. "type": "string"
  5178. },
  5179. "db-name": {
  5180. "description": "数据库名",
  5181. "type": "string"
  5182. },
  5183. "engine": {
  5184. "description": "数据库引擎,默认InnoDB",
  5185. "type": "string",
  5186. "default": "InnoDB"
  5187. },
  5188. "log-mode": {
  5189. "description": "是否开启Gorm全局日志",
  5190. "type": "string"
  5191. },
  5192. "log-zap": {
  5193. "description": "是否通过zap写入日志文件",
  5194. "type": "boolean"
  5195. },
  5196. "max-idle-conns": {
  5197. "description": "空闲中的最大连接数",
  5198. "type": "integer"
  5199. },
  5200. "max-open-conns": {
  5201. "description": "打开到数据库的最大连接数",
  5202. "type": "integer"
  5203. },
  5204. "password": {
  5205. "description": "数据库密码",
  5206. "type": "string"
  5207. },
  5208. "path": {
  5209. "type": "string"
  5210. },
  5211. "port": {
  5212. "type": "string"
  5213. },
  5214. "prefix": {
  5215. "type": "string"
  5216. },
  5217. "singular": {
  5218. "description": "是否开启全局禁用复数,true表示开启",
  5219. "type": "boolean"
  5220. },
  5221. "username": {
  5222. "description": "数据库密码",
  5223. "type": "string"
  5224. }
  5225. }
  5226. },
  5227. "config.Qiniu": {
  5228. "type": "object",
  5229. "properties": {
  5230. "access-key": {
  5231. "description": "秘钥AK",
  5232. "type": "string"
  5233. },
  5234. "bucket": {
  5235. "description": "空间名称",
  5236. "type": "string"
  5237. },
  5238. "img-path": {
  5239. "description": "CDN加速域名",
  5240. "type": "string"
  5241. },
  5242. "secret-key": {
  5243. "description": "秘钥SK",
  5244. "type": "string"
  5245. },
  5246. "use-cdn-domains": {
  5247. "description": "上传是否使用CDN上传加速",
  5248. "type": "boolean"
  5249. },
  5250. "use-https": {
  5251. "description": "是否使用https",
  5252. "type": "boolean"
  5253. },
  5254. "zone": {
  5255. "description": "存储区域",
  5256. "type": "string"
  5257. }
  5258. }
  5259. },
  5260. "config.Redis": {
  5261. "type": "object",
  5262. "properties": {
  5263. "addr": {
  5264. "description": "服务器地址:端口",
  5265. "type": "string"
  5266. },
  5267. "db": {
  5268. "description": "redis的哪个数据库",
  5269. "type": "integer"
  5270. },
  5271. "password": {
  5272. "description": "密码",
  5273. "type": "string"
  5274. }
  5275. }
  5276. },
  5277. "config.Server": {
  5278. "type": "object",
  5279. "properties": {
  5280. "aliyun-oss": {
  5281. "$ref": "#/definitions/config.AliyunOSS"
  5282. },
  5283. "autocode": {
  5284. "description": "auto",
  5285. "allOf": [
  5286. {
  5287. "$ref": "#/definitions/config.Autocode"
  5288. }
  5289. ]
  5290. },
  5291. "aws-s3": {
  5292. "$ref": "#/definitions/config.AwsS3"
  5293. },
  5294. "captcha": {
  5295. "$ref": "#/definitions/config.Captcha"
  5296. },
  5297. "cors": {
  5298. "description": "跨域配置",
  5299. "allOf": [
  5300. {
  5301. "$ref": "#/definitions/config.CORS"
  5302. }
  5303. ]
  5304. },
  5305. "db-list": {
  5306. "type": "array",
  5307. "items": {
  5308. "$ref": "#/definitions/config.SpecializedDB"
  5309. }
  5310. },
  5311. "email": {
  5312. "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email"
  5313. },
  5314. "excel": {
  5315. "$ref": "#/definitions/config.Excel"
  5316. },
  5317. "hua-wei-obs": {
  5318. "$ref": "#/definitions/config.HuaWeiObs"
  5319. },
  5320. "jwt": {
  5321. "$ref": "#/definitions/config.JWT"
  5322. },
  5323. "local": {
  5324. "description": "oss",
  5325. "allOf": [
  5326. {
  5327. "$ref": "#/definitions/config.Local"
  5328. }
  5329. ]
  5330. },
  5331. "mongo": {
  5332. "$ref": "#/definitions/config.Mongo"
  5333. },
  5334. "mssql": {
  5335. "$ref": "#/definitions/config.Mssql"
  5336. },
  5337. "mysql": {
  5338. "description": "gorm",
  5339. "allOf": [
  5340. {
  5341. "$ref": "#/definitions/config.Mysql"
  5342. }
  5343. ]
  5344. },
  5345. "oracle": {
  5346. "$ref": "#/definitions/config.Oracle"
  5347. },
  5348. "pgsql": {
  5349. "$ref": "#/definitions/config.Pgsql"
  5350. },
  5351. "qiniu": {
  5352. "$ref": "#/definitions/config.Qiniu"
  5353. },
  5354. "redis": {
  5355. "$ref": "#/definitions/config.Redis"
  5356. },
  5357. "sqlite": {
  5358. "$ref": "#/definitions/config.Sqlite"
  5359. },
  5360. "system": {
  5361. "$ref": "#/definitions/config.System"
  5362. },
  5363. "tencent-cos": {
  5364. "$ref": "#/definitions/config.TencentCOS"
  5365. },
  5366. "zap": {
  5367. "$ref": "#/definitions/config.Zap"
  5368. }
  5369. }
  5370. },
  5371. "config.SpecializedDB": {
  5372. "type": "object",
  5373. "properties": {
  5374. "alias-name": {
  5375. "type": "string"
  5376. },
  5377. "config": {
  5378. "description": "高级配置",
  5379. "type": "string"
  5380. },
  5381. "db-name": {
  5382. "description": "数据库名",
  5383. "type": "string"
  5384. },
  5385. "disable": {
  5386. "type": "boolean"
  5387. },
  5388. "engine": {
  5389. "description": "数据库引擎,默认InnoDB",
  5390. "type": "string",
  5391. "default": "InnoDB"
  5392. },
  5393. "log-mode": {
  5394. "description": "是否开启Gorm全局日志",
  5395. "type": "string"
  5396. },
  5397. "log-zap": {
  5398. "description": "是否通过zap写入日志文件",
  5399. "type": "boolean"
  5400. },
  5401. "max-idle-conns": {
  5402. "description": "空闲中的最大连接数",
  5403. "type": "integer"
  5404. },
  5405. "max-open-conns": {
  5406. "description": "打开到数据库的最大连接数",
  5407. "type": "integer"
  5408. },
  5409. "password": {
  5410. "description": "数据库密码",
  5411. "type": "string"
  5412. },
  5413. "path": {
  5414. "type": "string"
  5415. },
  5416. "port": {
  5417. "type": "string"
  5418. },
  5419. "prefix": {
  5420. "type": "string"
  5421. },
  5422. "singular": {
  5423. "description": "是否开启全局禁用复数,true表示开启",
  5424. "type": "boolean"
  5425. },
  5426. "type": {
  5427. "type": "string"
  5428. },
  5429. "username": {
  5430. "description": "数据库密码",
  5431. "type": "string"
  5432. }
  5433. }
  5434. },
  5435. "config.Sqlite": {
  5436. "type": "object",
  5437. "properties": {
  5438. "config": {
  5439. "description": "高级配置",
  5440. "type": "string"
  5441. },
  5442. "db-name": {
  5443. "description": "数据库名",
  5444. "type": "string"
  5445. },
  5446. "engine": {
  5447. "description": "数据库引擎,默认InnoDB",
  5448. "type": "string",
  5449. "default": "InnoDB"
  5450. },
  5451. "log-mode": {
  5452. "description": "是否开启Gorm全局日志",
  5453. "type": "string"
  5454. },
  5455. "log-zap": {
  5456. "description": "是否通过zap写入日志文件",
  5457. "type": "boolean"
  5458. },
  5459. "max-idle-conns": {
  5460. "description": "空闲中的最大连接数",
  5461. "type": "integer"
  5462. },
  5463. "max-open-conns": {
  5464. "description": "打开到数据库的最大连接数",
  5465. "type": "integer"
  5466. },
  5467. "password": {
  5468. "description": "数据库密码",
  5469. "type": "string"
  5470. },
  5471. "path": {
  5472. "type": "string"
  5473. },
  5474. "port": {
  5475. "type": "string"
  5476. },
  5477. "prefix": {
  5478. "type": "string"
  5479. },
  5480. "singular": {
  5481. "description": "是否开启全局禁用复数,true表示开启",
  5482. "type": "boolean"
  5483. },
  5484. "username": {
  5485. "description": "数据库密码",
  5486. "type": "string"
  5487. }
  5488. }
  5489. },
  5490. "config.System": {
  5491. "type": "object",
  5492. "properties": {
  5493. "addr": {
  5494. "description": "端口值",
  5495. "type": "integer"
  5496. },
  5497. "db-type": {
  5498. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  5499. "type": "string"
  5500. },
  5501. "env": {
  5502. "description": "环境值",
  5503. "type": "string"
  5504. },
  5505. "iplimit-count": {
  5506. "type": "integer"
  5507. },
  5508. "iplimit-time": {
  5509. "type": "integer"
  5510. },
  5511. "oss-type": {
  5512. "description": "Oss类型",
  5513. "type": "string"
  5514. },
  5515. "router-prefix": {
  5516. "type": "string"
  5517. },
  5518. "use-mongo": {
  5519. "description": "使用redis",
  5520. "type": "boolean"
  5521. },
  5522. "use-multipoint": {
  5523. "description": "多点登录拦截",
  5524. "type": "boolean"
  5525. },
  5526. "use-redis": {
  5527. "description": "使用redis",
  5528. "type": "boolean"
  5529. }
  5530. }
  5531. },
  5532. "config.TencentCOS": {
  5533. "type": "object",
  5534. "properties": {
  5535. "base-url": {
  5536. "type": "string"
  5537. },
  5538. "bucket": {
  5539. "type": "string"
  5540. },
  5541. "path-prefix": {
  5542. "type": "string"
  5543. },
  5544. "region": {
  5545. "type": "string"
  5546. },
  5547. "secret-id": {
  5548. "type": "string"
  5549. },
  5550. "secret-key": {
  5551. "type": "string"
  5552. }
  5553. }
  5554. },
  5555. "config.Zap": {
  5556. "type": "object",
  5557. "properties": {
  5558. "director": {
  5559. "description": "日志文件夹",
  5560. "type": "string"
  5561. },
  5562. "encode-level": {
  5563. "description": "编码级",
  5564. "type": "string"
  5565. },
  5566. "format": {
  5567. "description": "输出",
  5568. "type": "string"
  5569. },
  5570. "level": {
  5571. "description": "级别",
  5572. "type": "string"
  5573. },
  5574. "log-in-console": {
  5575. "description": "输出控制台",
  5576. "type": "boolean"
  5577. },
  5578. "max-age": {
  5579. "description": "日志留存时间",
  5580. "type": "integer"
  5581. },
  5582. "prefix": {
  5583. "description": "日志前缀",
  5584. "type": "string"
  5585. },
  5586. "show-line": {
  5587. "description": "显示行",
  5588. "type": "boolean"
  5589. },
  5590. "stacktrace-key": {
  5591. "description": "栈名",
  5592. "type": "string"
  5593. }
  5594. }
  5595. },
  5596. "example.ExaCustomer": {
  5597. "type": "object",
  5598. "properties": {
  5599. "ID": {
  5600. "description": "主键ID",
  5601. "type": "integer"
  5602. },
  5603. "createdAt": {
  5604. "description": "创建时间",
  5605. "type": "string"
  5606. },
  5607. "customerName": {
  5608. "description": "客户名",
  5609. "type": "string"
  5610. },
  5611. "customerPhoneData": {
  5612. "description": "客户手机号",
  5613. "type": "string"
  5614. },
  5615. "sysUser": {
  5616. "description": "管理详情",
  5617. "allOf": [
  5618. {
  5619. "$ref": "#/definitions/system.SysUser"
  5620. }
  5621. ]
  5622. },
  5623. "sysUserAuthorityID": {
  5624. "description": "管理角色ID",
  5625. "type": "integer"
  5626. },
  5627. "sysUserId": {
  5628. "description": "管理ID",
  5629. "type": "integer"
  5630. },
  5631. "updatedAt": {
  5632. "description": "更新时间",
  5633. "type": "string"
  5634. }
  5635. }
  5636. },
  5637. "example.ExaFile": {
  5638. "type": "object",
  5639. "properties": {
  5640. "ID": {
  5641. "description": "主键ID",
  5642. "type": "integer"
  5643. },
  5644. "chunkTotal": {
  5645. "type": "integer"
  5646. },
  5647. "createdAt": {
  5648. "description": "创建时间",
  5649. "type": "string"
  5650. },
  5651. "exaFileChunk": {
  5652. "type": "array",
  5653. "items": {
  5654. "$ref": "#/definitions/example.ExaFileChunk"
  5655. }
  5656. },
  5657. "fileMd5": {
  5658. "type": "string"
  5659. },
  5660. "fileName": {
  5661. "type": "string"
  5662. },
  5663. "filePath": {
  5664. "type": "string"
  5665. },
  5666. "isFinish": {
  5667. "type": "boolean"
  5668. },
  5669. "updatedAt": {
  5670. "description": "更新时间",
  5671. "type": "string"
  5672. }
  5673. }
  5674. },
  5675. "example.ExaFileChunk": {
  5676. "type": "object",
  5677. "properties": {
  5678. "ID": {
  5679. "description": "主键ID",
  5680. "type": "integer"
  5681. },
  5682. "createdAt": {
  5683. "description": "创建时间",
  5684. "type": "string"
  5685. },
  5686. "exaFileID": {
  5687. "type": "integer"
  5688. },
  5689. "fileChunkNumber": {
  5690. "type": "integer"
  5691. },
  5692. "fileChunkPath": {
  5693. "type": "string"
  5694. },
  5695. "updatedAt": {
  5696. "description": "更新时间",
  5697. "type": "string"
  5698. }
  5699. }
  5700. },
  5701. "example.ExaFileUploadAndDownload": {
  5702. "type": "object",
  5703. "properties": {
  5704. "ID": {
  5705. "description": "主键ID",
  5706. "type": "integer"
  5707. },
  5708. "createdAt": {
  5709. "description": "创建时间",
  5710. "type": "string"
  5711. },
  5712. "key": {
  5713. "description": "编号",
  5714. "type": "string"
  5715. },
  5716. "name": {
  5717. "description": "文件名",
  5718. "type": "string"
  5719. },
  5720. "tag": {
  5721. "description": "文件标签",
  5722. "type": "string"
  5723. },
  5724. "updatedAt": {
  5725. "description": "更新时间",
  5726. "type": "string"
  5727. },
  5728. "url": {
  5729. "description": "文件地址",
  5730. "type": "string"
  5731. }
  5732. }
  5733. },
  5734. "github_com_flipped-aurora_gin-vue-admin_server_config.Email": {
  5735. "type": "object",
  5736. "properties": {
  5737. "from": {
  5738. "description": "发件人 你自己要发邮件的邮箱",
  5739. "type": "string"
  5740. },
  5741. "host": {
  5742. "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议",
  5743. "type": "string"
  5744. },
  5745. "is-ssl": {
  5746. "description": "是否SSL 是否开启SSL",
  5747. "type": "boolean"
  5748. },
  5749. "nickname": {
  5750. "description": "昵称 发件人昵称 通常为自己的邮箱",
  5751. "type": "string"
  5752. },
  5753. "port": {
  5754. "description": "端口 请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465",
  5755. "type": "integer"
  5756. },
  5757. "secret": {
  5758. "description": "密钥 用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥",
  5759. "type": "string"
  5760. },
  5761. "to": {
  5762. "description": "收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用",
  5763. "type": "string"
  5764. }
  5765. }
  5766. },
  5767. "request.AddMenuAuthorityInfo": {
  5768. "type": "object",
  5769. "properties": {
  5770. "authorityId": {
  5771. "description": "角色ID",
  5772. "type": "integer"
  5773. },
  5774. "menus": {
  5775. "type": "array",
  5776. "items": {
  5777. "$ref": "#/definitions/system.SysBaseMenu"
  5778. }
  5779. }
  5780. }
  5781. },
  5782. "request.CasbinInReceive": {
  5783. "type": "object",
  5784. "properties": {
  5785. "authorityId": {
  5786. "description": "权限id",
  5787. "type": "integer"
  5788. },
  5789. "casbinInfos": {
  5790. "type": "array",
  5791. "items": {
  5792. "$ref": "#/definitions/request.CasbinInfo"
  5793. }
  5794. }
  5795. }
  5796. },
  5797. "request.CasbinInfo": {
  5798. "type": "object",
  5799. "properties": {
  5800. "method": {
  5801. "description": "方法",
  5802. "type": "string"
  5803. },
  5804. "path": {
  5805. "description": "路径",
  5806. "type": "string"
  5807. }
  5808. }
  5809. },
  5810. "request.ChangePasswordReq": {
  5811. "type": "object",
  5812. "properties": {
  5813. "newPassword": {
  5814. "description": "新密码",
  5815. "type": "string"
  5816. },
  5817. "password": {
  5818. "description": "密码",
  5819. "type": "string"
  5820. }
  5821. }
  5822. },
  5823. "request.Empty": {
  5824. "type": "object"
  5825. },
  5826. "request.GetAuthorityId": {
  5827. "type": "object",
  5828. "properties": {
  5829. "authorityId": {
  5830. "description": "角色ID",
  5831. "type": "integer"
  5832. }
  5833. }
  5834. },
  5835. "request.GetById": {
  5836. "type": "object",
  5837. "properties": {
  5838. "id": {
  5839. "description": "主键ID",
  5840. "type": "integer"
  5841. }
  5842. }
  5843. },
  5844. "request.IdsReq": {
  5845. "type": "object",
  5846. "properties": {
  5847. "ids": {
  5848. "type": "array",
  5849. "items": {
  5850. "type": "integer"
  5851. }
  5852. }
  5853. }
  5854. },
  5855. "request.InitDB": {
  5856. "type": "object",
  5857. "required": [
  5858. "dbName"
  5859. ],
  5860. "properties": {
  5861. "dbName": {
  5862. "description": "数据库名",
  5863. "type": "string"
  5864. },
  5865. "dbPath": {
  5866. "description": "sqlite数据库文件路径",
  5867. "type": "string"
  5868. },
  5869. "dbType": {
  5870. "description": "数据库类型",
  5871. "type": "string"
  5872. },
  5873. "host": {
  5874. "description": "服务器地址",
  5875. "type": "string"
  5876. },
  5877. "password": {
  5878. "description": "数据库密码",
  5879. "type": "string"
  5880. },
  5881. "port": {
  5882. "description": "数据库连接端口",
  5883. "type": "string"
  5884. },
  5885. "userName": {
  5886. "description": "数据库用户名",
  5887. "type": "string"
  5888. }
  5889. }
  5890. },
  5891. "request.Login": {
  5892. "type": "object",
  5893. "properties": {
  5894. "captcha": {
  5895. "description": "验证码",
  5896. "type": "string"
  5897. },
  5898. "captchaId": {
  5899. "description": "验证码ID",
  5900. "type": "string"
  5901. },
  5902. "password": {
  5903. "description": "密码",
  5904. "type": "string"
  5905. },
  5906. "username": {
  5907. "description": "用户名",
  5908. "type": "string"
  5909. }
  5910. }
  5911. },
  5912. "request.PageInfo": {
  5913. "type": "object",
  5914. "properties": {
  5915. "keyword": {
  5916. "description": "关键字",
  5917. "type": "string"
  5918. },
  5919. "page": {
  5920. "description": "页码",
  5921. "type": "integer"
  5922. },
  5923. "pageSize": {
  5924. "description": "每页大小",
  5925. "type": "integer"
  5926. }
  5927. }
  5928. },
  5929. "request.Register": {
  5930. "type": "object",
  5931. "properties": {
  5932. "authorityId": {
  5933. "type": "string",
  5934. "example": "int 角色id"
  5935. },
  5936. "authorityIds": {
  5937. "type": "string",
  5938. "example": "[]uint 角色id"
  5939. },
  5940. "email": {
  5941. "type": "string",
  5942. "example": "电子邮箱"
  5943. },
  5944. "enable": {
  5945. "type": "string",
  5946. "example": "int 是否启用"
  5947. },
  5948. "headerImg": {
  5949. "type": "string",
  5950. "example": "头像链接"
  5951. },
  5952. "nickName": {
  5953. "type": "string",
  5954. "example": "昵称"
  5955. },
  5956. "passWord": {
  5957. "type": "string",
  5958. "example": "密码"
  5959. },
  5960. "phone": {
  5961. "type": "string",
  5962. "example": "电话号码"
  5963. },
  5964. "userName": {
  5965. "type": "string",
  5966. "example": "用户名"
  5967. }
  5968. }
  5969. },
  5970. "request.RollBack": {
  5971. "type": "object",
  5972. "properties": {
  5973. "deleteTable": {
  5974. "description": "是否删除表",
  5975. "type": "boolean"
  5976. },
  5977. "id": {
  5978. "description": "主键ID",
  5979. "type": "integer"
  5980. }
  5981. }
  5982. },
  5983. "request.SearchApiParams": {
  5984. "type": "object",
  5985. "properties": {
  5986. "ID": {
  5987. "description": "主键ID",
  5988. "type": "integer"
  5989. },
  5990. "apiGroup": {
  5991. "description": "api组",
  5992. "type": "string"
  5993. },
  5994. "createdAt": {
  5995. "description": "创建时间",
  5996. "type": "string"
  5997. },
  5998. "desc": {
  5999. "description": "排序方式:升序false(默认)|降序true",
  6000. "type": "boolean"
  6001. },
  6002. "description": {
  6003. "description": "api中文描述",
  6004. "type": "string"
  6005. },
  6006. "keyword": {
  6007. "description": "关键字",
  6008. "type": "string"
  6009. },
  6010. "method": {
  6011. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  6012. "type": "string"
  6013. },
  6014. "orderKey": {
  6015. "description": "排序",
  6016. "type": "string"
  6017. },
  6018. "page": {
  6019. "description": "页码",
  6020. "type": "integer"
  6021. },
  6022. "pageSize": {
  6023. "description": "每页大小",
  6024. "type": "integer"
  6025. },
  6026. "path": {
  6027. "description": "api路径",
  6028. "type": "string"
  6029. },
  6030. "updatedAt": {
  6031. "description": "更新时间",
  6032. "type": "string"
  6033. }
  6034. }
  6035. },
  6036. "request.SetUserAuth": {
  6037. "type": "object",
  6038. "properties": {
  6039. "authorityId": {
  6040. "description": "角色ID",
  6041. "type": "integer"
  6042. }
  6043. }
  6044. },
  6045. "request.SetUserAuthorities": {
  6046. "type": "object",
  6047. "properties": {
  6048. "authorityIds": {
  6049. "description": "角色ID",
  6050. "type": "array",
  6051. "items": {
  6052. "type": "integer"
  6053. }
  6054. },
  6055. "id": {
  6056. "type": "integer"
  6057. }
  6058. }
  6059. },
  6060. "request.SysAuthorityBtnReq": {
  6061. "type": "object",
  6062. "properties": {
  6063. "authorityId": {
  6064. "type": "integer"
  6065. },
  6066. "menuID": {
  6067. "type": "integer"
  6068. },
  6069. "selected": {
  6070. "type": "array",
  6071. "items": {
  6072. "type": "integer"
  6073. }
  6074. }
  6075. }
  6076. },
  6077. "request.SysAutoHistory": {
  6078. "type": "object",
  6079. "properties": {
  6080. "keyword": {
  6081. "description": "关键字",
  6082. "type": "string"
  6083. },
  6084. "page": {
  6085. "description": "页码",
  6086. "type": "integer"
  6087. },
  6088. "pageSize": {
  6089. "description": "每页大小",
  6090. "type": "integer"
  6091. }
  6092. }
  6093. },
  6094. "response.Email": {
  6095. "type": "object",
  6096. "properties": {
  6097. "body": {
  6098. "description": "邮件内容",
  6099. "type": "string"
  6100. },
  6101. "subject": {
  6102. "description": "邮件标题",
  6103. "type": "string"
  6104. },
  6105. "to": {
  6106. "description": "邮件发送给谁",
  6107. "type": "string"
  6108. }
  6109. }
  6110. },
  6111. "response.ExaCustomerResponse": {
  6112. "type": "object",
  6113. "properties": {
  6114. "customer": {
  6115. "$ref": "#/definitions/example.ExaCustomer"
  6116. }
  6117. }
  6118. },
  6119. "response.ExaFileResponse": {
  6120. "type": "object",
  6121. "properties": {
  6122. "file": {
  6123. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  6124. }
  6125. }
  6126. },
  6127. "response.FilePathResponse": {
  6128. "type": "object",
  6129. "properties": {
  6130. "filePath": {
  6131. "type": "string"
  6132. }
  6133. }
  6134. },
  6135. "response.FileResponse": {
  6136. "type": "object",
  6137. "properties": {
  6138. "file": {
  6139. "$ref": "#/definitions/example.ExaFile"
  6140. }
  6141. }
  6142. },
  6143. "response.LoginResponse": {
  6144. "type": "object",
  6145. "properties": {
  6146. "expiresAt": {
  6147. "type": "integer"
  6148. },
  6149. "token": {
  6150. "type": "string"
  6151. },
  6152. "user": {
  6153. "$ref": "#/definitions/system.SysUser"
  6154. }
  6155. }
  6156. },
  6157. "response.PageResult": {
  6158. "type": "object",
  6159. "properties": {
  6160. "list": {},
  6161. "page": {
  6162. "type": "integer"
  6163. },
  6164. "pageSize": {
  6165. "type": "integer"
  6166. },
  6167. "total": {
  6168. "type": "integer"
  6169. }
  6170. }
  6171. },
  6172. "response.PolicyPathResponse": {
  6173. "type": "object",
  6174. "properties": {
  6175. "paths": {
  6176. "type": "array",
  6177. "items": {
  6178. "$ref": "#/definitions/request.CasbinInfo"
  6179. }
  6180. }
  6181. }
  6182. },
  6183. "response.Response": {
  6184. "type": "object",
  6185. "properties": {
  6186. "code": {
  6187. "type": "integer"
  6188. },
  6189. "data": {},
  6190. "msg": {
  6191. "type": "string"
  6192. }
  6193. }
  6194. },
  6195. "response.SysAPIListResponse": {
  6196. "type": "object",
  6197. "properties": {
  6198. "apis": {
  6199. "type": "array",
  6200. "items": {
  6201. "$ref": "#/definitions/system.SysApi"
  6202. }
  6203. }
  6204. }
  6205. },
  6206. "response.SysAPIResponse": {
  6207. "type": "object",
  6208. "properties": {
  6209. "api": {
  6210. "$ref": "#/definitions/system.SysApi"
  6211. }
  6212. }
  6213. },
  6214. "response.SysAuthorityBtnRes": {
  6215. "type": "object",
  6216. "properties": {
  6217. "selected": {
  6218. "type": "array",
  6219. "items": {
  6220. "type": "integer"
  6221. }
  6222. }
  6223. }
  6224. },
  6225. "response.SysAuthorityCopyResponse": {
  6226. "type": "object",
  6227. "properties": {
  6228. "authority": {
  6229. "$ref": "#/definitions/system.SysAuthority"
  6230. },
  6231. "oldAuthorityId": {
  6232. "description": "旧角色ID",
  6233. "type": "integer"
  6234. }
  6235. }
  6236. },
  6237. "response.SysAuthorityResponse": {
  6238. "type": "object",
  6239. "properties": {
  6240. "authority": {
  6241. "$ref": "#/definitions/system.SysAuthority"
  6242. }
  6243. }
  6244. },
  6245. "response.SysBaseMenuResponse": {
  6246. "type": "object",
  6247. "properties": {
  6248. "menu": {
  6249. "$ref": "#/definitions/system.SysBaseMenu"
  6250. }
  6251. }
  6252. },
  6253. "response.SysBaseMenusResponse": {
  6254. "type": "object",
  6255. "properties": {
  6256. "menus": {
  6257. "type": "array",
  6258. "items": {
  6259. "$ref": "#/definitions/system.SysBaseMenu"
  6260. }
  6261. }
  6262. }
  6263. },
  6264. "response.SysCaptchaResponse": {
  6265. "type": "object",
  6266. "properties": {
  6267. "captchaId": {
  6268. "type": "string"
  6269. },
  6270. "captchaLength": {
  6271. "type": "integer"
  6272. },
  6273. "openCaptcha": {
  6274. "type": "boolean"
  6275. },
  6276. "picPath": {
  6277. "type": "string"
  6278. }
  6279. }
  6280. },
  6281. "response.SysConfigResponse": {
  6282. "type": "object",
  6283. "properties": {
  6284. "config": {
  6285. "$ref": "#/definitions/config.Server"
  6286. }
  6287. }
  6288. },
  6289. "response.SysMenusResponse": {
  6290. "type": "object",
  6291. "properties": {
  6292. "menus": {
  6293. "type": "array",
  6294. "items": {
  6295. "$ref": "#/definitions/system.SysMenu"
  6296. }
  6297. }
  6298. }
  6299. },
  6300. "response.SysUserResponse": {
  6301. "type": "object",
  6302. "properties": {
  6303. "user": {
  6304. "$ref": "#/definitions/system.SysUser"
  6305. }
  6306. }
  6307. },
  6308. "system.AutoCodeStruct": {
  6309. "type": "object",
  6310. "properties": {
  6311. "abbreviation": {
  6312. "description": "Struct简称",
  6313. "type": "string"
  6314. },
  6315. "autoCreateApiToSql": {
  6316. "description": "是否自动创建api",
  6317. "type": "boolean"
  6318. },
  6319. "autoCreateResource": {
  6320. "description": "是否自动创建资源标识",
  6321. "type": "boolean"
  6322. },
  6323. "autoMoveFile": {
  6324. "description": "是否自动移动文件",
  6325. "type": "boolean"
  6326. },
  6327. "businessDB": {
  6328. "description": "业务数据库",
  6329. "type": "string"
  6330. },
  6331. "description": {
  6332. "description": "Struct中文名称",
  6333. "type": "string"
  6334. },
  6335. "fields": {
  6336. "type": "array",
  6337. "items": {
  6338. "$ref": "#/definitions/system.Field"
  6339. }
  6340. },
  6341. "hasTimer": {
  6342. "type": "boolean"
  6343. },
  6344. "humpPackageName": {
  6345. "description": "go文件名称",
  6346. "type": "string"
  6347. },
  6348. "package": {
  6349. "type": "string"
  6350. },
  6351. "packageName": {
  6352. "description": "文件名称",
  6353. "type": "string"
  6354. },
  6355. "structName": {
  6356. "description": "Struct名称",
  6357. "type": "string"
  6358. },
  6359. "tableName": {
  6360. "description": "表名",
  6361. "type": "string"
  6362. }
  6363. }
  6364. },
  6365. "system.Field": {
  6366. "type": "object",
  6367. "properties": {
  6368. "clearable": {
  6369. "description": "是否可清空",
  6370. "type": "boolean"
  6371. },
  6372. "columnName": {
  6373. "description": "数据库字段",
  6374. "type": "string"
  6375. },
  6376. "comment": {
  6377. "description": "数据库字段描述",
  6378. "type": "string"
  6379. },
  6380. "dataTypeLong": {
  6381. "description": "数据库字段长度",
  6382. "type": "string"
  6383. },
  6384. "dictType": {
  6385. "description": "字典",
  6386. "type": "string"
  6387. },
  6388. "errorText": {
  6389. "description": "校验失败文字",
  6390. "type": "string"
  6391. },
  6392. "fieldDesc": {
  6393. "description": "中文名",
  6394. "type": "string"
  6395. },
  6396. "fieldJson": {
  6397. "description": "FieldJson",
  6398. "type": "string"
  6399. },
  6400. "fieldName": {
  6401. "description": "Field名",
  6402. "type": "string"
  6403. },
  6404. "fieldSearchType": {
  6405. "description": "搜索条件",
  6406. "type": "string"
  6407. },
  6408. "fieldType": {
  6409. "description": "Field数据类型",
  6410. "type": "string"
  6411. },
  6412. "require": {
  6413. "description": "是否必填",
  6414. "type": "boolean"
  6415. },
  6416. "sort": {
  6417. "description": "是否增加排序",
  6418. "type": "boolean"
  6419. }
  6420. }
  6421. },
  6422. "system.Meta": {
  6423. "type": "object",
  6424. "properties": {
  6425. "activeName": {
  6426. "type": "string"
  6427. },
  6428. "closeTab": {
  6429. "description": "自动关闭tab",
  6430. "type": "boolean"
  6431. },
  6432. "defaultMenu": {
  6433. "description": "是否是基础路由(开发中)",
  6434. "type": "boolean"
  6435. },
  6436. "icon": {
  6437. "description": "菜单图标",
  6438. "type": "string"
  6439. },
  6440. "keepAlive": {
  6441. "description": "是否缓存",
  6442. "type": "boolean"
  6443. },
  6444. "title": {
  6445. "description": "菜单名",
  6446. "type": "string"
  6447. }
  6448. }
  6449. },
  6450. "system.SysApi": {
  6451. "type": "object",
  6452. "properties": {
  6453. "ID": {
  6454. "description": "主键ID",
  6455. "type": "integer"
  6456. },
  6457. "apiGroup": {
  6458. "description": "api组",
  6459. "type": "string"
  6460. },
  6461. "createdAt": {
  6462. "description": "创建时间",
  6463. "type": "string"
  6464. },
  6465. "description": {
  6466. "description": "api中文描述",
  6467. "type": "string"
  6468. },
  6469. "method": {
  6470. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  6471. "type": "string"
  6472. },
  6473. "path": {
  6474. "description": "api路径",
  6475. "type": "string"
  6476. },
  6477. "updatedAt": {
  6478. "description": "更新时间",
  6479. "type": "string"
  6480. }
  6481. }
  6482. },
  6483. "system.SysAuthority": {
  6484. "type": "object",
  6485. "properties": {
  6486. "authorityId": {
  6487. "description": "角色ID",
  6488. "type": "integer"
  6489. },
  6490. "authorityName": {
  6491. "description": "角色名",
  6492. "type": "string"
  6493. },
  6494. "children": {
  6495. "type": "array",
  6496. "items": {
  6497. "$ref": "#/definitions/system.SysAuthority"
  6498. }
  6499. },
  6500. "createdAt": {
  6501. "description": "创建时间",
  6502. "type": "string"
  6503. },
  6504. "dataAuthorityId": {
  6505. "type": "array",
  6506. "items": {
  6507. "$ref": "#/definitions/system.SysAuthority"
  6508. }
  6509. },
  6510. "defaultRouter": {
  6511. "description": "默认菜单(默认dashboard)",
  6512. "type": "string"
  6513. },
  6514. "deletedAt": {
  6515. "type": "string"
  6516. },
  6517. "menus": {
  6518. "type": "array",
  6519. "items": {
  6520. "$ref": "#/definitions/system.SysBaseMenu"
  6521. }
  6522. },
  6523. "parentId": {
  6524. "description": "父角色ID",
  6525. "type": "integer"
  6526. },
  6527. "updatedAt": {
  6528. "description": "更新时间",
  6529. "type": "string"
  6530. }
  6531. }
  6532. },
  6533. "system.SysAutoCode": {
  6534. "type": "object",
  6535. "properties": {
  6536. "ID": {
  6537. "description": "主键ID",
  6538. "type": "integer"
  6539. },
  6540. "createdAt": {
  6541. "description": "创建时间",
  6542. "type": "string"
  6543. },
  6544. "desc": {
  6545. "type": "string"
  6546. },
  6547. "label": {
  6548. "type": "string"
  6549. },
  6550. "packageName": {
  6551. "type": "string"
  6552. },
  6553. "updatedAt": {
  6554. "description": "更新时间",
  6555. "type": "string"
  6556. }
  6557. }
  6558. },
  6559. "system.SysBaseMenu": {
  6560. "type": "object",
  6561. "properties": {
  6562. "ID": {
  6563. "description": "主键ID",
  6564. "type": "integer"
  6565. },
  6566. "authoritys": {
  6567. "type": "array",
  6568. "items": {
  6569. "$ref": "#/definitions/system.SysAuthority"
  6570. }
  6571. },
  6572. "children": {
  6573. "type": "array",
  6574. "items": {
  6575. "$ref": "#/definitions/system.SysBaseMenu"
  6576. }
  6577. },
  6578. "component": {
  6579. "description": "对应前端文件路径",
  6580. "type": "string"
  6581. },
  6582. "createdAt": {
  6583. "description": "创建时间",
  6584. "type": "string"
  6585. },
  6586. "hidden": {
  6587. "description": "是否在列表隐藏",
  6588. "type": "boolean"
  6589. },
  6590. "menuBtn": {
  6591. "type": "array",
  6592. "items": {
  6593. "$ref": "#/definitions/system.SysBaseMenuBtn"
  6594. }
  6595. },
  6596. "meta": {
  6597. "description": "附加属性",
  6598. "allOf": [
  6599. {
  6600. "$ref": "#/definitions/system.Meta"
  6601. }
  6602. ]
  6603. },
  6604. "name": {
  6605. "description": "路由name",
  6606. "type": "string"
  6607. },
  6608. "parameters": {
  6609. "type": "array",
  6610. "items": {
  6611. "$ref": "#/definitions/system.SysBaseMenuParameter"
  6612. }
  6613. },
  6614. "parentId": {
  6615. "description": "父菜单ID",
  6616. "type": "string"
  6617. },
  6618. "path": {
  6619. "description": "路由path",
  6620. "type": "string"
  6621. },
  6622. "sort": {
  6623. "description": "排序标记",
  6624. "type": "integer"
  6625. },
  6626. "updatedAt": {
  6627. "description": "更新时间",
  6628. "type": "string"
  6629. }
  6630. }
  6631. },
  6632. "system.SysBaseMenuBtn": {
  6633. "type": "object",
  6634. "properties": {
  6635. "ID": {
  6636. "description": "主键ID",
  6637. "type": "integer"
  6638. },
  6639. "createdAt": {
  6640. "description": "创建时间",
  6641. "type": "string"
  6642. },
  6643. "desc": {
  6644. "type": "string"
  6645. },
  6646. "name": {
  6647. "type": "string"
  6648. },
  6649. "sysBaseMenuID": {
  6650. "type": "integer"
  6651. },
  6652. "updatedAt": {
  6653. "description": "更新时间",
  6654. "type": "string"
  6655. }
  6656. }
  6657. },
  6658. "system.SysBaseMenuParameter": {
  6659. "type": "object",
  6660. "properties": {
  6661. "ID": {
  6662. "description": "主键ID",
  6663. "type": "integer"
  6664. },
  6665. "createdAt": {
  6666. "description": "创建时间",
  6667. "type": "string"
  6668. },
  6669. "key": {
  6670. "description": "地址栏携带参数的key",
  6671. "type": "string"
  6672. },
  6673. "sysBaseMenuID": {
  6674. "type": "integer"
  6675. },
  6676. "type": {
  6677. "description": "地址栏携带参数为params还是query",
  6678. "type": "string"
  6679. },
  6680. "updatedAt": {
  6681. "description": "更新时间",
  6682. "type": "string"
  6683. },
  6684. "value": {
  6685. "description": "地址栏携带参数的值",
  6686. "type": "string"
  6687. }
  6688. }
  6689. },
  6690. "system.SysDictionary": {
  6691. "type": "object",
  6692. "properties": {
  6693. "ID": {
  6694. "description": "主键ID",
  6695. "type": "integer"
  6696. },
  6697. "createdAt": {
  6698. "description": "创建时间",
  6699. "type": "string"
  6700. },
  6701. "desc": {
  6702. "description": "描述",
  6703. "type": "string"
  6704. },
  6705. "name": {
  6706. "description": "字典名(中)",
  6707. "type": "string"
  6708. },
  6709. "status": {
  6710. "description": "状态",
  6711. "type": "boolean"
  6712. },
  6713. "sysDictionaryDetails": {
  6714. "type": "array",
  6715. "items": {
  6716. "$ref": "#/definitions/system.SysDictionaryDetail"
  6717. }
  6718. },
  6719. "type": {
  6720. "description": "字典名(英)",
  6721. "type": "string"
  6722. },
  6723. "updatedAt": {
  6724. "description": "更新时间",
  6725. "type": "string"
  6726. }
  6727. }
  6728. },
  6729. "system.SysDictionaryDetail": {
  6730. "type": "object",
  6731. "properties": {
  6732. "ID": {
  6733. "description": "主键ID",
  6734. "type": "integer"
  6735. },
  6736. "createdAt": {
  6737. "description": "创建时间",
  6738. "type": "string"
  6739. },
  6740. "extend": {
  6741. "description": "扩展值",
  6742. "type": "string"
  6743. },
  6744. "label": {
  6745. "description": "展示值",
  6746. "type": "string"
  6747. },
  6748. "sort": {
  6749. "description": "排序标记",
  6750. "type": "integer"
  6751. },
  6752. "status": {
  6753. "description": "启用状态",
  6754. "type": "boolean"
  6755. },
  6756. "sysDictionaryID": {
  6757. "description": "关联标记",
  6758. "type": "integer"
  6759. },
  6760. "updatedAt": {
  6761. "description": "更新时间",
  6762. "type": "string"
  6763. },
  6764. "value": {
  6765. "description": "字典值",
  6766. "type": "integer"
  6767. }
  6768. }
  6769. },
  6770. "system.SysMenu": {
  6771. "type": "object",
  6772. "properties": {
  6773. "ID": {
  6774. "description": "主键ID",
  6775. "type": "integer"
  6776. },
  6777. "authoritys": {
  6778. "type": "array",
  6779. "items": {
  6780. "$ref": "#/definitions/system.SysAuthority"
  6781. }
  6782. },
  6783. "btns": {
  6784. "type": "object",
  6785. "additionalProperties": {
  6786. "type": "integer"
  6787. }
  6788. },
  6789. "children": {
  6790. "type": "array",
  6791. "items": {
  6792. "$ref": "#/definitions/system.SysMenu"
  6793. }
  6794. },
  6795. "component": {
  6796. "description": "对应前端文件路径",
  6797. "type": "string"
  6798. },
  6799. "createdAt": {
  6800. "description": "创建时间",
  6801. "type": "string"
  6802. },
  6803. "hidden": {
  6804. "description": "是否在列表隐藏",
  6805. "type": "boolean"
  6806. },
  6807. "menuBtn": {
  6808. "type": "array",
  6809. "items": {
  6810. "$ref": "#/definitions/system.SysBaseMenuBtn"
  6811. }
  6812. },
  6813. "menuId": {
  6814. "type": "string"
  6815. },
  6816. "meta": {
  6817. "description": "附加属性",
  6818. "allOf": [
  6819. {
  6820. "$ref": "#/definitions/system.Meta"
  6821. }
  6822. ]
  6823. },
  6824. "name": {
  6825. "description": "路由name",
  6826. "type": "string"
  6827. },
  6828. "parameters": {
  6829. "type": "array",
  6830. "items": {
  6831. "$ref": "#/definitions/system.SysBaseMenuParameter"
  6832. }
  6833. },
  6834. "parentId": {
  6835. "description": "父菜单ID",
  6836. "type": "string"
  6837. },
  6838. "path": {
  6839. "description": "路由path",
  6840. "type": "string"
  6841. },
  6842. "sort": {
  6843. "description": "排序标记",
  6844. "type": "integer"
  6845. },
  6846. "updatedAt": {
  6847. "description": "更新时间",
  6848. "type": "string"
  6849. }
  6850. }
  6851. },
  6852. "system.SysOperationRecord": {
  6853. "type": "object",
  6854. "properties": {
  6855. "ID": {
  6856. "description": "主键ID",
  6857. "type": "integer"
  6858. },
  6859. "agent": {
  6860. "description": "代理",
  6861. "type": "string"
  6862. },
  6863. "body": {
  6864. "description": "请求Body",
  6865. "type": "string"
  6866. },
  6867. "createdAt": {
  6868. "description": "创建时间",
  6869. "type": "string"
  6870. },
  6871. "error_message": {
  6872. "description": "错误信息",
  6873. "type": "string"
  6874. },
  6875. "ip": {
  6876. "description": "请求ip",
  6877. "type": "string"
  6878. },
  6879. "latency": {
  6880. "description": "延迟",
  6881. "type": "string"
  6882. },
  6883. "method": {
  6884. "description": "请求方法",
  6885. "type": "string"
  6886. },
  6887. "path": {
  6888. "description": "请求路径",
  6889. "type": "string"
  6890. },
  6891. "resp": {
  6892. "description": "响应Body",
  6893. "type": "string"
  6894. },
  6895. "status": {
  6896. "description": "请求状态",
  6897. "type": "integer"
  6898. },
  6899. "updatedAt": {
  6900. "description": "更新时间",
  6901. "type": "string"
  6902. },
  6903. "user": {
  6904. "$ref": "#/definitions/system.SysUser"
  6905. },
  6906. "user_id": {
  6907. "description": "用户id",
  6908. "type": "integer"
  6909. }
  6910. }
  6911. },
  6912. "system.SysUser": {
  6913. "type": "object",
  6914. "properties": {
  6915. "ID": {
  6916. "description": "主键ID",
  6917. "type": "integer"
  6918. },
  6919. "activeColor": {
  6920. "description": "活跃颜色",
  6921. "type": "string"
  6922. },
  6923. "authorities": {
  6924. "type": "array",
  6925. "items": {
  6926. "$ref": "#/definitions/system.SysAuthority"
  6927. }
  6928. },
  6929. "authority": {
  6930. "$ref": "#/definitions/system.SysAuthority"
  6931. },
  6932. "authorityId": {
  6933. "description": "用户角色ID",
  6934. "type": "integer"
  6935. },
  6936. "baseColor": {
  6937. "description": "基础颜色",
  6938. "type": "string"
  6939. },
  6940. "createdAt": {
  6941. "description": "创建时间",
  6942. "type": "string"
  6943. },
  6944. "email": {
  6945. "description": "用户邮箱",
  6946. "type": "string"
  6947. },
  6948. "enable": {
  6949. "description": "用户是否被冻结 1正常 2冻结",
  6950. "type": "integer"
  6951. },
  6952. "headerImg": {
  6953. "description": "用户头像",
  6954. "type": "string"
  6955. },
  6956. "nickName": {
  6957. "description": "用户昵称",
  6958. "type": "string"
  6959. },
  6960. "phone": {
  6961. "description": "用户手机号",
  6962. "type": "string"
  6963. },
  6964. "sideMode": {
  6965. "description": "用户侧边主题",
  6966. "type": "string"
  6967. },
  6968. "updatedAt": {
  6969. "description": "更新时间",
  6970. "type": "string"
  6971. },
  6972. "userName": {
  6973. "description": "用户登录名",
  6974. "type": "string"
  6975. },
  6976. "uuid": {
  6977. "description": "用户UUID",
  6978. "type": "string"
  6979. }
  6980. }
  6981. },
  6982. "system.System": {
  6983. "type": "object",
  6984. "properties": {
  6985. "config": {
  6986. "$ref": "#/definitions/config.Server"
  6987. }
  6988. }
  6989. }
  6990. },
  6991. "securityDefinitions": {
  6992. "ApiKeyAuth": {
  6993. "type": "apiKey",
  6994. "name": "x-token",
  6995. "in": "header"
  6996. }
  6997. }
  6998. }`
  6999. // SwaggerInfo holds exported Swagger Info so clients can modify it
  7000. var SwaggerInfo = &swag.Spec{
  7001. Version: "v2.6.3",
  7002. Host: "",
  7003. BasePath: "",
  7004. Schemes: []string{},
  7005. Title: "Gin-Vue-Admin Swagger API接口文档",
  7006. Description: "使用gin+vue进行极速开发的全栈开发基础平台",
  7007. InfoInstanceName: "swagger",
  7008. SwaggerTemplate: docTemplate,
  7009. LeftDelim: "{{",
  7010. RightDelim: "}}",
  7011. }
  7012. func init() {
  7013. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  7014. }