2
0

swagger.json 314 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "使用gin+vue进行极速开发的全栈开发基础平台",
  5. "title": "Gin-Vue-Admin Swagger API接口文档",
  6. "contact": {},
  7. "version": "v2.7.9-beta"
  8. },
  9. "paths": {
  10. "/api/createApi": {
  11. "post": {
  12. "security": [
  13. {
  14. "ApiKeyAuth": []
  15. }
  16. ],
  17. "consumes": [
  18. "application/json"
  19. ],
  20. "produces": [
  21. "application/json"
  22. ],
  23. "tags": [
  24. "SysApi"
  25. ],
  26. "summary": "创建基础api",
  27. "parameters": [
  28. {
  29. "description": "api路径, api中文描述, api组, 方法",
  30. "name": "data",
  31. "in": "body",
  32. "required": true,
  33. "schema": {
  34. "$ref": "#/definitions/system.SysApi"
  35. }
  36. }
  37. ],
  38. "responses": {
  39. "200": {
  40. "description": "创建基础api",
  41. "schema": {
  42. "allOf": [
  43. {
  44. "$ref": "#/definitions/response.Response"
  45. },
  46. {
  47. "type": "object",
  48. "properties": {
  49. "msg": {
  50. "type": "string"
  51. }
  52. }
  53. }
  54. ]
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "/api/deleteApi": {
  61. "post": {
  62. "security": [
  63. {
  64. "ApiKeyAuth": []
  65. }
  66. ],
  67. "consumes": [
  68. "application/json"
  69. ],
  70. "produces": [
  71. "application/json"
  72. ],
  73. "tags": [
  74. "SysApi"
  75. ],
  76. "summary": "删除api",
  77. "parameters": [
  78. {
  79. "description": "ID",
  80. "name": "data",
  81. "in": "body",
  82. "required": true,
  83. "schema": {
  84. "$ref": "#/definitions/system.SysApi"
  85. }
  86. }
  87. ],
  88. "responses": {
  89. "200": {
  90. "description": "删除api",
  91. "schema": {
  92. "allOf": [
  93. {
  94. "$ref": "#/definitions/response.Response"
  95. },
  96. {
  97. "type": "object",
  98. "properties": {
  99. "msg": {
  100. "type": "string"
  101. }
  102. }
  103. }
  104. ]
  105. }
  106. }
  107. }
  108. }
  109. },
  110. "/api/deleteApisByIds": {
  111. "delete": {
  112. "security": [
  113. {
  114. "ApiKeyAuth": []
  115. }
  116. ],
  117. "consumes": [
  118. "application/json"
  119. ],
  120. "produces": [
  121. "application/json"
  122. ],
  123. "tags": [
  124. "SysApi"
  125. ],
  126. "summary": "删除选中Api",
  127. "parameters": [
  128. {
  129. "description": "ID",
  130. "name": "data",
  131. "in": "body",
  132. "required": true,
  133. "schema": {
  134. "$ref": "#/definitions/request.IdsReq"
  135. }
  136. }
  137. ],
  138. "responses": {
  139. "200": {
  140. "description": "删除选中Api",
  141. "schema": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/response.Response"
  145. },
  146. {
  147. "type": "object",
  148. "properties": {
  149. "msg": {
  150. "type": "string"
  151. }
  152. }
  153. }
  154. ]
  155. }
  156. }
  157. }
  158. }
  159. },
  160. "/api/enterSyncApi": {
  161. "post": {
  162. "security": [
  163. {
  164. "ApiKeyAuth": []
  165. }
  166. ],
  167. "consumes": [
  168. "application/json"
  169. ],
  170. "produces": [
  171. "application/json"
  172. ],
  173. "tags": [
  174. "SysApi"
  175. ],
  176. "summary": "确认同步API",
  177. "responses": {
  178. "200": {
  179. "description": "确认同步API",
  180. "schema": {
  181. "allOf": [
  182. {
  183. "$ref": "#/definitions/response.Response"
  184. },
  185. {
  186. "type": "object",
  187. "properties": {
  188. "msg": {
  189. "type": "string"
  190. }
  191. }
  192. }
  193. ]
  194. }
  195. }
  196. }
  197. }
  198. },
  199. "/api/freshCasbin": {
  200. "get": {
  201. "consumes": [
  202. "application/json"
  203. ],
  204. "produces": [
  205. "application/json"
  206. ],
  207. "tags": [
  208. "SysApi"
  209. ],
  210. "summary": "刷新casbin缓存",
  211. "responses": {
  212. "200": {
  213. "description": "刷新成功",
  214. "schema": {
  215. "allOf": [
  216. {
  217. "$ref": "#/definitions/response.Response"
  218. },
  219. {
  220. "type": "object",
  221. "properties": {
  222. "msg": {
  223. "type": "string"
  224. }
  225. }
  226. }
  227. ]
  228. }
  229. }
  230. }
  231. }
  232. },
  233. "/api/getAllApis": {
  234. "post": {
  235. "security": [
  236. {
  237. "ApiKeyAuth": []
  238. }
  239. ],
  240. "consumes": [
  241. "application/json"
  242. ],
  243. "produces": [
  244. "application/json"
  245. ],
  246. "tags": [
  247. "SysApi"
  248. ],
  249. "summary": "获取所有的Api 不分页",
  250. "responses": {
  251. "200": {
  252. "description": "获取所有的Api 不分页,返回包括api列表",
  253. "schema": {
  254. "allOf": [
  255. {
  256. "$ref": "#/definitions/response.Response"
  257. },
  258. {
  259. "type": "object",
  260. "properties": {
  261. "data": {
  262. "$ref": "#/definitions/response.SysAPIListResponse"
  263. },
  264. "msg": {
  265. "type": "string"
  266. }
  267. }
  268. }
  269. ]
  270. }
  271. }
  272. }
  273. }
  274. },
  275. "/api/getApiById": {
  276. "post": {
  277. "security": [
  278. {
  279. "ApiKeyAuth": []
  280. }
  281. ],
  282. "consumes": [
  283. "application/json"
  284. ],
  285. "produces": [
  286. "application/json"
  287. ],
  288. "tags": [
  289. "SysApi"
  290. ],
  291. "summary": "根据id获取api",
  292. "parameters": [
  293. {
  294. "description": "根据id获取api",
  295. "name": "data",
  296. "in": "body",
  297. "required": true,
  298. "schema": {
  299. "$ref": "#/definitions/request.GetById"
  300. }
  301. }
  302. ],
  303. "responses": {
  304. "200": {
  305. "description": "根据id获取api,返回包括api详情",
  306. "schema": {
  307. "allOf": [
  308. {
  309. "$ref": "#/definitions/response.Response"
  310. },
  311. {
  312. "type": "object",
  313. "properties": {
  314. "data": {
  315. "$ref": "#/definitions/response.SysAPIResponse"
  316. }
  317. }
  318. }
  319. ]
  320. }
  321. }
  322. }
  323. }
  324. },
  325. "/api/getApiGroups": {
  326. "get": {
  327. "security": [
  328. {
  329. "ApiKeyAuth": []
  330. }
  331. ],
  332. "consumes": [
  333. "application/json"
  334. ],
  335. "produces": [
  336. "application/json"
  337. ],
  338. "tags": [
  339. "SysApi"
  340. ],
  341. "summary": "获取API分组",
  342. "responses": {
  343. "200": {
  344. "description": "获取API分组",
  345. "schema": {
  346. "allOf": [
  347. {
  348. "$ref": "#/definitions/response.Response"
  349. },
  350. {
  351. "type": "object",
  352. "properties": {
  353. "msg": {
  354. "type": "string"
  355. }
  356. }
  357. }
  358. ]
  359. }
  360. }
  361. }
  362. }
  363. },
  364. "/api/getApiList": {
  365. "post": {
  366. "security": [
  367. {
  368. "ApiKeyAuth": []
  369. }
  370. ],
  371. "consumes": [
  372. "application/json"
  373. ],
  374. "produces": [
  375. "application/json"
  376. ],
  377. "tags": [
  378. "SysApi"
  379. ],
  380. "summary": "分页获取API列表",
  381. "parameters": [
  382. {
  383. "description": "分页获取API列表",
  384. "name": "data",
  385. "in": "body",
  386. "required": true,
  387. "schema": {
  388. "$ref": "#/definitions/request.SearchApiParams"
  389. }
  390. }
  391. ],
  392. "responses": {
  393. "200": {
  394. "description": "分页获取API列表,返回包括列表,总数,页码,每页数量",
  395. "schema": {
  396. "allOf": [
  397. {
  398. "$ref": "#/definitions/response.Response"
  399. },
  400. {
  401. "type": "object",
  402. "properties": {
  403. "data": {
  404. "$ref": "#/definitions/response.PageResult"
  405. },
  406. "msg": {
  407. "type": "string"
  408. }
  409. }
  410. }
  411. ]
  412. }
  413. }
  414. }
  415. }
  416. },
  417. "/api/ignoreApi": {
  418. "post": {
  419. "security": [
  420. {
  421. "ApiKeyAuth": []
  422. }
  423. ],
  424. "consumes": [
  425. "application/json"
  426. ],
  427. "produces": [
  428. "application/json"
  429. ],
  430. "tags": [
  431. "IgnoreApi"
  432. ],
  433. "summary": "忽略API",
  434. "responses": {
  435. "200": {
  436. "description": "同步API",
  437. "schema": {
  438. "allOf": [
  439. {
  440. "$ref": "#/definitions/response.Response"
  441. },
  442. {
  443. "type": "object",
  444. "properties": {
  445. "msg": {
  446. "type": "string"
  447. }
  448. }
  449. }
  450. ]
  451. }
  452. }
  453. }
  454. }
  455. },
  456. "/api/syncApi": {
  457. "get": {
  458. "security": [
  459. {
  460. "ApiKeyAuth": []
  461. }
  462. ],
  463. "consumes": [
  464. "application/json"
  465. ],
  466. "produces": [
  467. "application/json"
  468. ],
  469. "tags": [
  470. "SysApi"
  471. ],
  472. "summary": "同步API",
  473. "responses": {
  474. "200": {
  475. "description": "同步API",
  476. "schema": {
  477. "allOf": [
  478. {
  479. "$ref": "#/definitions/response.Response"
  480. },
  481. {
  482. "type": "object",
  483. "properties": {
  484. "msg": {
  485. "type": "string"
  486. }
  487. }
  488. }
  489. ]
  490. }
  491. }
  492. }
  493. }
  494. },
  495. "/api/updateApi": {
  496. "post": {
  497. "security": [
  498. {
  499. "ApiKeyAuth": []
  500. }
  501. ],
  502. "consumes": [
  503. "application/json"
  504. ],
  505. "produces": [
  506. "application/json"
  507. ],
  508. "tags": [
  509. "SysApi"
  510. ],
  511. "summary": "修改基础api",
  512. "parameters": [
  513. {
  514. "description": "api路径, api中文描述, api组, 方法",
  515. "name": "data",
  516. "in": "body",
  517. "required": true,
  518. "schema": {
  519. "$ref": "#/definitions/system.SysApi"
  520. }
  521. }
  522. ],
  523. "responses": {
  524. "200": {
  525. "description": "修改基础api",
  526. "schema": {
  527. "allOf": [
  528. {
  529. "$ref": "#/definitions/response.Response"
  530. },
  531. {
  532. "type": "object",
  533. "properties": {
  534. "msg": {
  535. "type": "string"
  536. }
  537. }
  538. }
  539. ]
  540. }
  541. }
  542. }
  543. }
  544. },
  545. "/attachmentCategory/addCategory": {
  546. "post": {
  547. "security": [
  548. {
  549. "AttachmentCategory": []
  550. }
  551. ],
  552. "consumes": [
  553. "application/json"
  554. ],
  555. "produces": [
  556. "application/json"
  557. ],
  558. "tags": [
  559. "AddCategory"
  560. ],
  561. "summary": "添加媒体库分类",
  562. "parameters": [
  563. {
  564. "description": "媒体库分类数据",
  565. "name": "data",
  566. "in": "body",
  567. "required": true,
  568. "schema": {
  569. "$ref": "#/definitions/example.ExaAttachmentCategory"
  570. }
  571. }
  572. ],
  573. "responses": {}
  574. }
  575. },
  576. "/attachmentCategory/deleteCategory": {
  577. "post": {
  578. "security": [
  579. {
  580. "AttachmentCategory": []
  581. }
  582. ],
  583. "consumes": [
  584. "application/json"
  585. ],
  586. "produces": [
  587. "application/json"
  588. ],
  589. "tags": [
  590. "DeleteCategory"
  591. ],
  592. "summary": "删除分类",
  593. "parameters": [
  594. {
  595. "description": "分类id",
  596. "name": "data",
  597. "in": "body",
  598. "required": true,
  599. "schema": {
  600. "$ref": "#/definitions/request.GetById"
  601. }
  602. }
  603. ],
  604. "responses": {
  605. "200": {
  606. "description": "删除分类",
  607. "schema": {
  608. "allOf": [
  609. {
  610. "$ref": "#/definitions/response.Response"
  611. },
  612. {
  613. "type": "object",
  614. "properties": {
  615. "msg": {
  616. "type": "string"
  617. }
  618. }
  619. }
  620. ]
  621. }
  622. }
  623. }
  624. }
  625. },
  626. "/attachmentCategory/getCategoryList": {
  627. "get": {
  628. "security": [
  629. {
  630. "AttachmentCategory": []
  631. }
  632. ],
  633. "produces": [
  634. "application/json"
  635. ],
  636. "tags": [
  637. "GetCategoryList"
  638. ],
  639. "summary": "媒体库分类列表",
  640. "responses": {
  641. "200": {
  642. "description": "媒体库分类列表",
  643. "schema": {
  644. "allOf": [
  645. {
  646. "$ref": "#/definitions/response.Response"
  647. },
  648. {
  649. "type": "object",
  650. "properties": {
  651. "data": {
  652. "$ref": "#/definitions/example.ExaAttachmentCategory"
  653. },
  654. "msg": {
  655. "type": "string"
  656. }
  657. }
  658. }
  659. ]
  660. }
  661. }
  662. }
  663. }
  664. },
  665. "/authority/copyAuthority": {
  666. "post": {
  667. "security": [
  668. {
  669. "ApiKeyAuth": []
  670. }
  671. ],
  672. "consumes": [
  673. "application/json"
  674. ],
  675. "produces": [
  676. "application/json"
  677. ],
  678. "tags": [
  679. "Authority"
  680. ],
  681. "summary": "拷贝角色",
  682. "parameters": [
  683. {
  684. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  685. "name": "data",
  686. "in": "body",
  687. "required": true,
  688. "schema": {
  689. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  690. }
  691. }
  692. ],
  693. "responses": {
  694. "200": {
  695. "description": "拷贝角色,返回包括系统角色详情",
  696. "schema": {
  697. "allOf": [
  698. {
  699. "$ref": "#/definitions/response.Response"
  700. },
  701. {
  702. "type": "object",
  703. "properties": {
  704. "data": {
  705. "$ref": "#/definitions/response.SysAuthorityResponse"
  706. },
  707. "msg": {
  708. "type": "string"
  709. }
  710. }
  711. }
  712. ]
  713. }
  714. }
  715. }
  716. }
  717. },
  718. "/authority/createAuthority": {
  719. "post": {
  720. "security": [
  721. {
  722. "ApiKeyAuth": []
  723. }
  724. ],
  725. "consumes": [
  726. "application/json"
  727. ],
  728. "produces": [
  729. "application/json"
  730. ],
  731. "tags": [
  732. "Authority"
  733. ],
  734. "summary": "创建角色",
  735. "parameters": [
  736. {
  737. "description": "权限id, 权限名, 父角色id",
  738. "name": "data",
  739. "in": "body",
  740. "required": true,
  741. "schema": {
  742. "$ref": "#/definitions/system.SysAuthority"
  743. }
  744. }
  745. ],
  746. "responses": {
  747. "200": {
  748. "description": "创建角色,返回包括系统角色详情",
  749. "schema": {
  750. "allOf": [
  751. {
  752. "$ref": "#/definitions/response.Response"
  753. },
  754. {
  755. "type": "object",
  756. "properties": {
  757. "data": {
  758. "$ref": "#/definitions/response.SysAuthorityResponse"
  759. },
  760. "msg": {
  761. "type": "string"
  762. }
  763. }
  764. }
  765. ]
  766. }
  767. }
  768. }
  769. }
  770. },
  771. "/authority/deleteAuthority": {
  772. "post": {
  773. "security": [
  774. {
  775. "ApiKeyAuth": []
  776. }
  777. ],
  778. "consumes": [
  779. "application/json"
  780. ],
  781. "produces": [
  782. "application/json"
  783. ],
  784. "tags": [
  785. "Authority"
  786. ],
  787. "summary": "删除角色",
  788. "parameters": [
  789. {
  790. "description": "删除角色",
  791. "name": "data",
  792. "in": "body",
  793. "required": true,
  794. "schema": {
  795. "$ref": "#/definitions/system.SysAuthority"
  796. }
  797. }
  798. ],
  799. "responses": {
  800. "200": {
  801. "description": "删除角色",
  802. "schema": {
  803. "allOf": [
  804. {
  805. "$ref": "#/definitions/response.Response"
  806. },
  807. {
  808. "type": "object",
  809. "properties": {
  810. "msg": {
  811. "type": "string"
  812. }
  813. }
  814. }
  815. ]
  816. }
  817. }
  818. }
  819. }
  820. },
  821. "/authority/getAuthorityList": {
  822. "post": {
  823. "security": [
  824. {
  825. "ApiKeyAuth": []
  826. }
  827. ],
  828. "consumes": [
  829. "application/json"
  830. ],
  831. "produces": [
  832. "application/json"
  833. ],
  834. "tags": [
  835. "Authority"
  836. ],
  837. "summary": "分页获取角色列表",
  838. "parameters": [
  839. {
  840. "description": "页码, 每页大小",
  841. "name": "data",
  842. "in": "body",
  843. "required": true,
  844. "schema": {
  845. "$ref": "#/definitions/request.PageInfo"
  846. }
  847. }
  848. ],
  849. "responses": {
  850. "200": {
  851. "description": "分页获取角色列表,返回包括列表,总数,页码,每页数量",
  852. "schema": {
  853. "allOf": [
  854. {
  855. "$ref": "#/definitions/response.Response"
  856. },
  857. {
  858. "type": "object",
  859. "properties": {
  860. "data": {
  861. "$ref": "#/definitions/response.PageResult"
  862. },
  863. "msg": {
  864. "type": "string"
  865. }
  866. }
  867. }
  868. ]
  869. }
  870. }
  871. }
  872. }
  873. },
  874. "/authority/setDataAuthority": {
  875. "post": {
  876. "security": [
  877. {
  878. "ApiKeyAuth": []
  879. }
  880. ],
  881. "consumes": [
  882. "application/json"
  883. ],
  884. "produces": [
  885. "application/json"
  886. ],
  887. "tags": [
  888. "Authority"
  889. ],
  890. "summary": "设置角色资源权限",
  891. "parameters": [
  892. {
  893. "description": "设置角色资源权限",
  894. "name": "data",
  895. "in": "body",
  896. "required": true,
  897. "schema": {
  898. "$ref": "#/definitions/system.SysAuthority"
  899. }
  900. }
  901. ],
  902. "responses": {
  903. "200": {
  904. "description": "设置角色资源权限",
  905. "schema": {
  906. "allOf": [
  907. {
  908. "$ref": "#/definitions/response.Response"
  909. },
  910. {
  911. "type": "object",
  912. "properties": {
  913. "msg": {
  914. "type": "string"
  915. }
  916. }
  917. }
  918. ]
  919. }
  920. }
  921. }
  922. }
  923. },
  924. "/authority/updateAuthority": {
  925. "put": {
  926. "security": [
  927. {
  928. "ApiKeyAuth": []
  929. }
  930. ],
  931. "consumes": [
  932. "application/json"
  933. ],
  934. "produces": [
  935. "application/json"
  936. ],
  937. "tags": [
  938. "Authority"
  939. ],
  940. "summary": "更新角色信息",
  941. "parameters": [
  942. {
  943. "description": "权限id, 权限名, 父角色id",
  944. "name": "data",
  945. "in": "body",
  946. "required": true,
  947. "schema": {
  948. "$ref": "#/definitions/system.SysAuthority"
  949. }
  950. }
  951. ],
  952. "responses": {
  953. "200": {
  954. "description": "更新角色信息,返回包括系统角色详情",
  955. "schema": {
  956. "allOf": [
  957. {
  958. "$ref": "#/definitions/response.Response"
  959. },
  960. {
  961. "type": "object",
  962. "properties": {
  963. "data": {
  964. "$ref": "#/definitions/response.SysAuthorityResponse"
  965. },
  966. "msg": {
  967. "type": "string"
  968. }
  969. }
  970. }
  971. ]
  972. }
  973. }
  974. }
  975. }
  976. },
  977. "/authorityBtn/canRemoveAuthorityBtn": {
  978. "post": {
  979. "security": [
  980. {
  981. "ApiKeyAuth": []
  982. }
  983. ],
  984. "consumes": [
  985. "application/json"
  986. ],
  987. "produces": [
  988. "application/json"
  989. ],
  990. "tags": [
  991. "AuthorityBtn"
  992. ],
  993. "summary": "设置权限按钮",
  994. "responses": {
  995. "200": {
  996. "description": "删除成功",
  997. "schema": {
  998. "allOf": [
  999. {
  1000. "$ref": "#/definitions/response.Response"
  1001. },
  1002. {
  1003. "type": "object",
  1004. "properties": {
  1005. "msg": {
  1006. "type": "string"
  1007. }
  1008. }
  1009. }
  1010. ]
  1011. }
  1012. }
  1013. }
  1014. }
  1015. },
  1016. "/authorityBtn/getAuthorityBtn": {
  1017. "post": {
  1018. "security": [
  1019. {
  1020. "ApiKeyAuth": []
  1021. }
  1022. ],
  1023. "consumes": [
  1024. "application/json"
  1025. ],
  1026. "produces": [
  1027. "application/json"
  1028. ],
  1029. "tags": [
  1030. "AuthorityBtn"
  1031. ],
  1032. "summary": "获取权限按钮",
  1033. "parameters": [
  1034. {
  1035. "description": "菜单id, 角色id, 选中的按钮id",
  1036. "name": "data",
  1037. "in": "body",
  1038. "required": true,
  1039. "schema": {
  1040. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  1041. }
  1042. }
  1043. ],
  1044. "responses": {
  1045. "200": {
  1046. "description": "返回列表成功",
  1047. "schema": {
  1048. "allOf": [
  1049. {
  1050. "$ref": "#/definitions/response.Response"
  1051. },
  1052. {
  1053. "type": "object",
  1054. "properties": {
  1055. "data": {
  1056. "$ref": "#/definitions/response.SysAuthorityBtnRes"
  1057. },
  1058. "msg": {
  1059. "type": "string"
  1060. }
  1061. }
  1062. }
  1063. ]
  1064. }
  1065. }
  1066. }
  1067. }
  1068. },
  1069. "/authorityBtn/setAuthorityBtn": {
  1070. "post": {
  1071. "security": [
  1072. {
  1073. "ApiKeyAuth": []
  1074. }
  1075. ],
  1076. "consumes": [
  1077. "application/json"
  1078. ],
  1079. "produces": [
  1080. "application/json"
  1081. ],
  1082. "tags": [
  1083. "AuthorityBtn"
  1084. ],
  1085. "summary": "设置权限按钮",
  1086. "parameters": [
  1087. {
  1088. "description": "菜单id, 角色id, 选中的按钮id",
  1089. "name": "data",
  1090. "in": "body",
  1091. "required": true,
  1092. "schema": {
  1093. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  1094. }
  1095. }
  1096. ],
  1097. "responses": {
  1098. "200": {
  1099. "description": "返回列表成功",
  1100. "schema": {
  1101. "allOf": [
  1102. {
  1103. "$ref": "#/definitions/response.Response"
  1104. },
  1105. {
  1106. "type": "object",
  1107. "properties": {
  1108. "msg": {
  1109. "type": "string"
  1110. }
  1111. }
  1112. }
  1113. ]
  1114. }
  1115. }
  1116. }
  1117. }
  1118. },
  1119. "/autoCode/addFunc": {
  1120. "post": {
  1121. "security": [
  1122. {
  1123. "ApiKeyAuth": []
  1124. }
  1125. ],
  1126. "consumes": [
  1127. "application/json"
  1128. ],
  1129. "produces": [
  1130. "application/json"
  1131. ],
  1132. "tags": [
  1133. "AddFunc"
  1134. ],
  1135. "summary": "增加方法",
  1136. "parameters": [
  1137. {
  1138. "description": "增加方法",
  1139. "name": "data",
  1140. "in": "body",
  1141. "required": true,
  1142. "schema": {
  1143. "$ref": "#/definitions/request.AutoCode"
  1144. }
  1145. }
  1146. ],
  1147. "responses": {
  1148. "200": {
  1149. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1150. "schema": {
  1151. "type": "string"
  1152. }
  1153. }
  1154. }
  1155. }
  1156. },
  1157. "/autoCode/createPackage": {
  1158. "post": {
  1159. "security": [
  1160. {
  1161. "ApiKeyAuth": []
  1162. }
  1163. ],
  1164. "consumes": [
  1165. "application/json"
  1166. ],
  1167. "produces": [
  1168. "application/json"
  1169. ],
  1170. "tags": [
  1171. "AutoCodePackage"
  1172. ],
  1173. "summary": "创建package",
  1174. "parameters": [
  1175. {
  1176. "description": "创建package",
  1177. "name": "data",
  1178. "in": "body",
  1179. "required": true,
  1180. "schema": {
  1181. "$ref": "#/definitions/request.SysAutoCodePackageCreate"
  1182. }
  1183. }
  1184. ],
  1185. "responses": {
  1186. "200": {
  1187. "description": "创建package成功",
  1188. "schema": {
  1189. "allOf": [
  1190. {
  1191. "$ref": "#/definitions/response.Response"
  1192. },
  1193. {
  1194. "type": "object",
  1195. "properties": {
  1196. "data": {
  1197. "type": "object",
  1198. "additionalProperties": true
  1199. },
  1200. "msg": {
  1201. "type": "string"
  1202. }
  1203. }
  1204. }
  1205. ]
  1206. }
  1207. }
  1208. }
  1209. }
  1210. },
  1211. "/autoCode/createTemp": {
  1212. "post": {
  1213. "security": [
  1214. {
  1215. "ApiKeyAuth": []
  1216. }
  1217. ],
  1218. "consumes": [
  1219. "application/json"
  1220. ],
  1221. "produces": [
  1222. "application/json"
  1223. ],
  1224. "tags": [
  1225. "AutoCodeTemplate"
  1226. ],
  1227. "summary": "自动代码模板",
  1228. "parameters": [
  1229. {
  1230. "description": "创建自动代码",
  1231. "name": "data",
  1232. "in": "body",
  1233. "required": true,
  1234. "schema": {
  1235. "$ref": "#/definitions/request.AutoCode"
  1236. }
  1237. }
  1238. ],
  1239. "responses": {
  1240. "200": {
  1241. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1242. "schema": {
  1243. "type": "string"
  1244. }
  1245. }
  1246. }
  1247. }
  1248. },
  1249. "/autoCode/delPackage": {
  1250. "post": {
  1251. "security": [
  1252. {
  1253. "ApiKeyAuth": []
  1254. }
  1255. ],
  1256. "consumes": [
  1257. "application/json"
  1258. ],
  1259. "produces": [
  1260. "application/json"
  1261. ],
  1262. "tags": [
  1263. "AutoCode"
  1264. ],
  1265. "summary": "删除package",
  1266. "parameters": [
  1267. {
  1268. "description": "创建package",
  1269. "name": "data",
  1270. "in": "body",
  1271. "required": true,
  1272. "schema": {
  1273. "$ref": "#/definitions/request.GetById"
  1274. }
  1275. }
  1276. ],
  1277. "responses": {
  1278. "200": {
  1279. "description": "删除package成功",
  1280. "schema": {
  1281. "allOf": [
  1282. {
  1283. "$ref": "#/definitions/response.Response"
  1284. },
  1285. {
  1286. "type": "object",
  1287. "properties": {
  1288. "data": {
  1289. "type": "object",
  1290. "additionalProperties": true
  1291. },
  1292. "msg": {
  1293. "type": "string"
  1294. }
  1295. }
  1296. }
  1297. ]
  1298. }
  1299. }
  1300. }
  1301. }
  1302. },
  1303. "/autoCode/delSysHistory": {
  1304. "post": {
  1305. "security": [
  1306. {
  1307. "ApiKeyAuth": []
  1308. }
  1309. ],
  1310. "consumes": [
  1311. "application/json"
  1312. ],
  1313. "produces": [
  1314. "application/json"
  1315. ],
  1316. "tags": [
  1317. "AutoCode"
  1318. ],
  1319. "summary": "删除回滚记录",
  1320. "parameters": [
  1321. {
  1322. "description": "请求参数",
  1323. "name": "data",
  1324. "in": "body",
  1325. "required": true,
  1326. "schema": {
  1327. "$ref": "#/definitions/request.GetById"
  1328. }
  1329. }
  1330. ],
  1331. "responses": {
  1332. "200": {
  1333. "description": "删除回滚记录",
  1334. "schema": {
  1335. "allOf": [
  1336. {
  1337. "$ref": "#/definitions/response.Response"
  1338. },
  1339. {
  1340. "type": "object",
  1341. "properties": {
  1342. "msg": {
  1343. "type": "string"
  1344. }
  1345. }
  1346. }
  1347. ]
  1348. }
  1349. }
  1350. }
  1351. }
  1352. },
  1353. "/autoCode/getColumn": {
  1354. "get": {
  1355. "security": [
  1356. {
  1357. "ApiKeyAuth": []
  1358. }
  1359. ],
  1360. "consumes": [
  1361. "application/json"
  1362. ],
  1363. "produces": [
  1364. "application/json"
  1365. ],
  1366. "tags": [
  1367. "AutoCode"
  1368. ],
  1369. "summary": "获取当前表所有字段",
  1370. "responses": {
  1371. "200": {
  1372. "description": "获取当前表所有字段",
  1373. "schema": {
  1374. "allOf": [
  1375. {
  1376. "$ref": "#/definitions/response.Response"
  1377. },
  1378. {
  1379. "type": "object",
  1380. "properties": {
  1381. "data": {
  1382. "type": "object",
  1383. "additionalProperties": true
  1384. },
  1385. "msg": {
  1386. "type": "string"
  1387. }
  1388. }
  1389. }
  1390. ]
  1391. }
  1392. }
  1393. }
  1394. }
  1395. },
  1396. "/autoCode/getDB": {
  1397. "get": {
  1398. "security": [
  1399. {
  1400. "ApiKeyAuth": []
  1401. }
  1402. ],
  1403. "consumes": [
  1404. "application/json"
  1405. ],
  1406. "produces": [
  1407. "application/json"
  1408. ],
  1409. "tags": [
  1410. "AutoCode"
  1411. ],
  1412. "summary": "获取当前所有数据库",
  1413. "responses": {
  1414. "200": {
  1415. "description": "获取当前所有数据库",
  1416. "schema": {
  1417. "allOf": [
  1418. {
  1419. "$ref": "#/definitions/response.Response"
  1420. },
  1421. {
  1422. "type": "object",
  1423. "properties": {
  1424. "data": {
  1425. "type": "object",
  1426. "additionalProperties": true
  1427. },
  1428. "msg": {
  1429. "type": "string"
  1430. }
  1431. }
  1432. }
  1433. ]
  1434. }
  1435. }
  1436. }
  1437. }
  1438. },
  1439. "/autoCode/getMeta": {
  1440. "post": {
  1441. "security": [
  1442. {
  1443. "ApiKeyAuth": []
  1444. }
  1445. ],
  1446. "consumes": [
  1447. "application/json"
  1448. ],
  1449. "produces": [
  1450. "application/json"
  1451. ],
  1452. "tags": [
  1453. "AutoCode"
  1454. ],
  1455. "summary": "获取meta信息",
  1456. "parameters": [
  1457. {
  1458. "description": "请求参数",
  1459. "name": "data",
  1460. "in": "body",
  1461. "required": true,
  1462. "schema": {
  1463. "$ref": "#/definitions/request.GetById"
  1464. }
  1465. }
  1466. ],
  1467. "responses": {
  1468. "200": {
  1469. "description": "获取meta信息",
  1470. "schema": {
  1471. "allOf": [
  1472. {
  1473. "$ref": "#/definitions/response.Response"
  1474. },
  1475. {
  1476. "type": "object",
  1477. "properties": {
  1478. "data": {
  1479. "type": "object",
  1480. "additionalProperties": true
  1481. },
  1482. "msg": {
  1483. "type": "string"
  1484. }
  1485. }
  1486. }
  1487. ]
  1488. }
  1489. }
  1490. }
  1491. }
  1492. },
  1493. "/autoCode/getPackage": {
  1494. "post": {
  1495. "security": [
  1496. {
  1497. "ApiKeyAuth": []
  1498. }
  1499. ],
  1500. "consumes": [
  1501. "application/json"
  1502. ],
  1503. "produces": [
  1504. "application/json"
  1505. ],
  1506. "tags": [
  1507. "AutoCodePackage"
  1508. ],
  1509. "summary": "获取package",
  1510. "responses": {
  1511. "200": {
  1512. "description": "创建package成功",
  1513. "schema": {
  1514. "allOf": [
  1515. {
  1516. "$ref": "#/definitions/response.Response"
  1517. },
  1518. {
  1519. "type": "object",
  1520. "properties": {
  1521. "data": {
  1522. "type": "object",
  1523. "additionalProperties": true
  1524. },
  1525. "msg": {
  1526. "type": "string"
  1527. }
  1528. }
  1529. }
  1530. ]
  1531. }
  1532. }
  1533. }
  1534. }
  1535. },
  1536. "/autoCode/getSysHistory": {
  1537. "post": {
  1538. "security": [
  1539. {
  1540. "ApiKeyAuth": []
  1541. }
  1542. ],
  1543. "consumes": [
  1544. "application/json"
  1545. ],
  1546. "produces": [
  1547. "application/json"
  1548. ],
  1549. "tags": [
  1550. "AutoCode"
  1551. ],
  1552. "summary": "查询回滚记录",
  1553. "parameters": [
  1554. {
  1555. "description": "请求参数",
  1556. "name": "data",
  1557. "in": "body",
  1558. "required": true,
  1559. "schema": {
  1560. "$ref": "#/definitions/request.PageInfo"
  1561. }
  1562. }
  1563. ],
  1564. "responses": {
  1565. "200": {
  1566. "description": "查询回滚记录,返回包括列表,总数,页码,每页数量",
  1567. "schema": {
  1568. "allOf": [
  1569. {
  1570. "$ref": "#/definitions/response.Response"
  1571. },
  1572. {
  1573. "type": "object",
  1574. "properties": {
  1575. "data": {
  1576. "$ref": "#/definitions/response.PageResult"
  1577. },
  1578. "msg": {
  1579. "type": "string"
  1580. }
  1581. }
  1582. }
  1583. ]
  1584. }
  1585. }
  1586. }
  1587. }
  1588. },
  1589. "/autoCode/getTables": {
  1590. "get": {
  1591. "security": [
  1592. {
  1593. "ApiKeyAuth": []
  1594. }
  1595. ],
  1596. "consumes": [
  1597. "application/json"
  1598. ],
  1599. "produces": [
  1600. "application/json"
  1601. ],
  1602. "tags": [
  1603. "AutoCode"
  1604. ],
  1605. "summary": "获取当前数据库所有表",
  1606. "responses": {
  1607. "200": {
  1608. "description": "获取当前数据库所有表",
  1609. "schema": {
  1610. "allOf": [
  1611. {
  1612. "$ref": "#/definitions/response.Response"
  1613. },
  1614. {
  1615. "type": "object",
  1616. "properties": {
  1617. "data": {
  1618. "type": "object",
  1619. "additionalProperties": true
  1620. },
  1621. "msg": {
  1622. "type": "string"
  1623. }
  1624. }
  1625. }
  1626. ]
  1627. }
  1628. }
  1629. }
  1630. }
  1631. },
  1632. "/autoCode/getTemplates": {
  1633. "get": {
  1634. "security": [
  1635. {
  1636. "ApiKeyAuth": []
  1637. }
  1638. ],
  1639. "consumes": [
  1640. "application/json"
  1641. ],
  1642. "produces": [
  1643. "application/json"
  1644. ],
  1645. "tags": [
  1646. "AutoCodePackage"
  1647. ],
  1648. "summary": "获取package",
  1649. "responses": {
  1650. "200": {
  1651. "description": "创建package成功",
  1652. "schema": {
  1653. "allOf": [
  1654. {
  1655. "$ref": "#/definitions/response.Response"
  1656. },
  1657. {
  1658. "type": "object",
  1659. "properties": {
  1660. "data": {
  1661. "type": "object",
  1662. "additionalProperties": true
  1663. },
  1664. "msg": {
  1665. "type": "string"
  1666. }
  1667. }
  1668. }
  1669. ]
  1670. }
  1671. }
  1672. }
  1673. }
  1674. },
  1675. "/autoCode/initAPI": {
  1676. "post": {
  1677. "security": [
  1678. {
  1679. "ApiKeyAuth": []
  1680. }
  1681. ],
  1682. "consumes": [
  1683. "application/json"
  1684. ],
  1685. "produces": [
  1686. "application/json"
  1687. ],
  1688. "tags": [
  1689. "AutoCodePlugin"
  1690. ],
  1691. "summary": "打包插件",
  1692. "responses": {
  1693. "200": {
  1694. "description": "打包插件成功",
  1695. "schema": {
  1696. "allOf": [
  1697. {
  1698. "$ref": "#/definitions/response.Response"
  1699. },
  1700. {
  1701. "type": "object",
  1702. "properties": {
  1703. "data": {
  1704. "type": "object",
  1705. "additionalProperties": true
  1706. },
  1707. "msg": {
  1708. "type": "string"
  1709. }
  1710. }
  1711. }
  1712. ]
  1713. }
  1714. }
  1715. }
  1716. }
  1717. },
  1718. "/autoCode/initMenu": {
  1719. "post": {
  1720. "security": [
  1721. {
  1722. "ApiKeyAuth": []
  1723. }
  1724. ],
  1725. "consumes": [
  1726. "application/json"
  1727. ],
  1728. "produces": [
  1729. "application/json"
  1730. ],
  1731. "tags": [
  1732. "AutoCodePlugin"
  1733. ],
  1734. "summary": "打包插件",
  1735. "responses": {
  1736. "200": {
  1737. "description": "打包插件成功",
  1738. "schema": {
  1739. "allOf": [
  1740. {
  1741. "$ref": "#/definitions/response.Response"
  1742. },
  1743. {
  1744. "type": "object",
  1745. "properties": {
  1746. "data": {
  1747. "type": "object",
  1748. "additionalProperties": true
  1749. },
  1750. "msg": {
  1751. "type": "string"
  1752. }
  1753. }
  1754. }
  1755. ]
  1756. }
  1757. }
  1758. }
  1759. }
  1760. },
  1761. "/autoCode/installPlugin": {
  1762. "post": {
  1763. "security": [
  1764. {
  1765. "ApiKeyAuth": []
  1766. }
  1767. ],
  1768. "consumes": [
  1769. "multipart/form-data"
  1770. ],
  1771. "produces": [
  1772. "application/json"
  1773. ],
  1774. "tags": [
  1775. "AutoCodePlugin"
  1776. ],
  1777. "summary": "安装插件",
  1778. "parameters": [
  1779. {
  1780. "type": "file",
  1781. "description": "this is a test file",
  1782. "name": "plug",
  1783. "in": "formData",
  1784. "required": true
  1785. }
  1786. ],
  1787. "responses": {
  1788. "200": {
  1789. "description": "安装插件成功",
  1790. "schema": {
  1791. "allOf": [
  1792. {
  1793. "$ref": "#/definitions/response.Response"
  1794. },
  1795. {
  1796. "type": "object",
  1797. "properties": {
  1798. "data": {
  1799. "type": "array",
  1800. "items": {
  1801. "type": "object"
  1802. }
  1803. },
  1804. "msg": {
  1805. "type": "string"
  1806. }
  1807. }
  1808. }
  1809. ]
  1810. }
  1811. }
  1812. }
  1813. }
  1814. },
  1815. "/autoCode/preview": {
  1816. "post": {
  1817. "security": [
  1818. {
  1819. "ApiKeyAuth": []
  1820. }
  1821. ],
  1822. "consumes": [
  1823. "application/json"
  1824. ],
  1825. "produces": [
  1826. "application/json"
  1827. ],
  1828. "tags": [
  1829. "AutoCodeTemplate"
  1830. ],
  1831. "summary": "预览创建后的代码",
  1832. "parameters": [
  1833. {
  1834. "description": "预览创建代码",
  1835. "name": "data",
  1836. "in": "body",
  1837. "required": true,
  1838. "schema": {
  1839. "$ref": "#/definitions/request.AutoCode"
  1840. }
  1841. }
  1842. ],
  1843. "responses": {
  1844. "200": {
  1845. "description": "预览创建后的代码",
  1846. "schema": {
  1847. "allOf": [
  1848. {
  1849. "$ref": "#/definitions/response.Response"
  1850. },
  1851. {
  1852. "type": "object",
  1853. "properties": {
  1854. "data": {
  1855. "type": "object",
  1856. "additionalProperties": true
  1857. },
  1858. "msg": {
  1859. "type": "string"
  1860. }
  1861. }
  1862. }
  1863. ]
  1864. }
  1865. }
  1866. }
  1867. }
  1868. },
  1869. "/autoCode/pubPlug": {
  1870. "post": {
  1871. "security": [
  1872. {
  1873. "ApiKeyAuth": []
  1874. }
  1875. ],
  1876. "consumes": [
  1877. "application/json"
  1878. ],
  1879. "produces": [
  1880. "application/json"
  1881. ],
  1882. "tags": [
  1883. "AutoCodePlugin"
  1884. ],
  1885. "summary": "打包插件",
  1886. "parameters": [
  1887. {
  1888. "type": "string",
  1889. "description": "插件名称",
  1890. "name": "plugName",
  1891. "in": "query",
  1892. "required": true
  1893. }
  1894. ],
  1895. "responses": {
  1896. "200": {
  1897. "description": "打包插件成功",
  1898. "schema": {
  1899. "allOf": [
  1900. {
  1901. "$ref": "#/definitions/response.Response"
  1902. },
  1903. {
  1904. "type": "object",
  1905. "properties": {
  1906. "data": {
  1907. "type": "object",
  1908. "additionalProperties": true
  1909. },
  1910. "msg": {
  1911. "type": "string"
  1912. }
  1913. }
  1914. }
  1915. ]
  1916. }
  1917. }
  1918. }
  1919. }
  1920. },
  1921. "/autoCode/rollback": {
  1922. "post": {
  1923. "security": [
  1924. {
  1925. "ApiKeyAuth": []
  1926. }
  1927. ],
  1928. "consumes": [
  1929. "application/json"
  1930. ],
  1931. "produces": [
  1932. "application/json"
  1933. ],
  1934. "tags": [
  1935. "AutoCode"
  1936. ],
  1937. "summary": "回滚自动生成代码",
  1938. "parameters": [
  1939. {
  1940. "description": "请求参数",
  1941. "name": "data",
  1942. "in": "body",
  1943. "required": true,
  1944. "schema": {
  1945. "$ref": "#/definitions/request.SysAutoHistoryRollBack"
  1946. }
  1947. }
  1948. ],
  1949. "responses": {
  1950. "200": {
  1951. "description": "回滚自动生成代码",
  1952. "schema": {
  1953. "allOf": [
  1954. {
  1955. "$ref": "#/definitions/response.Response"
  1956. },
  1957. {
  1958. "type": "object",
  1959. "properties": {
  1960. "msg": {
  1961. "type": "string"
  1962. }
  1963. }
  1964. }
  1965. ]
  1966. }
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "/base/captcha": {
  1972. "post": {
  1973. "security": [
  1974. {
  1975. "ApiKeyAuth": []
  1976. }
  1977. ],
  1978. "consumes": [
  1979. "application/json"
  1980. ],
  1981. "produces": [
  1982. "application/json"
  1983. ],
  1984. "tags": [
  1985. "Base"
  1986. ],
  1987. "summary": "生成验证码",
  1988. "responses": {
  1989. "200": {
  1990. "description": "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码",
  1991. "schema": {
  1992. "allOf": [
  1993. {
  1994. "$ref": "#/definitions/response.Response"
  1995. },
  1996. {
  1997. "type": "object",
  1998. "properties": {
  1999. "data": {
  2000. "$ref": "#/definitions/response.SysCaptchaResponse"
  2001. },
  2002. "msg": {
  2003. "type": "string"
  2004. }
  2005. }
  2006. }
  2007. ]
  2008. }
  2009. }
  2010. }
  2011. }
  2012. },
  2013. "/base/login": {
  2014. "post": {
  2015. "produces": [
  2016. "application/json"
  2017. ],
  2018. "tags": [
  2019. "Base"
  2020. ],
  2021. "summary": "用户登录",
  2022. "parameters": [
  2023. {
  2024. "description": "用户名, 密码, 验证码",
  2025. "name": "data",
  2026. "in": "body",
  2027. "required": true,
  2028. "schema": {
  2029. "$ref": "#/definitions/request.Login"
  2030. }
  2031. }
  2032. ],
  2033. "responses": {
  2034. "200": {
  2035. "description": "返回包括用户信息,token,过期时间",
  2036. "schema": {
  2037. "allOf": [
  2038. {
  2039. "$ref": "#/definitions/response.Response"
  2040. },
  2041. {
  2042. "type": "object",
  2043. "properties": {
  2044. "data": {
  2045. "$ref": "#/definitions/response.LoginResponse"
  2046. },
  2047. "msg": {
  2048. "type": "string"
  2049. }
  2050. }
  2051. }
  2052. ]
  2053. }
  2054. }
  2055. }
  2056. }
  2057. },
  2058. "/casbin/UpdateCasbin": {
  2059. "post": {
  2060. "security": [
  2061. {
  2062. "ApiKeyAuth": []
  2063. }
  2064. ],
  2065. "consumes": [
  2066. "application/json"
  2067. ],
  2068. "produces": [
  2069. "application/json"
  2070. ],
  2071. "tags": [
  2072. "Casbin"
  2073. ],
  2074. "summary": "更新角色api权限",
  2075. "parameters": [
  2076. {
  2077. "description": "权限id, 权限模型列表",
  2078. "name": "data",
  2079. "in": "body",
  2080. "required": true,
  2081. "schema": {
  2082. "$ref": "#/definitions/request.CasbinInReceive"
  2083. }
  2084. }
  2085. ],
  2086. "responses": {
  2087. "200": {
  2088. "description": "更新角色api权限",
  2089. "schema": {
  2090. "allOf": [
  2091. {
  2092. "$ref": "#/definitions/response.Response"
  2093. },
  2094. {
  2095. "type": "object",
  2096. "properties": {
  2097. "msg": {
  2098. "type": "string"
  2099. }
  2100. }
  2101. }
  2102. ]
  2103. }
  2104. }
  2105. }
  2106. }
  2107. },
  2108. "/casbin/getPolicyPathByAuthorityId": {
  2109. "post": {
  2110. "security": [
  2111. {
  2112. "ApiKeyAuth": []
  2113. }
  2114. ],
  2115. "consumes": [
  2116. "application/json"
  2117. ],
  2118. "produces": [
  2119. "application/json"
  2120. ],
  2121. "tags": [
  2122. "Casbin"
  2123. ],
  2124. "summary": "获取权限列表",
  2125. "parameters": [
  2126. {
  2127. "description": "权限id, 权限模型列表",
  2128. "name": "data",
  2129. "in": "body",
  2130. "required": true,
  2131. "schema": {
  2132. "$ref": "#/definitions/request.CasbinInReceive"
  2133. }
  2134. }
  2135. ],
  2136. "responses": {
  2137. "200": {
  2138. "description": "获取权限列表,返回包括casbin详情列表",
  2139. "schema": {
  2140. "allOf": [
  2141. {
  2142. "$ref": "#/definitions/response.Response"
  2143. },
  2144. {
  2145. "type": "object",
  2146. "properties": {
  2147. "data": {
  2148. "$ref": "#/definitions/response.PolicyPathResponse"
  2149. },
  2150. "msg": {
  2151. "type": "string"
  2152. }
  2153. }
  2154. }
  2155. ]
  2156. }
  2157. }
  2158. }
  2159. }
  2160. },
  2161. "/customer/customer": {
  2162. "get": {
  2163. "security": [
  2164. {
  2165. "ApiKeyAuth": []
  2166. }
  2167. ],
  2168. "consumes": [
  2169. "application/json"
  2170. ],
  2171. "produces": [
  2172. "application/json"
  2173. ],
  2174. "tags": [
  2175. "ExaCustomer"
  2176. ],
  2177. "summary": "获取单一客户信息",
  2178. "parameters": [
  2179. {
  2180. "type": "integer",
  2181. "description": "主键ID",
  2182. "name": "ID",
  2183. "in": "query"
  2184. },
  2185. {
  2186. "type": "string",
  2187. "description": "创建时间",
  2188. "name": "createdAt",
  2189. "in": "query"
  2190. },
  2191. {
  2192. "type": "string",
  2193. "description": "客户名",
  2194. "name": "customerName",
  2195. "in": "query"
  2196. },
  2197. {
  2198. "type": "string",
  2199. "description": "客户手机号",
  2200. "name": "customerPhoneData",
  2201. "in": "query"
  2202. },
  2203. {
  2204. "type": "integer",
  2205. "description": "管理角色ID",
  2206. "name": "sysUserAuthorityID",
  2207. "in": "query"
  2208. },
  2209. {
  2210. "type": "integer",
  2211. "description": "管理ID",
  2212. "name": "sysUserId",
  2213. "in": "query"
  2214. },
  2215. {
  2216. "type": "string",
  2217. "description": "更新时间",
  2218. "name": "updatedAt",
  2219. "in": "query"
  2220. }
  2221. ],
  2222. "responses": {
  2223. "200": {
  2224. "description": "获取单一客户信息,返回包括客户详情",
  2225. "schema": {
  2226. "allOf": [
  2227. {
  2228. "$ref": "#/definitions/response.Response"
  2229. },
  2230. {
  2231. "type": "object",
  2232. "properties": {
  2233. "data": {
  2234. "$ref": "#/definitions/response.ExaCustomerResponse"
  2235. },
  2236. "msg": {
  2237. "type": "string"
  2238. }
  2239. }
  2240. }
  2241. ]
  2242. }
  2243. }
  2244. }
  2245. },
  2246. "put": {
  2247. "security": [
  2248. {
  2249. "ApiKeyAuth": []
  2250. }
  2251. ],
  2252. "consumes": [
  2253. "application/json"
  2254. ],
  2255. "produces": [
  2256. "application/json"
  2257. ],
  2258. "tags": [
  2259. "ExaCustomer"
  2260. ],
  2261. "summary": "更新客户信息",
  2262. "parameters": [
  2263. {
  2264. "description": "客户ID, 客户信息",
  2265. "name": "data",
  2266. "in": "body",
  2267. "required": true,
  2268. "schema": {
  2269. "$ref": "#/definitions/example.ExaCustomer"
  2270. }
  2271. }
  2272. ],
  2273. "responses": {
  2274. "200": {
  2275. "description": "更新客户信息",
  2276. "schema": {
  2277. "allOf": [
  2278. {
  2279. "$ref": "#/definitions/response.Response"
  2280. },
  2281. {
  2282. "type": "object",
  2283. "properties": {
  2284. "msg": {
  2285. "type": "string"
  2286. }
  2287. }
  2288. }
  2289. ]
  2290. }
  2291. }
  2292. }
  2293. },
  2294. "post": {
  2295. "security": [
  2296. {
  2297. "ApiKeyAuth": []
  2298. }
  2299. ],
  2300. "consumes": [
  2301. "application/json"
  2302. ],
  2303. "produces": [
  2304. "application/json"
  2305. ],
  2306. "tags": [
  2307. "ExaCustomer"
  2308. ],
  2309. "summary": "创建客户",
  2310. "parameters": [
  2311. {
  2312. "description": "客户用户名, 客户手机号码",
  2313. "name": "data",
  2314. "in": "body",
  2315. "required": true,
  2316. "schema": {
  2317. "$ref": "#/definitions/example.ExaCustomer"
  2318. }
  2319. }
  2320. ],
  2321. "responses": {
  2322. "200": {
  2323. "description": "创建客户",
  2324. "schema": {
  2325. "allOf": [
  2326. {
  2327. "$ref": "#/definitions/response.Response"
  2328. },
  2329. {
  2330. "type": "object",
  2331. "properties": {
  2332. "msg": {
  2333. "type": "string"
  2334. }
  2335. }
  2336. }
  2337. ]
  2338. }
  2339. }
  2340. }
  2341. },
  2342. "delete": {
  2343. "security": [
  2344. {
  2345. "ApiKeyAuth": []
  2346. }
  2347. ],
  2348. "consumes": [
  2349. "application/json"
  2350. ],
  2351. "produces": [
  2352. "application/json"
  2353. ],
  2354. "tags": [
  2355. "ExaCustomer"
  2356. ],
  2357. "summary": "删除客户",
  2358. "parameters": [
  2359. {
  2360. "description": "客户ID",
  2361. "name": "data",
  2362. "in": "body",
  2363. "required": true,
  2364. "schema": {
  2365. "$ref": "#/definitions/example.ExaCustomer"
  2366. }
  2367. }
  2368. ],
  2369. "responses": {
  2370. "200": {
  2371. "description": "删除客户",
  2372. "schema": {
  2373. "allOf": [
  2374. {
  2375. "$ref": "#/definitions/response.Response"
  2376. },
  2377. {
  2378. "type": "object",
  2379. "properties": {
  2380. "msg": {
  2381. "type": "string"
  2382. }
  2383. }
  2384. }
  2385. ]
  2386. }
  2387. }
  2388. }
  2389. }
  2390. },
  2391. "/customer/customerList": {
  2392. "get": {
  2393. "security": [
  2394. {
  2395. "ApiKeyAuth": []
  2396. }
  2397. ],
  2398. "consumes": [
  2399. "application/json"
  2400. ],
  2401. "produces": [
  2402. "application/json"
  2403. ],
  2404. "tags": [
  2405. "ExaCustomer"
  2406. ],
  2407. "summary": "分页获取权限客户列表",
  2408. "parameters": [
  2409. {
  2410. "type": "string",
  2411. "description": "关键字",
  2412. "name": "keyword",
  2413. "in": "query"
  2414. },
  2415. {
  2416. "type": "integer",
  2417. "description": "页码",
  2418. "name": "page",
  2419. "in": "query"
  2420. },
  2421. {
  2422. "type": "integer",
  2423. "description": "每页大小",
  2424. "name": "pageSize",
  2425. "in": "query"
  2426. }
  2427. ],
  2428. "responses": {
  2429. "200": {
  2430. "description": "分页获取权限客户列表,返回包括列表,总数,页码,每页数量",
  2431. "schema": {
  2432. "allOf": [
  2433. {
  2434. "$ref": "#/definitions/response.Response"
  2435. },
  2436. {
  2437. "type": "object",
  2438. "properties": {
  2439. "data": {
  2440. "$ref": "#/definitions/response.PageResult"
  2441. },
  2442. "msg": {
  2443. "type": "string"
  2444. }
  2445. }
  2446. }
  2447. ]
  2448. }
  2449. }
  2450. }
  2451. }
  2452. },
  2453. "/email/emailTest": {
  2454. "post": {
  2455. "security": [
  2456. {
  2457. "ApiKeyAuth": []
  2458. }
  2459. ],
  2460. "produces": [
  2461. "application/json"
  2462. ],
  2463. "tags": [
  2464. "System"
  2465. ],
  2466. "summary": "发送测试邮件",
  2467. "responses": {
  2468. "200": {
  2469. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2470. "schema": {
  2471. "type": "string"
  2472. }
  2473. }
  2474. }
  2475. }
  2476. },
  2477. "/email/sendEmail": {
  2478. "post": {
  2479. "security": [
  2480. {
  2481. "ApiKeyAuth": []
  2482. }
  2483. ],
  2484. "produces": [
  2485. "application/json"
  2486. ],
  2487. "tags": [
  2488. "System"
  2489. ],
  2490. "summary": "发送邮件",
  2491. "parameters": [
  2492. {
  2493. "description": "发送邮件必须的参数",
  2494. "name": "data",
  2495. "in": "body",
  2496. "required": true,
  2497. "schema": {
  2498. "$ref": "#/definitions/response.Email"
  2499. }
  2500. }
  2501. ],
  2502. "responses": {
  2503. "200": {
  2504. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2505. "schema": {
  2506. "type": "string"
  2507. }
  2508. }
  2509. }
  2510. }
  2511. },
  2512. "/fileUploadAndDownload/breakpointContinue": {
  2513. "post": {
  2514. "security": [
  2515. {
  2516. "ApiKeyAuth": []
  2517. }
  2518. ],
  2519. "consumes": [
  2520. "multipart/form-data"
  2521. ],
  2522. "produces": [
  2523. "application/json"
  2524. ],
  2525. "tags": [
  2526. "ExaFileUploadAndDownload"
  2527. ],
  2528. "summary": "断点续传到服务器",
  2529. "parameters": [
  2530. {
  2531. "type": "file",
  2532. "description": "an example for breakpoint resume, 断点续传示例",
  2533. "name": "file",
  2534. "in": "formData",
  2535. "required": true
  2536. }
  2537. ],
  2538. "responses": {
  2539. "200": {
  2540. "description": "断点续传到服务器",
  2541. "schema": {
  2542. "allOf": [
  2543. {
  2544. "$ref": "#/definitions/response.Response"
  2545. },
  2546. {
  2547. "type": "object",
  2548. "properties": {
  2549. "msg": {
  2550. "type": "string"
  2551. }
  2552. }
  2553. }
  2554. ]
  2555. }
  2556. }
  2557. }
  2558. }
  2559. },
  2560. "/fileUploadAndDownload/deleteFile": {
  2561. "post": {
  2562. "security": [
  2563. {
  2564. "ApiKeyAuth": []
  2565. }
  2566. ],
  2567. "produces": [
  2568. "application/json"
  2569. ],
  2570. "tags": [
  2571. "ExaFileUploadAndDownload"
  2572. ],
  2573. "summary": "删除文件",
  2574. "parameters": [
  2575. {
  2576. "description": "传入文件里面id即可",
  2577. "name": "data",
  2578. "in": "body",
  2579. "required": true,
  2580. "schema": {
  2581. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2582. }
  2583. }
  2584. ],
  2585. "responses": {
  2586. "200": {
  2587. "description": "删除文件",
  2588. "schema": {
  2589. "allOf": [
  2590. {
  2591. "$ref": "#/definitions/response.Response"
  2592. },
  2593. {
  2594. "type": "object",
  2595. "properties": {
  2596. "msg": {
  2597. "type": "string"
  2598. }
  2599. }
  2600. }
  2601. ]
  2602. }
  2603. }
  2604. }
  2605. }
  2606. },
  2607. "/fileUploadAndDownload/findFile": {
  2608. "get": {
  2609. "security": [
  2610. {
  2611. "ApiKeyAuth": []
  2612. }
  2613. ],
  2614. "consumes": [
  2615. "multipart/form-data"
  2616. ],
  2617. "produces": [
  2618. "application/json"
  2619. ],
  2620. "tags": [
  2621. "ExaFileUploadAndDownload"
  2622. ],
  2623. "summary": "查找文件",
  2624. "parameters": [
  2625. {
  2626. "type": "file",
  2627. "description": "Find the file, 查找文件",
  2628. "name": "file",
  2629. "in": "formData",
  2630. "required": true
  2631. }
  2632. ],
  2633. "responses": {
  2634. "200": {
  2635. "description": "查找文件,返回包括文件详情",
  2636. "schema": {
  2637. "allOf": [
  2638. {
  2639. "$ref": "#/definitions/response.Response"
  2640. },
  2641. {
  2642. "type": "object",
  2643. "properties": {
  2644. "data": {
  2645. "$ref": "#/definitions/response.FileResponse"
  2646. },
  2647. "msg": {
  2648. "type": "string"
  2649. }
  2650. }
  2651. }
  2652. ]
  2653. }
  2654. }
  2655. }
  2656. },
  2657. "post": {
  2658. "security": [
  2659. {
  2660. "ApiKeyAuth": []
  2661. }
  2662. ],
  2663. "consumes": [
  2664. "multipart/form-data"
  2665. ],
  2666. "produces": [
  2667. "application/json"
  2668. ],
  2669. "tags": [
  2670. "ExaFileUploadAndDownload"
  2671. ],
  2672. "summary": "创建文件",
  2673. "parameters": [
  2674. {
  2675. "type": "file",
  2676. "description": "上传文件完成",
  2677. "name": "file",
  2678. "in": "formData",
  2679. "required": true
  2680. }
  2681. ],
  2682. "responses": {
  2683. "200": {
  2684. "description": "创建文件,返回包括文件路径",
  2685. "schema": {
  2686. "allOf": [
  2687. {
  2688. "$ref": "#/definitions/response.Response"
  2689. },
  2690. {
  2691. "type": "object",
  2692. "properties": {
  2693. "data": {
  2694. "$ref": "#/definitions/response.FilePathResponse"
  2695. },
  2696. "msg": {
  2697. "type": "string"
  2698. }
  2699. }
  2700. }
  2701. ]
  2702. }
  2703. }
  2704. }
  2705. }
  2706. },
  2707. "/fileUploadAndDownload/getFileList": {
  2708. "post": {
  2709. "security": [
  2710. {
  2711. "ApiKeyAuth": []
  2712. }
  2713. ],
  2714. "consumes": [
  2715. "application/json"
  2716. ],
  2717. "produces": [
  2718. "application/json"
  2719. ],
  2720. "tags": [
  2721. "ExaFileUploadAndDownload"
  2722. ],
  2723. "summary": "分页文件列表",
  2724. "parameters": [
  2725. {
  2726. "description": "页码, 每页大小, 分类id",
  2727. "name": "data",
  2728. "in": "body",
  2729. "required": true,
  2730. "schema": {
  2731. "$ref": "#/definitions/request.ExaAttachmentCategorySearch"
  2732. }
  2733. }
  2734. ],
  2735. "responses": {
  2736. "200": {
  2737. "description": "分页文件列表,返回包括列表,总数,页码,每页数量",
  2738. "schema": {
  2739. "allOf": [
  2740. {
  2741. "$ref": "#/definitions/response.Response"
  2742. },
  2743. {
  2744. "type": "object",
  2745. "properties": {
  2746. "data": {
  2747. "$ref": "#/definitions/response.PageResult"
  2748. },
  2749. "msg": {
  2750. "type": "string"
  2751. }
  2752. }
  2753. }
  2754. ]
  2755. }
  2756. }
  2757. }
  2758. }
  2759. },
  2760. "/fileUploadAndDownload/importURL": {
  2761. "post": {
  2762. "security": [
  2763. {
  2764. "ApiKeyAuth": []
  2765. }
  2766. ],
  2767. "produces": [
  2768. "application/json"
  2769. ],
  2770. "tags": [
  2771. "ExaFileUploadAndDownload"
  2772. ],
  2773. "summary": "导入URL",
  2774. "parameters": [
  2775. {
  2776. "description": "对象",
  2777. "name": "data",
  2778. "in": "body",
  2779. "required": true,
  2780. "schema": {
  2781. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2782. }
  2783. }
  2784. ],
  2785. "responses": {
  2786. "200": {
  2787. "description": "导入URL",
  2788. "schema": {
  2789. "allOf": [
  2790. {
  2791. "$ref": "#/definitions/response.Response"
  2792. },
  2793. {
  2794. "type": "object",
  2795. "properties": {
  2796. "msg": {
  2797. "type": "string"
  2798. }
  2799. }
  2800. }
  2801. ]
  2802. }
  2803. }
  2804. }
  2805. }
  2806. },
  2807. "/fileUploadAndDownload/removeChunk": {
  2808. "post": {
  2809. "security": [
  2810. {
  2811. "ApiKeyAuth": []
  2812. }
  2813. ],
  2814. "consumes": [
  2815. "multipart/form-data"
  2816. ],
  2817. "produces": [
  2818. "application/json"
  2819. ],
  2820. "tags": [
  2821. "ExaFileUploadAndDownload"
  2822. ],
  2823. "summary": "删除切片",
  2824. "parameters": [
  2825. {
  2826. "type": "file",
  2827. "description": "删除缓存切片",
  2828. "name": "file",
  2829. "in": "formData",
  2830. "required": true
  2831. }
  2832. ],
  2833. "responses": {
  2834. "200": {
  2835. "description": "删除切片",
  2836. "schema": {
  2837. "allOf": [
  2838. {
  2839. "$ref": "#/definitions/response.Response"
  2840. },
  2841. {
  2842. "type": "object",
  2843. "properties": {
  2844. "msg": {
  2845. "type": "string"
  2846. }
  2847. }
  2848. }
  2849. ]
  2850. }
  2851. }
  2852. }
  2853. }
  2854. },
  2855. "/fileUploadAndDownload/upload": {
  2856. "post": {
  2857. "security": [
  2858. {
  2859. "ApiKeyAuth": []
  2860. }
  2861. ],
  2862. "consumes": [
  2863. "multipart/form-data"
  2864. ],
  2865. "produces": [
  2866. "application/json"
  2867. ],
  2868. "tags": [
  2869. "ExaFileUploadAndDownload"
  2870. ],
  2871. "summary": "上传文件示例",
  2872. "parameters": [
  2873. {
  2874. "type": "file",
  2875. "description": "上传文件示例",
  2876. "name": "file",
  2877. "in": "formData",
  2878. "required": true
  2879. }
  2880. ],
  2881. "responses": {
  2882. "200": {
  2883. "description": "上传文件示例,返回包括文件详情",
  2884. "schema": {
  2885. "allOf": [
  2886. {
  2887. "$ref": "#/definitions/response.Response"
  2888. },
  2889. {
  2890. "type": "object",
  2891. "properties": {
  2892. "data": {
  2893. "$ref": "#/definitions/response.ExaFileResponse"
  2894. },
  2895. "msg": {
  2896. "type": "string"
  2897. }
  2898. }
  2899. }
  2900. ]
  2901. }
  2902. }
  2903. }
  2904. }
  2905. },
  2906. "/info/createInfo": {
  2907. "post": {
  2908. "security": [
  2909. {
  2910. "ApiKeyAuth": []
  2911. }
  2912. ],
  2913. "consumes": [
  2914. "application/json"
  2915. ],
  2916. "produces": [
  2917. "application/json"
  2918. ],
  2919. "tags": [
  2920. "Info"
  2921. ],
  2922. "summary": "创建公告",
  2923. "parameters": [
  2924. {
  2925. "description": "创建公告",
  2926. "name": "data",
  2927. "in": "body",
  2928. "required": true,
  2929. "schema": {
  2930. "$ref": "#/definitions/model.Info"
  2931. }
  2932. }
  2933. ],
  2934. "responses": {
  2935. "200": {
  2936. "description": "创建成功",
  2937. "schema": {
  2938. "allOf": [
  2939. {
  2940. "$ref": "#/definitions/response.Response"
  2941. },
  2942. {
  2943. "type": "object",
  2944. "properties": {
  2945. "msg": {
  2946. "type": "string"
  2947. }
  2948. }
  2949. }
  2950. ]
  2951. }
  2952. }
  2953. }
  2954. }
  2955. },
  2956. "/info/deleteInfo": {
  2957. "delete": {
  2958. "security": [
  2959. {
  2960. "ApiKeyAuth": []
  2961. }
  2962. ],
  2963. "consumes": [
  2964. "application/json"
  2965. ],
  2966. "produces": [
  2967. "application/json"
  2968. ],
  2969. "tags": [
  2970. "Info"
  2971. ],
  2972. "summary": "删除公告",
  2973. "parameters": [
  2974. {
  2975. "description": "删除公告",
  2976. "name": "data",
  2977. "in": "body",
  2978. "required": true,
  2979. "schema": {
  2980. "$ref": "#/definitions/model.Info"
  2981. }
  2982. }
  2983. ],
  2984. "responses": {
  2985. "200": {
  2986. "description": "删除成功",
  2987. "schema": {
  2988. "allOf": [
  2989. {
  2990. "$ref": "#/definitions/response.Response"
  2991. },
  2992. {
  2993. "type": "object",
  2994. "properties": {
  2995. "msg": {
  2996. "type": "string"
  2997. }
  2998. }
  2999. }
  3000. ]
  3001. }
  3002. }
  3003. }
  3004. }
  3005. },
  3006. "/info/deleteInfoByIds": {
  3007. "delete": {
  3008. "security": [
  3009. {
  3010. "ApiKeyAuth": []
  3011. }
  3012. ],
  3013. "consumes": [
  3014. "application/json"
  3015. ],
  3016. "produces": [
  3017. "application/json"
  3018. ],
  3019. "tags": [
  3020. "Info"
  3021. ],
  3022. "summary": "批量删除公告",
  3023. "responses": {
  3024. "200": {
  3025. "description": "批量删除成功",
  3026. "schema": {
  3027. "allOf": [
  3028. {
  3029. "$ref": "#/definitions/response.Response"
  3030. },
  3031. {
  3032. "type": "object",
  3033. "properties": {
  3034. "msg": {
  3035. "type": "string"
  3036. }
  3037. }
  3038. }
  3039. ]
  3040. }
  3041. }
  3042. }
  3043. }
  3044. },
  3045. "/info/findInfo": {
  3046. "get": {
  3047. "security": [
  3048. {
  3049. "ApiKeyAuth": []
  3050. }
  3051. ],
  3052. "consumes": [
  3053. "application/json"
  3054. ],
  3055. "produces": [
  3056. "application/json"
  3057. ],
  3058. "tags": [
  3059. "Info"
  3060. ],
  3061. "summary": "用id查询公告",
  3062. "parameters": [
  3063. {
  3064. "type": "integer",
  3065. "description": "主键ID",
  3066. "name": "ID",
  3067. "in": "query"
  3068. },
  3069. {
  3070. "type": "string",
  3071. "description": "内容",
  3072. "name": "content",
  3073. "in": "query"
  3074. },
  3075. {
  3076. "type": "string",
  3077. "description": "创建时间",
  3078. "name": "createdAt",
  3079. "in": "query"
  3080. },
  3081. {
  3082. "type": "string",
  3083. "description": "标题",
  3084. "name": "title",
  3085. "in": "query"
  3086. },
  3087. {
  3088. "type": "string",
  3089. "description": "更新时间",
  3090. "name": "updatedAt",
  3091. "in": "query"
  3092. },
  3093. {
  3094. "type": "integer",
  3095. "description": "作者",
  3096. "name": "userID",
  3097. "in": "query"
  3098. }
  3099. ],
  3100. "responses": {
  3101. "200": {
  3102. "description": "查询成功",
  3103. "schema": {
  3104. "allOf": [
  3105. {
  3106. "$ref": "#/definitions/response.Response"
  3107. },
  3108. {
  3109. "type": "object",
  3110. "properties": {
  3111. "data": {
  3112. "$ref": "#/definitions/model.Info"
  3113. },
  3114. "msg": {
  3115. "type": "string"
  3116. }
  3117. }
  3118. }
  3119. ]
  3120. }
  3121. }
  3122. }
  3123. }
  3124. },
  3125. "/info/getInfoDataSource": {
  3126. "get": {
  3127. "consumes": [
  3128. "application/json"
  3129. ],
  3130. "produces": [
  3131. "application/json"
  3132. ],
  3133. "tags": [
  3134. "Info"
  3135. ],
  3136. "summary": "获取Info的数据源",
  3137. "responses": {
  3138. "200": {
  3139. "description": "查询成功",
  3140. "schema": {
  3141. "allOf": [
  3142. {
  3143. "$ref": "#/definitions/response.Response"
  3144. },
  3145. {
  3146. "type": "object",
  3147. "properties": {
  3148. "data": {
  3149. "type": "object"
  3150. },
  3151. "msg": {
  3152. "type": "string"
  3153. }
  3154. }
  3155. }
  3156. ]
  3157. }
  3158. }
  3159. }
  3160. }
  3161. },
  3162. "/info/getInfoList": {
  3163. "get": {
  3164. "security": [
  3165. {
  3166. "ApiKeyAuth": []
  3167. }
  3168. ],
  3169. "consumes": [
  3170. "application/json"
  3171. ],
  3172. "produces": [
  3173. "application/json"
  3174. ],
  3175. "tags": [
  3176. "Info"
  3177. ],
  3178. "summary": "分页获取公告列表",
  3179. "parameters": [
  3180. {
  3181. "type": "string",
  3182. "name": "endCreatedAt",
  3183. "in": "query"
  3184. },
  3185. {
  3186. "type": "string",
  3187. "description": "关键字",
  3188. "name": "keyword",
  3189. "in": "query"
  3190. },
  3191. {
  3192. "type": "integer",
  3193. "description": "页码",
  3194. "name": "page",
  3195. "in": "query"
  3196. },
  3197. {
  3198. "type": "integer",
  3199. "description": "每页大小",
  3200. "name": "pageSize",
  3201. "in": "query"
  3202. },
  3203. {
  3204. "type": "string",
  3205. "name": "startCreatedAt",
  3206. "in": "query"
  3207. }
  3208. ],
  3209. "responses": {
  3210. "200": {
  3211. "description": "获取成功",
  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. "/info/getInfoPublic": {
  3235. "get": {
  3236. "consumes": [
  3237. "application/json"
  3238. ],
  3239. "produces": [
  3240. "application/json"
  3241. ],
  3242. "tags": [
  3243. "Info"
  3244. ],
  3245. "summary": "不需要鉴权的公告接口",
  3246. "parameters": [
  3247. {
  3248. "type": "string",
  3249. "name": "endCreatedAt",
  3250. "in": "query"
  3251. },
  3252. {
  3253. "type": "string",
  3254. "description": "关键字",
  3255. "name": "keyword",
  3256. "in": "query"
  3257. },
  3258. {
  3259. "type": "integer",
  3260. "description": "页码",
  3261. "name": "page",
  3262. "in": "query"
  3263. },
  3264. {
  3265. "type": "integer",
  3266. "description": "每页大小",
  3267. "name": "pageSize",
  3268. "in": "query"
  3269. },
  3270. {
  3271. "type": "string",
  3272. "name": "startCreatedAt",
  3273. "in": "query"
  3274. }
  3275. ],
  3276. "responses": {
  3277. "200": {
  3278. "description": "获取成功",
  3279. "schema": {
  3280. "allOf": [
  3281. {
  3282. "$ref": "#/definitions/response.Response"
  3283. },
  3284. {
  3285. "type": "object",
  3286. "properties": {
  3287. "data": {
  3288. "type": "object"
  3289. },
  3290. "msg": {
  3291. "type": "string"
  3292. }
  3293. }
  3294. }
  3295. ]
  3296. }
  3297. }
  3298. }
  3299. }
  3300. },
  3301. "/info/updateInfo": {
  3302. "put": {
  3303. "security": [
  3304. {
  3305. "ApiKeyAuth": []
  3306. }
  3307. ],
  3308. "consumes": [
  3309. "application/json"
  3310. ],
  3311. "produces": [
  3312. "application/json"
  3313. ],
  3314. "tags": [
  3315. "Info"
  3316. ],
  3317. "summary": "更新公告",
  3318. "parameters": [
  3319. {
  3320. "description": "更新公告",
  3321. "name": "data",
  3322. "in": "body",
  3323. "required": true,
  3324. "schema": {
  3325. "$ref": "#/definitions/model.Info"
  3326. }
  3327. }
  3328. ],
  3329. "responses": {
  3330. "200": {
  3331. "description": "更新成功",
  3332. "schema": {
  3333. "allOf": [
  3334. {
  3335. "$ref": "#/definitions/response.Response"
  3336. },
  3337. {
  3338. "type": "object",
  3339. "properties": {
  3340. "msg": {
  3341. "type": "string"
  3342. }
  3343. }
  3344. }
  3345. ]
  3346. }
  3347. }
  3348. }
  3349. }
  3350. },
  3351. "/init/checkdb": {
  3352. "post": {
  3353. "produces": [
  3354. "application/json"
  3355. ],
  3356. "tags": [
  3357. "CheckDB"
  3358. ],
  3359. "summary": "初始化用户数据库",
  3360. "responses": {
  3361. "200": {
  3362. "description": "初始化用户数据库",
  3363. "schema": {
  3364. "allOf": [
  3365. {
  3366. "$ref": "#/definitions/response.Response"
  3367. },
  3368. {
  3369. "type": "object",
  3370. "properties": {
  3371. "data": {
  3372. "type": "object",
  3373. "additionalProperties": true
  3374. },
  3375. "msg": {
  3376. "type": "string"
  3377. }
  3378. }
  3379. }
  3380. ]
  3381. }
  3382. }
  3383. }
  3384. }
  3385. },
  3386. "/init/initdb": {
  3387. "post": {
  3388. "produces": [
  3389. "application/json"
  3390. ],
  3391. "tags": [
  3392. "InitDB"
  3393. ],
  3394. "summary": "初始化用户数据库",
  3395. "parameters": [
  3396. {
  3397. "description": "初始化数据库参数",
  3398. "name": "data",
  3399. "in": "body",
  3400. "required": true,
  3401. "schema": {
  3402. "$ref": "#/definitions/request.InitDB"
  3403. }
  3404. }
  3405. ],
  3406. "responses": {
  3407. "200": {
  3408. "description": "初始化用户数据库",
  3409. "schema": {
  3410. "allOf": [
  3411. {
  3412. "$ref": "#/definitions/response.Response"
  3413. },
  3414. {
  3415. "type": "object",
  3416. "properties": {
  3417. "data": {
  3418. "type": "string"
  3419. }
  3420. }
  3421. }
  3422. ]
  3423. }
  3424. }
  3425. }
  3426. }
  3427. },
  3428. "/jwt/jsonInBlacklist": {
  3429. "post": {
  3430. "security": [
  3431. {
  3432. "ApiKeyAuth": []
  3433. }
  3434. ],
  3435. "consumes": [
  3436. "application/json"
  3437. ],
  3438. "produces": [
  3439. "application/json"
  3440. ],
  3441. "tags": [
  3442. "Jwt"
  3443. ],
  3444. "summary": "jwt加入黑名单",
  3445. "responses": {
  3446. "200": {
  3447. "description": "jwt加入黑名单",
  3448. "schema": {
  3449. "allOf": [
  3450. {
  3451. "$ref": "#/definitions/response.Response"
  3452. },
  3453. {
  3454. "type": "object",
  3455. "properties": {
  3456. "msg": {
  3457. "type": "string"
  3458. }
  3459. }
  3460. }
  3461. ]
  3462. }
  3463. }
  3464. }
  3465. }
  3466. },
  3467. "/menu/addBaseMenu": {
  3468. "post": {
  3469. "security": [
  3470. {
  3471. "ApiKeyAuth": []
  3472. }
  3473. ],
  3474. "consumes": [
  3475. "application/json"
  3476. ],
  3477. "produces": [
  3478. "application/json"
  3479. ],
  3480. "tags": [
  3481. "Menu"
  3482. ],
  3483. "summary": "新增菜单",
  3484. "parameters": [
  3485. {
  3486. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  3487. "name": "data",
  3488. "in": "body",
  3489. "required": true,
  3490. "schema": {
  3491. "$ref": "#/definitions/system.SysBaseMenu"
  3492. }
  3493. }
  3494. ],
  3495. "responses": {
  3496. "200": {
  3497. "description": "新增菜单",
  3498. "schema": {
  3499. "allOf": [
  3500. {
  3501. "$ref": "#/definitions/response.Response"
  3502. },
  3503. {
  3504. "type": "object",
  3505. "properties": {
  3506. "msg": {
  3507. "type": "string"
  3508. }
  3509. }
  3510. }
  3511. ]
  3512. }
  3513. }
  3514. }
  3515. }
  3516. },
  3517. "/menu/addMenuAuthority": {
  3518. "post": {
  3519. "security": [
  3520. {
  3521. "ApiKeyAuth": []
  3522. }
  3523. ],
  3524. "consumes": [
  3525. "application/json"
  3526. ],
  3527. "produces": [
  3528. "application/json"
  3529. ],
  3530. "tags": [
  3531. "AuthorityMenu"
  3532. ],
  3533. "summary": "增加menu和角色关联关系",
  3534. "parameters": [
  3535. {
  3536. "description": "角色ID",
  3537. "name": "data",
  3538. "in": "body",
  3539. "required": true,
  3540. "schema": {
  3541. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  3542. }
  3543. }
  3544. ],
  3545. "responses": {
  3546. "200": {
  3547. "description": "增加menu和角色关联关系",
  3548. "schema": {
  3549. "allOf": [
  3550. {
  3551. "$ref": "#/definitions/response.Response"
  3552. },
  3553. {
  3554. "type": "object",
  3555. "properties": {
  3556. "msg": {
  3557. "type": "string"
  3558. }
  3559. }
  3560. }
  3561. ]
  3562. }
  3563. }
  3564. }
  3565. }
  3566. },
  3567. "/menu/deleteBaseMenu": {
  3568. "post": {
  3569. "security": [
  3570. {
  3571. "ApiKeyAuth": []
  3572. }
  3573. ],
  3574. "consumes": [
  3575. "application/json"
  3576. ],
  3577. "produces": [
  3578. "application/json"
  3579. ],
  3580. "tags": [
  3581. "Menu"
  3582. ],
  3583. "summary": "删除菜单",
  3584. "parameters": [
  3585. {
  3586. "description": "菜单id",
  3587. "name": "data",
  3588. "in": "body",
  3589. "required": true,
  3590. "schema": {
  3591. "$ref": "#/definitions/request.GetById"
  3592. }
  3593. }
  3594. ],
  3595. "responses": {
  3596. "200": {
  3597. "description": "删除菜单",
  3598. "schema": {
  3599. "allOf": [
  3600. {
  3601. "$ref": "#/definitions/response.Response"
  3602. },
  3603. {
  3604. "type": "object",
  3605. "properties": {
  3606. "msg": {
  3607. "type": "string"
  3608. }
  3609. }
  3610. }
  3611. ]
  3612. }
  3613. }
  3614. }
  3615. }
  3616. },
  3617. "/menu/getBaseMenuById": {
  3618. "post": {
  3619. "security": [
  3620. {
  3621. "ApiKeyAuth": []
  3622. }
  3623. ],
  3624. "consumes": [
  3625. "application/json"
  3626. ],
  3627. "produces": [
  3628. "application/json"
  3629. ],
  3630. "tags": [
  3631. "Menu"
  3632. ],
  3633. "summary": "根据id获取菜单",
  3634. "parameters": [
  3635. {
  3636. "description": "菜单id",
  3637. "name": "data",
  3638. "in": "body",
  3639. "required": true,
  3640. "schema": {
  3641. "$ref": "#/definitions/request.GetById"
  3642. }
  3643. }
  3644. ],
  3645. "responses": {
  3646. "200": {
  3647. "description": "根据id获取菜单,返回包括系统菜单列表",
  3648. "schema": {
  3649. "allOf": [
  3650. {
  3651. "$ref": "#/definitions/response.Response"
  3652. },
  3653. {
  3654. "type": "object",
  3655. "properties": {
  3656. "data": {
  3657. "$ref": "#/definitions/response.SysBaseMenuResponse"
  3658. },
  3659. "msg": {
  3660. "type": "string"
  3661. }
  3662. }
  3663. }
  3664. ]
  3665. }
  3666. }
  3667. }
  3668. }
  3669. },
  3670. "/menu/getBaseMenuTree": {
  3671. "post": {
  3672. "security": [
  3673. {
  3674. "ApiKeyAuth": []
  3675. }
  3676. ],
  3677. "produces": [
  3678. "application/json"
  3679. ],
  3680. "tags": [
  3681. "AuthorityMenu"
  3682. ],
  3683. "summary": "获取用户动态路由",
  3684. "parameters": [
  3685. {
  3686. "description": "空",
  3687. "name": "data",
  3688. "in": "body",
  3689. "required": true,
  3690. "schema": {
  3691. "$ref": "#/definitions/request.Empty"
  3692. }
  3693. }
  3694. ],
  3695. "responses": {
  3696. "200": {
  3697. "description": "获取用户动态路由,返回包括系统菜单列表",
  3698. "schema": {
  3699. "allOf": [
  3700. {
  3701. "$ref": "#/definitions/response.Response"
  3702. },
  3703. {
  3704. "type": "object",
  3705. "properties": {
  3706. "data": {
  3707. "$ref": "#/definitions/response.SysBaseMenusResponse"
  3708. },
  3709. "msg": {
  3710. "type": "string"
  3711. }
  3712. }
  3713. }
  3714. ]
  3715. }
  3716. }
  3717. }
  3718. }
  3719. },
  3720. "/menu/getMenu": {
  3721. "post": {
  3722. "security": [
  3723. {
  3724. "ApiKeyAuth": []
  3725. }
  3726. ],
  3727. "produces": [
  3728. "application/json"
  3729. ],
  3730. "tags": [
  3731. "AuthorityMenu"
  3732. ],
  3733. "summary": "获取用户动态路由",
  3734. "parameters": [
  3735. {
  3736. "description": "空",
  3737. "name": "data",
  3738. "in": "body",
  3739. "required": true,
  3740. "schema": {
  3741. "$ref": "#/definitions/request.Empty"
  3742. }
  3743. }
  3744. ],
  3745. "responses": {
  3746. "200": {
  3747. "description": "获取用户动态路由,返回包括系统菜单详情列表",
  3748. "schema": {
  3749. "allOf": [
  3750. {
  3751. "$ref": "#/definitions/response.Response"
  3752. },
  3753. {
  3754. "type": "object",
  3755. "properties": {
  3756. "data": {
  3757. "$ref": "#/definitions/response.SysMenusResponse"
  3758. },
  3759. "msg": {
  3760. "type": "string"
  3761. }
  3762. }
  3763. }
  3764. ]
  3765. }
  3766. }
  3767. }
  3768. }
  3769. },
  3770. "/menu/getMenuAuthority": {
  3771. "post": {
  3772. "security": [
  3773. {
  3774. "ApiKeyAuth": []
  3775. }
  3776. ],
  3777. "consumes": [
  3778. "application/json"
  3779. ],
  3780. "produces": [
  3781. "application/json"
  3782. ],
  3783. "tags": [
  3784. "AuthorityMenu"
  3785. ],
  3786. "summary": "获取指定角色menu",
  3787. "parameters": [
  3788. {
  3789. "description": "角色ID",
  3790. "name": "data",
  3791. "in": "body",
  3792. "required": true,
  3793. "schema": {
  3794. "$ref": "#/definitions/request.GetAuthorityId"
  3795. }
  3796. }
  3797. ],
  3798. "responses": {
  3799. "200": {
  3800. "description": "获取指定角色menu",
  3801. "schema": {
  3802. "allOf": [
  3803. {
  3804. "$ref": "#/definitions/response.Response"
  3805. },
  3806. {
  3807. "type": "object",
  3808. "properties": {
  3809. "data": {
  3810. "type": "object",
  3811. "additionalProperties": true
  3812. },
  3813. "msg": {
  3814. "type": "string"
  3815. }
  3816. }
  3817. }
  3818. ]
  3819. }
  3820. }
  3821. }
  3822. }
  3823. },
  3824. "/menu/getMenuList": {
  3825. "post": {
  3826. "security": [
  3827. {
  3828. "ApiKeyAuth": []
  3829. }
  3830. ],
  3831. "consumes": [
  3832. "application/json"
  3833. ],
  3834. "produces": [
  3835. "application/json"
  3836. ],
  3837. "tags": [
  3838. "Menu"
  3839. ],
  3840. "summary": "分页获取基础menu列表",
  3841. "parameters": [
  3842. {
  3843. "description": "页码, 每页大小",
  3844. "name": "data",
  3845. "in": "body",
  3846. "required": true,
  3847. "schema": {
  3848. "$ref": "#/definitions/request.PageInfo"
  3849. }
  3850. }
  3851. ],
  3852. "responses": {
  3853. "200": {
  3854. "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量",
  3855. "schema": {
  3856. "allOf": [
  3857. {
  3858. "$ref": "#/definitions/response.Response"
  3859. },
  3860. {
  3861. "type": "object",
  3862. "properties": {
  3863. "data": {
  3864. "$ref": "#/definitions/response.PageResult"
  3865. },
  3866. "msg": {
  3867. "type": "string"
  3868. }
  3869. }
  3870. }
  3871. ]
  3872. }
  3873. }
  3874. }
  3875. }
  3876. },
  3877. "/menu/updateBaseMenu": {
  3878. "post": {
  3879. "security": [
  3880. {
  3881. "ApiKeyAuth": []
  3882. }
  3883. ],
  3884. "consumes": [
  3885. "application/json"
  3886. ],
  3887. "produces": [
  3888. "application/json"
  3889. ],
  3890. "tags": [
  3891. "Menu"
  3892. ],
  3893. "summary": "更新菜单",
  3894. "parameters": [
  3895. {
  3896. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  3897. "name": "data",
  3898. "in": "body",
  3899. "required": true,
  3900. "schema": {
  3901. "$ref": "#/definitions/system.SysBaseMenu"
  3902. }
  3903. }
  3904. ],
  3905. "responses": {
  3906. "200": {
  3907. "description": "更新菜单",
  3908. "schema": {
  3909. "allOf": [
  3910. {
  3911. "$ref": "#/definitions/response.Response"
  3912. },
  3913. {
  3914. "type": "object",
  3915. "properties": {
  3916. "msg": {
  3917. "type": "string"
  3918. }
  3919. }
  3920. }
  3921. ]
  3922. }
  3923. }
  3924. }
  3925. }
  3926. },
  3927. "/sysDictionary/createSysDictionary": {
  3928. "post": {
  3929. "security": [
  3930. {
  3931. "ApiKeyAuth": []
  3932. }
  3933. ],
  3934. "consumes": [
  3935. "application/json"
  3936. ],
  3937. "produces": [
  3938. "application/json"
  3939. ],
  3940. "tags": [
  3941. "SysDictionary"
  3942. ],
  3943. "summary": "创建SysDictionary",
  3944. "parameters": [
  3945. {
  3946. "description": "SysDictionary模型",
  3947. "name": "data",
  3948. "in": "body",
  3949. "required": true,
  3950. "schema": {
  3951. "$ref": "#/definitions/system.SysDictionary"
  3952. }
  3953. }
  3954. ],
  3955. "responses": {
  3956. "200": {
  3957. "description": "创建SysDictionary",
  3958. "schema": {
  3959. "allOf": [
  3960. {
  3961. "$ref": "#/definitions/response.Response"
  3962. },
  3963. {
  3964. "type": "object",
  3965. "properties": {
  3966. "msg": {
  3967. "type": "string"
  3968. }
  3969. }
  3970. }
  3971. ]
  3972. }
  3973. }
  3974. }
  3975. }
  3976. },
  3977. "/sysDictionary/deleteSysDictionary": {
  3978. "delete": {
  3979. "security": [
  3980. {
  3981. "ApiKeyAuth": []
  3982. }
  3983. ],
  3984. "consumes": [
  3985. "application/json"
  3986. ],
  3987. "produces": [
  3988. "application/json"
  3989. ],
  3990. "tags": [
  3991. "SysDictionary"
  3992. ],
  3993. "summary": "删除SysDictionary",
  3994. "parameters": [
  3995. {
  3996. "description": "SysDictionary模型",
  3997. "name": "data",
  3998. "in": "body",
  3999. "required": true,
  4000. "schema": {
  4001. "$ref": "#/definitions/system.SysDictionary"
  4002. }
  4003. }
  4004. ],
  4005. "responses": {
  4006. "200": {
  4007. "description": "删除SysDictionary",
  4008. "schema": {
  4009. "allOf": [
  4010. {
  4011. "$ref": "#/definitions/response.Response"
  4012. },
  4013. {
  4014. "type": "object",
  4015. "properties": {
  4016. "msg": {
  4017. "type": "string"
  4018. }
  4019. }
  4020. }
  4021. ]
  4022. }
  4023. }
  4024. }
  4025. }
  4026. },
  4027. "/sysDictionary/findSysDictionary": {
  4028. "get": {
  4029. "security": [
  4030. {
  4031. "ApiKeyAuth": []
  4032. }
  4033. ],
  4034. "consumes": [
  4035. "application/json"
  4036. ],
  4037. "produces": [
  4038. "application/json"
  4039. ],
  4040. "tags": [
  4041. "SysDictionary"
  4042. ],
  4043. "summary": "用id查询SysDictionary",
  4044. "parameters": [
  4045. {
  4046. "type": "integer",
  4047. "description": "主键ID",
  4048. "name": "ID",
  4049. "in": "query"
  4050. },
  4051. {
  4052. "type": "string",
  4053. "description": "创建时间",
  4054. "name": "createdAt",
  4055. "in": "query"
  4056. },
  4057. {
  4058. "type": "string",
  4059. "description": "描述",
  4060. "name": "desc",
  4061. "in": "query"
  4062. },
  4063. {
  4064. "type": "string",
  4065. "description": "字典名(中)",
  4066. "name": "name",
  4067. "in": "query"
  4068. },
  4069. {
  4070. "type": "boolean",
  4071. "description": "状态",
  4072. "name": "status",
  4073. "in": "query"
  4074. },
  4075. {
  4076. "type": "string",
  4077. "description": "字典名(英)",
  4078. "name": "type",
  4079. "in": "query"
  4080. },
  4081. {
  4082. "type": "string",
  4083. "description": "更新时间",
  4084. "name": "updatedAt",
  4085. "in": "query"
  4086. }
  4087. ],
  4088. "responses": {
  4089. "200": {
  4090. "description": "用id查询SysDictionary",
  4091. "schema": {
  4092. "allOf": [
  4093. {
  4094. "$ref": "#/definitions/response.Response"
  4095. },
  4096. {
  4097. "type": "object",
  4098. "properties": {
  4099. "data": {
  4100. "type": "object",
  4101. "additionalProperties": true
  4102. },
  4103. "msg": {
  4104. "type": "string"
  4105. }
  4106. }
  4107. }
  4108. ]
  4109. }
  4110. }
  4111. }
  4112. }
  4113. },
  4114. "/sysDictionary/getSysDictionaryList": {
  4115. "get": {
  4116. "security": [
  4117. {
  4118. "ApiKeyAuth": []
  4119. }
  4120. ],
  4121. "consumes": [
  4122. "application/json"
  4123. ],
  4124. "produces": [
  4125. "application/json"
  4126. ],
  4127. "tags": [
  4128. "SysDictionary"
  4129. ],
  4130. "summary": "分页获取SysDictionary列表",
  4131. "responses": {
  4132. "200": {
  4133. "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量",
  4134. "schema": {
  4135. "allOf": [
  4136. {
  4137. "$ref": "#/definitions/response.Response"
  4138. },
  4139. {
  4140. "type": "object",
  4141. "properties": {
  4142. "data": {
  4143. "$ref": "#/definitions/response.PageResult"
  4144. },
  4145. "msg": {
  4146. "type": "string"
  4147. }
  4148. }
  4149. }
  4150. ]
  4151. }
  4152. }
  4153. }
  4154. }
  4155. },
  4156. "/sysDictionary/updateSysDictionary": {
  4157. "put": {
  4158. "security": [
  4159. {
  4160. "ApiKeyAuth": []
  4161. }
  4162. ],
  4163. "consumes": [
  4164. "application/json"
  4165. ],
  4166. "produces": [
  4167. "application/json"
  4168. ],
  4169. "tags": [
  4170. "SysDictionary"
  4171. ],
  4172. "summary": "更新SysDictionary",
  4173. "parameters": [
  4174. {
  4175. "description": "SysDictionary模型",
  4176. "name": "data",
  4177. "in": "body",
  4178. "required": true,
  4179. "schema": {
  4180. "$ref": "#/definitions/system.SysDictionary"
  4181. }
  4182. }
  4183. ],
  4184. "responses": {
  4185. "200": {
  4186. "description": "更新SysDictionary",
  4187. "schema": {
  4188. "allOf": [
  4189. {
  4190. "$ref": "#/definitions/response.Response"
  4191. },
  4192. {
  4193. "type": "object",
  4194. "properties": {
  4195. "msg": {
  4196. "type": "string"
  4197. }
  4198. }
  4199. }
  4200. ]
  4201. }
  4202. }
  4203. }
  4204. }
  4205. },
  4206. "/sysDictionaryDetail/createSysDictionaryDetail": {
  4207. "post": {
  4208. "security": [
  4209. {
  4210. "ApiKeyAuth": []
  4211. }
  4212. ],
  4213. "consumes": [
  4214. "application/json"
  4215. ],
  4216. "produces": [
  4217. "application/json"
  4218. ],
  4219. "tags": [
  4220. "SysDictionaryDetail"
  4221. ],
  4222. "summary": "创建SysDictionaryDetail",
  4223. "parameters": [
  4224. {
  4225. "description": "SysDictionaryDetail模型",
  4226. "name": "data",
  4227. "in": "body",
  4228. "required": true,
  4229. "schema": {
  4230. "$ref": "#/definitions/system.SysDictionaryDetail"
  4231. }
  4232. }
  4233. ],
  4234. "responses": {
  4235. "200": {
  4236. "description": "创建SysDictionaryDetail",
  4237. "schema": {
  4238. "allOf": [
  4239. {
  4240. "$ref": "#/definitions/response.Response"
  4241. },
  4242. {
  4243. "type": "object",
  4244. "properties": {
  4245. "msg": {
  4246. "type": "string"
  4247. }
  4248. }
  4249. }
  4250. ]
  4251. }
  4252. }
  4253. }
  4254. }
  4255. },
  4256. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  4257. "delete": {
  4258. "security": [
  4259. {
  4260. "ApiKeyAuth": []
  4261. }
  4262. ],
  4263. "consumes": [
  4264. "application/json"
  4265. ],
  4266. "produces": [
  4267. "application/json"
  4268. ],
  4269. "tags": [
  4270. "SysDictionaryDetail"
  4271. ],
  4272. "summary": "删除SysDictionaryDetail",
  4273. "parameters": [
  4274. {
  4275. "description": "SysDictionaryDetail模型",
  4276. "name": "data",
  4277. "in": "body",
  4278. "required": true,
  4279. "schema": {
  4280. "$ref": "#/definitions/system.SysDictionaryDetail"
  4281. }
  4282. }
  4283. ],
  4284. "responses": {
  4285. "200": {
  4286. "description": "删除SysDictionaryDetail",
  4287. "schema": {
  4288. "allOf": [
  4289. {
  4290. "$ref": "#/definitions/response.Response"
  4291. },
  4292. {
  4293. "type": "object",
  4294. "properties": {
  4295. "msg": {
  4296. "type": "string"
  4297. }
  4298. }
  4299. }
  4300. ]
  4301. }
  4302. }
  4303. }
  4304. }
  4305. },
  4306. "/sysDictionaryDetail/findSysDictionaryDetail": {
  4307. "get": {
  4308. "security": [
  4309. {
  4310. "ApiKeyAuth": []
  4311. }
  4312. ],
  4313. "consumes": [
  4314. "application/json"
  4315. ],
  4316. "produces": [
  4317. "application/json"
  4318. ],
  4319. "tags": [
  4320. "SysDictionaryDetail"
  4321. ],
  4322. "summary": "用id查询SysDictionaryDetail",
  4323. "parameters": [
  4324. {
  4325. "type": "integer",
  4326. "description": "主键ID",
  4327. "name": "ID",
  4328. "in": "query"
  4329. },
  4330. {
  4331. "type": "string",
  4332. "description": "创建时间",
  4333. "name": "createdAt",
  4334. "in": "query"
  4335. },
  4336. {
  4337. "type": "string",
  4338. "description": "扩展值",
  4339. "name": "extend",
  4340. "in": "query"
  4341. },
  4342. {
  4343. "type": "string",
  4344. "description": "展示值",
  4345. "name": "label",
  4346. "in": "query"
  4347. },
  4348. {
  4349. "type": "integer",
  4350. "description": "排序标记",
  4351. "name": "sort",
  4352. "in": "query"
  4353. },
  4354. {
  4355. "type": "boolean",
  4356. "description": "启用状态",
  4357. "name": "status",
  4358. "in": "query"
  4359. },
  4360. {
  4361. "type": "integer",
  4362. "description": "关联标记",
  4363. "name": "sysDictionaryID",
  4364. "in": "query"
  4365. },
  4366. {
  4367. "type": "string",
  4368. "description": "更新时间",
  4369. "name": "updatedAt",
  4370. "in": "query"
  4371. },
  4372. {
  4373. "type": "string",
  4374. "description": "字典值",
  4375. "name": "value",
  4376. "in": "query"
  4377. }
  4378. ],
  4379. "responses": {
  4380. "200": {
  4381. "description": "用id查询SysDictionaryDetail",
  4382. "schema": {
  4383. "allOf": [
  4384. {
  4385. "$ref": "#/definitions/response.Response"
  4386. },
  4387. {
  4388. "type": "object",
  4389. "properties": {
  4390. "data": {
  4391. "type": "object",
  4392. "additionalProperties": true
  4393. },
  4394. "msg": {
  4395. "type": "string"
  4396. }
  4397. }
  4398. }
  4399. ]
  4400. }
  4401. }
  4402. }
  4403. }
  4404. },
  4405. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  4406. "get": {
  4407. "security": [
  4408. {
  4409. "ApiKeyAuth": []
  4410. }
  4411. ],
  4412. "consumes": [
  4413. "application/json"
  4414. ],
  4415. "produces": [
  4416. "application/json"
  4417. ],
  4418. "tags": [
  4419. "SysDictionaryDetail"
  4420. ],
  4421. "summary": "分页获取SysDictionaryDetail列表",
  4422. "parameters": [
  4423. {
  4424. "type": "integer",
  4425. "description": "主键ID",
  4426. "name": "ID",
  4427. "in": "query"
  4428. },
  4429. {
  4430. "type": "string",
  4431. "description": "创建时间",
  4432. "name": "createdAt",
  4433. "in": "query"
  4434. },
  4435. {
  4436. "type": "string",
  4437. "description": "扩展值",
  4438. "name": "extend",
  4439. "in": "query"
  4440. },
  4441. {
  4442. "type": "string",
  4443. "description": "关键字",
  4444. "name": "keyword",
  4445. "in": "query"
  4446. },
  4447. {
  4448. "type": "string",
  4449. "description": "展示值",
  4450. "name": "label",
  4451. "in": "query"
  4452. },
  4453. {
  4454. "type": "integer",
  4455. "description": "页码",
  4456. "name": "page",
  4457. "in": "query"
  4458. },
  4459. {
  4460. "type": "integer",
  4461. "description": "每页大小",
  4462. "name": "pageSize",
  4463. "in": "query"
  4464. },
  4465. {
  4466. "type": "integer",
  4467. "description": "排序标记",
  4468. "name": "sort",
  4469. "in": "query"
  4470. },
  4471. {
  4472. "type": "boolean",
  4473. "description": "启用状态",
  4474. "name": "status",
  4475. "in": "query"
  4476. },
  4477. {
  4478. "type": "integer",
  4479. "description": "关联标记",
  4480. "name": "sysDictionaryID",
  4481. "in": "query"
  4482. },
  4483. {
  4484. "type": "string",
  4485. "description": "更新时间",
  4486. "name": "updatedAt",
  4487. "in": "query"
  4488. },
  4489. {
  4490. "type": "string",
  4491. "description": "字典值",
  4492. "name": "value",
  4493. "in": "query"
  4494. }
  4495. ],
  4496. "responses": {
  4497. "200": {
  4498. "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量",
  4499. "schema": {
  4500. "allOf": [
  4501. {
  4502. "$ref": "#/definitions/response.Response"
  4503. },
  4504. {
  4505. "type": "object",
  4506. "properties": {
  4507. "data": {
  4508. "$ref": "#/definitions/response.PageResult"
  4509. },
  4510. "msg": {
  4511. "type": "string"
  4512. }
  4513. }
  4514. }
  4515. ]
  4516. }
  4517. }
  4518. }
  4519. }
  4520. },
  4521. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  4522. "put": {
  4523. "security": [
  4524. {
  4525. "ApiKeyAuth": []
  4526. }
  4527. ],
  4528. "consumes": [
  4529. "application/json"
  4530. ],
  4531. "produces": [
  4532. "application/json"
  4533. ],
  4534. "tags": [
  4535. "SysDictionaryDetail"
  4536. ],
  4537. "summary": "更新SysDictionaryDetail",
  4538. "parameters": [
  4539. {
  4540. "description": "更新SysDictionaryDetail",
  4541. "name": "data",
  4542. "in": "body",
  4543. "required": true,
  4544. "schema": {
  4545. "$ref": "#/definitions/system.SysDictionaryDetail"
  4546. }
  4547. }
  4548. ],
  4549. "responses": {
  4550. "200": {
  4551. "description": "更新SysDictionaryDetail",
  4552. "schema": {
  4553. "allOf": [
  4554. {
  4555. "$ref": "#/definitions/response.Response"
  4556. },
  4557. {
  4558. "type": "object",
  4559. "properties": {
  4560. "msg": {
  4561. "type": "string"
  4562. }
  4563. }
  4564. }
  4565. ]
  4566. }
  4567. }
  4568. }
  4569. }
  4570. },
  4571. "/sysExportTemplate/ExportTemplate": {
  4572. "get": {
  4573. "security": [
  4574. {
  4575. "ApiKeyAuth": []
  4576. }
  4577. ],
  4578. "consumes": [
  4579. "application/json"
  4580. ],
  4581. "produces": [
  4582. "application/json"
  4583. ],
  4584. "tags": [
  4585. "SysExportTemplate"
  4586. ],
  4587. "summary": "导出表格模板",
  4588. "responses": {}
  4589. }
  4590. },
  4591. "/sysExportTemplate/createSysExportTemplate": {
  4592. "post": {
  4593. "security": [
  4594. {
  4595. "ApiKeyAuth": []
  4596. }
  4597. ],
  4598. "consumes": [
  4599. "application/json"
  4600. ],
  4601. "produces": [
  4602. "application/json"
  4603. ],
  4604. "tags": [
  4605. "SysExportTemplate"
  4606. ],
  4607. "summary": "创建导出模板",
  4608. "parameters": [
  4609. {
  4610. "description": "创建导出模板",
  4611. "name": "data",
  4612. "in": "body",
  4613. "required": true,
  4614. "schema": {
  4615. "$ref": "#/definitions/system.SysExportTemplate"
  4616. }
  4617. }
  4618. ],
  4619. "responses": {
  4620. "200": {
  4621. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  4622. "schema": {
  4623. "type": "string"
  4624. }
  4625. }
  4626. }
  4627. }
  4628. },
  4629. "/sysExportTemplate/deleteSysExportTemplate": {
  4630. "delete": {
  4631. "security": [
  4632. {
  4633. "ApiKeyAuth": []
  4634. }
  4635. ],
  4636. "consumes": [
  4637. "application/json"
  4638. ],
  4639. "produces": [
  4640. "application/json"
  4641. ],
  4642. "tags": [
  4643. "SysExportTemplate"
  4644. ],
  4645. "summary": "删除导出模板",
  4646. "parameters": [
  4647. {
  4648. "description": "删除导出模板",
  4649. "name": "data",
  4650. "in": "body",
  4651. "required": true,
  4652. "schema": {
  4653. "$ref": "#/definitions/system.SysExportTemplate"
  4654. }
  4655. }
  4656. ],
  4657. "responses": {
  4658. "200": {
  4659. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  4660. "schema": {
  4661. "type": "string"
  4662. }
  4663. }
  4664. }
  4665. }
  4666. },
  4667. "/sysExportTemplate/deleteSysExportTemplateByIds": {
  4668. "delete": {
  4669. "security": [
  4670. {
  4671. "ApiKeyAuth": []
  4672. }
  4673. ],
  4674. "consumes": [
  4675. "application/json"
  4676. ],
  4677. "produces": [
  4678. "application/json"
  4679. ],
  4680. "tags": [
  4681. "SysExportTemplate"
  4682. ],
  4683. "summary": "批量删除导出模板",
  4684. "parameters": [
  4685. {
  4686. "description": "批量删除导出模板",
  4687. "name": "data",
  4688. "in": "body",
  4689. "required": true,
  4690. "schema": {
  4691. "$ref": "#/definitions/request.IdsReq"
  4692. }
  4693. }
  4694. ],
  4695. "responses": {
  4696. "200": {
  4697. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  4698. "schema": {
  4699. "type": "string"
  4700. }
  4701. }
  4702. }
  4703. }
  4704. },
  4705. "/sysExportTemplate/exportExcel": {
  4706. "get": {
  4707. "security": [
  4708. {
  4709. "ApiKeyAuth": []
  4710. }
  4711. ],
  4712. "consumes": [
  4713. "application/json"
  4714. ],
  4715. "produces": [
  4716. "application/json"
  4717. ],
  4718. "tags": [
  4719. "SysExportTemplate"
  4720. ],
  4721. "summary": "导出表格",
  4722. "responses": {}
  4723. }
  4724. },
  4725. "/sysExportTemplate/findSysExportTemplate": {
  4726. "get": {
  4727. "security": [
  4728. {
  4729. "ApiKeyAuth": []
  4730. }
  4731. ],
  4732. "consumes": [
  4733. "application/json"
  4734. ],
  4735. "produces": [
  4736. "application/json"
  4737. ],
  4738. "tags": [
  4739. "SysExportTemplate"
  4740. ],
  4741. "summary": "用id查询导出模板",
  4742. "parameters": [
  4743. {
  4744. "type": "integer",
  4745. "description": "主键ID",
  4746. "name": "ID",
  4747. "in": "query"
  4748. },
  4749. {
  4750. "type": "string",
  4751. "description": "创建时间",
  4752. "name": "createdAt",
  4753. "in": "query"
  4754. },
  4755. {
  4756. "type": "string",
  4757. "description": "数据库名称",
  4758. "name": "dbName",
  4759. "in": "query"
  4760. },
  4761. {
  4762. "type": "integer",
  4763. "name": "limit",
  4764. "in": "query"
  4765. },
  4766. {
  4767. "type": "string",
  4768. "description": "模板名称",
  4769. "name": "name",
  4770. "in": "query"
  4771. },
  4772. {
  4773. "type": "string",
  4774. "name": "order",
  4775. "in": "query"
  4776. },
  4777. {
  4778. "type": "string",
  4779. "description": "表名称",
  4780. "name": "tableName",
  4781. "in": "query"
  4782. },
  4783. {
  4784. "type": "string",
  4785. "description": "模板标识",
  4786. "name": "templateID",
  4787. "in": "query"
  4788. },
  4789. {
  4790. "type": "string",
  4791. "description": "模板信息",
  4792. "name": "templateInfo",
  4793. "in": "query"
  4794. },
  4795. {
  4796. "type": "string",
  4797. "description": "更新时间",
  4798. "name": "updatedAt",
  4799. "in": "query"
  4800. }
  4801. ],
  4802. "responses": {
  4803. "200": {
  4804. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  4805. "schema": {
  4806. "type": "string"
  4807. }
  4808. }
  4809. }
  4810. }
  4811. },
  4812. "/sysExportTemplate/getSysExportTemplateList": {
  4813. "get": {
  4814. "security": [
  4815. {
  4816. "ApiKeyAuth": []
  4817. }
  4818. ],
  4819. "consumes": [
  4820. "application/json"
  4821. ],
  4822. "produces": [
  4823. "application/json"
  4824. ],
  4825. "tags": [
  4826. "SysExportTemplate"
  4827. ],
  4828. "summary": "分页获取导出模板列表",
  4829. "parameters": [
  4830. {
  4831. "type": "integer",
  4832. "description": "主键ID",
  4833. "name": "ID",
  4834. "in": "query"
  4835. },
  4836. {
  4837. "type": "string",
  4838. "description": "创建时间",
  4839. "name": "createdAt",
  4840. "in": "query"
  4841. },
  4842. {
  4843. "type": "string",
  4844. "description": "数据库名称",
  4845. "name": "dbName",
  4846. "in": "query"
  4847. },
  4848. {
  4849. "type": "string",
  4850. "name": "endCreatedAt",
  4851. "in": "query"
  4852. },
  4853. {
  4854. "type": "string",
  4855. "description": "关键字",
  4856. "name": "keyword",
  4857. "in": "query"
  4858. },
  4859. {
  4860. "type": "integer",
  4861. "name": "limit",
  4862. "in": "query"
  4863. },
  4864. {
  4865. "type": "string",
  4866. "description": "模板名称",
  4867. "name": "name",
  4868. "in": "query"
  4869. },
  4870. {
  4871. "type": "string",
  4872. "name": "order",
  4873. "in": "query"
  4874. },
  4875. {
  4876. "type": "integer",
  4877. "description": "页码",
  4878. "name": "page",
  4879. "in": "query"
  4880. },
  4881. {
  4882. "type": "integer",
  4883. "description": "每页大小",
  4884. "name": "pageSize",
  4885. "in": "query"
  4886. },
  4887. {
  4888. "type": "string",
  4889. "name": "startCreatedAt",
  4890. "in": "query"
  4891. },
  4892. {
  4893. "type": "string",
  4894. "description": "表名称",
  4895. "name": "tableName",
  4896. "in": "query"
  4897. },
  4898. {
  4899. "type": "string",
  4900. "description": "模板标识",
  4901. "name": "templateID",
  4902. "in": "query"
  4903. },
  4904. {
  4905. "type": "string",
  4906. "description": "模板信息",
  4907. "name": "templateInfo",
  4908. "in": "query"
  4909. },
  4910. {
  4911. "type": "string",
  4912. "description": "更新时间",
  4913. "name": "updatedAt",
  4914. "in": "query"
  4915. }
  4916. ],
  4917. "responses": {
  4918. "200": {
  4919. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  4920. "schema": {
  4921. "type": "string"
  4922. }
  4923. }
  4924. }
  4925. }
  4926. },
  4927. "/sysExportTemplate/importExcel": {
  4928. "post": {
  4929. "security": [
  4930. {
  4931. "ApiKeyAuth": []
  4932. }
  4933. ],
  4934. "consumes": [
  4935. "application/json"
  4936. ],
  4937. "produces": [
  4938. "application/json"
  4939. ],
  4940. "tags": [
  4941. "SysImportTemplate"
  4942. ],
  4943. "summary": "导入表格",
  4944. "responses": {}
  4945. }
  4946. },
  4947. "/sysExportTemplate/updateSysExportTemplate": {
  4948. "put": {
  4949. "security": [
  4950. {
  4951. "ApiKeyAuth": []
  4952. }
  4953. ],
  4954. "consumes": [
  4955. "application/json"
  4956. ],
  4957. "produces": [
  4958. "application/json"
  4959. ],
  4960. "tags": [
  4961. "SysExportTemplate"
  4962. ],
  4963. "summary": "更新导出模板",
  4964. "parameters": [
  4965. {
  4966. "description": "更新导出模板",
  4967. "name": "data",
  4968. "in": "body",
  4969. "required": true,
  4970. "schema": {
  4971. "$ref": "#/definitions/system.SysExportTemplate"
  4972. }
  4973. }
  4974. ],
  4975. "responses": {
  4976. "200": {
  4977. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  4978. "schema": {
  4979. "type": "string"
  4980. }
  4981. }
  4982. }
  4983. }
  4984. },
  4985. "/sysOperationRecord/createSysOperationRecord": {
  4986. "post": {
  4987. "security": [
  4988. {
  4989. "ApiKeyAuth": []
  4990. }
  4991. ],
  4992. "consumes": [
  4993. "application/json"
  4994. ],
  4995. "produces": [
  4996. "application/json"
  4997. ],
  4998. "tags": [
  4999. "SysOperationRecord"
  5000. ],
  5001. "summary": "创建SysOperationRecord",
  5002. "parameters": [
  5003. {
  5004. "description": "创建SysOperationRecord",
  5005. "name": "data",
  5006. "in": "body",
  5007. "required": true,
  5008. "schema": {
  5009. "$ref": "#/definitions/system.SysOperationRecord"
  5010. }
  5011. }
  5012. ],
  5013. "responses": {
  5014. "200": {
  5015. "description": "创建SysOperationRecord",
  5016. "schema": {
  5017. "allOf": [
  5018. {
  5019. "$ref": "#/definitions/response.Response"
  5020. },
  5021. {
  5022. "type": "object",
  5023. "properties": {
  5024. "msg": {
  5025. "type": "string"
  5026. }
  5027. }
  5028. }
  5029. ]
  5030. }
  5031. }
  5032. }
  5033. }
  5034. },
  5035. "/sysOperationRecord/deleteSysOperationRecord": {
  5036. "delete": {
  5037. "security": [
  5038. {
  5039. "ApiKeyAuth": []
  5040. }
  5041. ],
  5042. "consumes": [
  5043. "application/json"
  5044. ],
  5045. "produces": [
  5046. "application/json"
  5047. ],
  5048. "tags": [
  5049. "SysOperationRecord"
  5050. ],
  5051. "summary": "删除SysOperationRecord",
  5052. "parameters": [
  5053. {
  5054. "description": "SysOperationRecord模型",
  5055. "name": "data",
  5056. "in": "body",
  5057. "required": true,
  5058. "schema": {
  5059. "$ref": "#/definitions/system.SysOperationRecord"
  5060. }
  5061. }
  5062. ],
  5063. "responses": {
  5064. "200": {
  5065. "description": "删除SysOperationRecord",
  5066. "schema": {
  5067. "allOf": [
  5068. {
  5069. "$ref": "#/definitions/response.Response"
  5070. },
  5071. {
  5072. "type": "object",
  5073. "properties": {
  5074. "msg": {
  5075. "type": "string"
  5076. }
  5077. }
  5078. }
  5079. ]
  5080. }
  5081. }
  5082. }
  5083. }
  5084. },
  5085. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  5086. "delete": {
  5087. "security": [
  5088. {
  5089. "ApiKeyAuth": []
  5090. }
  5091. ],
  5092. "consumes": [
  5093. "application/json"
  5094. ],
  5095. "produces": [
  5096. "application/json"
  5097. ],
  5098. "tags": [
  5099. "SysOperationRecord"
  5100. ],
  5101. "summary": "批量删除SysOperationRecord",
  5102. "parameters": [
  5103. {
  5104. "description": "批量删除SysOperationRecord",
  5105. "name": "data",
  5106. "in": "body",
  5107. "required": true,
  5108. "schema": {
  5109. "$ref": "#/definitions/request.IdsReq"
  5110. }
  5111. }
  5112. ],
  5113. "responses": {
  5114. "200": {
  5115. "description": "批量删除SysOperationRecord",
  5116. "schema": {
  5117. "allOf": [
  5118. {
  5119. "$ref": "#/definitions/response.Response"
  5120. },
  5121. {
  5122. "type": "object",
  5123. "properties": {
  5124. "msg": {
  5125. "type": "string"
  5126. }
  5127. }
  5128. }
  5129. ]
  5130. }
  5131. }
  5132. }
  5133. }
  5134. },
  5135. "/sysOperationRecord/findSysOperationRecord": {
  5136. "get": {
  5137. "security": [
  5138. {
  5139. "ApiKeyAuth": []
  5140. }
  5141. ],
  5142. "consumes": [
  5143. "application/json"
  5144. ],
  5145. "produces": [
  5146. "application/json"
  5147. ],
  5148. "tags": [
  5149. "SysOperationRecord"
  5150. ],
  5151. "summary": "用id查询SysOperationRecord",
  5152. "parameters": [
  5153. {
  5154. "type": "integer",
  5155. "description": "主键ID",
  5156. "name": "ID",
  5157. "in": "query"
  5158. },
  5159. {
  5160. "type": "string",
  5161. "description": "代理",
  5162. "name": "agent",
  5163. "in": "query"
  5164. },
  5165. {
  5166. "type": "string",
  5167. "description": "请求Body",
  5168. "name": "body",
  5169. "in": "query"
  5170. },
  5171. {
  5172. "type": "string",
  5173. "description": "创建时间",
  5174. "name": "createdAt",
  5175. "in": "query"
  5176. },
  5177. {
  5178. "type": "string",
  5179. "description": "错误信息",
  5180. "name": "error_message",
  5181. "in": "query"
  5182. },
  5183. {
  5184. "type": "string",
  5185. "description": "请求ip",
  5186. "name": "ip",
  5187. "in": "query"
  5188. },
  5189. {
  5190. "type": "string",
  5191. "description": "延迟",
  5192. "name": "latency",
  5193. "in": "query"
  5194. },
  5195. {
  5196. "type": "string",
  5197. "description": "请求方法",
  5198. "name": "method",
  5199. "in": "query"
  5200. },
  5201. {
  5202. "type": "string",
  5203. "description": "请求路径",
  5204. "name": "path",
  5205. "in": "query"
  5206. },
  5207. {
  5208. "type": "string",
  5209. "description": "响应Body",
  5210. "name": "resp",
  5211. "in": "query"
  5212. },
  5213. {
  5214. "type": "integer",
  5215. "description": "请求状态",
  5216. "name": "status",
  5217. "in": "query"
  5218. },
  5219. {
  5220. "type": "string",
  5221. "description": "更新时间",
  5222. "name": "updatedAt",
  5223. "in": "query"
  5224. },
  5225. {
  5226. "type": "integer",
  5227. "description": "用户id",
  5228. "name": "user_id",
  5229. "in": "query"
  5230. }
  5231. ],
  5232. "responses": {
  5233. "200": {
  5234. "description": "用id查询SysOperationRecord",
  5235. "schema": {
  5236. "allOf": [
  5237. {
  5238. "$ref": "#/definitions/response.Response"
  5239. },
  5240. {
  5241. "type": "object",
  5242. "properties": {
  5243. "data": {
  5244. "type": "object",
  5245. "additionalProperties": true
  5246. },
  5247. "msg": {
  5248. "type": "string"
  5249. }
  5250. }
  5251. }
  5252. ]
  5253. }
  5254. }
  5255. }
  5256. }
  5257. },
  5258. "/sysOperationRecord/getSysOperationRecordList": {
  5259. "get": {
  5260. "security": [
  5261. {
  5262. "ApiKeyAuth": []
  5263. }
  5264. ],
  5265. "consumes": [
  5266. "application/json"
  5267. ],
  5268. "produces": [
  5269. "application/json"
  5270. ],
  5271. "tags": [
  5272. "SysOperationRecord"
  5273. ],
  5274. "summary": "分页获取SysOperationRecord列表",
  5275. "parameters": [
  5276. {
  5277. "type": "integer",
  5278. "description": "主键ID",
  5279. "name": "ID",
  5280. "in": "query"
  5281. },
  5282. {
  5283. "type": "string",
  5284. "description": "代理",
  5285. "name": "agent",
  5286. "in": "query"
  5287. },
  5288. {
  5289. "type": "string",
  5290. "description": "请求Body",
  5291. "name": "body",
  5292. "in": "query"
  5293. },
  5294. {
  5295. "type": "string",
  5296. "description": "创建时间",
  5297. "name": "createdAt",
  5298. "in": "query"
  5299. },
  5300. {
  5301. "type": "string",
  5302. "description": "错误信息",
  5303. "name": "error_message",
  5304. "in": "query"
  5305. },
  5306. {
  5307. "type": "string",
  5308. "description": "请求ip",
  5309. "name": "ip",
  5310. "in": "query"
  5311. },
  5312. {
  5313. "type": "string",
  5314. "description": "关键字",
  5315. "name": "keyword",
  5316. "in": "query"
  5317. },
  5318. {
  5319. "type": "string",
  5320. "description": "延迟",
  5321. "name": "latency",
  5322. "in": "query"
  5323. },
  5324. {
  5325. "type": "string",
  5326. "description": "请求方法",
  5327. "name": "method",
  5328. "in": "query"
  5329. },
  5330. {
  5331. "type": "integer",
  5332. "description": "页码",
  5333. "name": "page",
  5334. "in": "query"
  5335. },
  5336. {
  5337. "type": "integer",
  5338. "description": "每页大小",
  5339. "name": "pageSize",
  5340. "in": "query"
  5341. },
  5342. {
  5343. "type": "string",
  5344. "description": "请求路径",
  5345. "name": "path",
  5346. "in": "query"
  5347. },
  5348. {
  5349. "type": "string",
  5350. "description": "响应Body",
  5351. "name": "resp",
  5352. "in": "query"
  5353. },
  5354. {
  5355. "type": "integer",
  5356. "description": "请求状态",
  5357. "name": "status",
  5358. "in": "query"
  5359. },
  5360. {
  5361. "type": "string",
  5362. "description": "更新时间",
  5363. "name": "updatedAt",
  5364. "in": "query"
  5365. },
  5366. {
  5367. "type": "integer",
  5368. "description": "用户id",
  5369. "name": "user_id",
  5370. "in": "query"
  5371. }
  5372. ],
  5373. "responses": {
  5374. "200": {
  5375. "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量",
  5376. "schema": {
  5377. "allOf": [
  5378. {
  5379. "$ref": "#/definitions/response.Response"
  5380. },
  5381. {
  5382. "type": "object",
  5383. "properties": {
  5384. "data": {
  5385. "$ref": "#/definitions/response.PageResult"
  5386. },
  5387. "msg": {
  5388. "type": "string"
  5389. }
  5390. }
  5391. }
  5392. ]
  5393. }
  5394. }
  5395. }
  5396. }
  5397. },
  5398. "/sysParams/createSysParams": {
  5399. "post": {
  5400. "security": [
  5401. {
  5402. "ApiKeyAuth": []
  5403. }
  5404. ],
  5405. "consumes": [
  5406. "application/json"
  5407. ],
  5408. "produces": [
  5409. "application/json"
  5410. ],
  5411. "tags": [
  5412. "SysParams"
  5413. ],
  5414. "summary": "创建参数",
  5415. "parameters": [
  5416. {
  5417. "description": "创建参数",
  5418. "name": "data",
  5419. "in": "body",
  5420. "required": true,
  5421. "schema": {
  5422. "$ref": "#/definitions/system.SysParams"
  5423. }
  5424. }
  5425. ],
  5426. "responses": {
  5427. "200": {
  5428. "description": "创建成功",
  5429. "schema": {
  5430. "allOf": [
  5431. {
  5432. "$ref": "#/definitions/response.Response"
  5433. },
  5434. {
  5435. "type": "object",
  5436. "properties": {
  5437. "msg": {
  5438. "type": "string"
  5439. }
  5440. }
  5441. }
  5442. ]
  5443. }
  5444. }
  5445. }
  5446. }
  5447. },
  5448. "/sysParams/deleteSysParams": {
  5449. "delete": {
  5450. "security": [
  5451. {
  5452. "ApiKeyAuth": []
  5453. }
  5454. ],
  5455. "consumes": [
  5456. "application/json"
  5457. ],
  5458. "produces": [
  5459. "application/json"
  5460. ],
  5461. "tags": [
  5462. "SysParams"
  5463. ],
  5464. "summary": "删除参数",
  5465. "parameters": [
  5466. {
  5467. "description": "删除参数",
  5468. "name": "data",
  5469. "in": "body",
  5470. "required": true,
  5471. "schema": {
  5472. "$ref": "#/definitions/system.SysParams"
  5473. }
  5474. }
  5475. ],
  5476. "responses": {
  5477. "200": {
  5478. "description": "删除成功",
  5479. "schema": {
  5480. "allOf": [
  5481. {
  5482. "$ref": "#/definitions/response.Response"
  5483. },
  5484. {
  5485. "type": "object",
  5486. "properties": {
  5487. "msg": {
  5488. "type": "string"
  5489. }
  5490. }
  5491. }
  5492. ]
  5493. }
  5494. }
  5495. }
  5496. }
  5497. },
  5498. "/sysParams/deleteSysParamsByIds": {
  5499. "delete": {
  5500. "security": [
  5501. {
  5502. "ApiKeyAuth": []
  5503. }
  5504. ],
  5505. "consumes": [
  5506. "application/json"
  5507. ],
  5508. "produces": [
  5509. "application/json"
  5510. ],
  5511. "tags": [
  5512. "SysParams"
  5513. ],
  5514. "summary": "批量删除参数",
  5515. "responses": {
  5516. "200": {
  5517. "description": "批量删除成功",
  5518. "schema": {
  5519. "allOf": [
  5520. {
  5521. "$ref": "#/definitions/response.Response"
  5522. },
  5523. {
  5524. "type": "object",
  5525. "properties": {
  5526. "msg": {
  5527. "type": "string"
  5528. }
  5529. }
  5530. }
  5531. ]
  5532. }
  5533. }
  5534. }
  5535. }
  5536. },
  5537. "/sysParams/findSysParams": {
  5538. "get": {
  5539. "security": [
  5540. {
  5541. "ApiKeyAuth": []
  5542. }
  5543. ],
  5544. "consumes": [
  5545. "application/json"
  5546. ],
  5547. "produces": [
  5548. "application/json"
  5549. ],
  5550. "tags": [
  5551. "SysParams"
  5552. ],
  5553. "summary": "用id查询参数",
  5554. "parameters": [
  5555. {
  5556. "type": "integer",
  5557. "description": "主键ID",
  5558. "name": "ID",
  5559. "in": "query"
  5560. },
  5561. {
  5562. "type": "string",
  5563. "description": "创建时间",
  5564. "name": "createdAt",
  5565. "in": "query"
  5566. },
  5567. {
  5568. "type": "string",
  5569. "description": "参数说明",
  5570. "name": "desc",
  5571. "in": "query"
  5572. },
  5573. {
  5574. "type": "string",
  5575. "description": "参数键",
  5576. "name": "key",
  5577. "in": "query",
  5578. "required": true
  5579. },
  5580. {
  5581. "type": "string",
  5582. "description": "参数名称",
  5583. "name": "name",
  5584. "in": "query",
  5585. "required": true
  5586. },
  5587. {
  5588. "type": "string",
  5589. "description": "更新时间",
  5590. "name": "updatedAt",
  5591. "in": "query"
  5592. },
  5593. {
  5594. "type": "string",
  5595. "description": "参数值",
  5596. "name": "value",
  5597. "in": "query",
  5598. "required": true
  5599. }
  5600. ],
  5601. "responses": {
  5602. "200": {
  5603. "description": "查询成功",
  5604. "schema": {
  5605. "allOf": [
  5606. {
  5607. "$ref": "#/definitions/response.Response"
  5608. },
  5609. {
  5610. "type": "object",
  5611. "properties": {
  5612. "data": {
  5613. "$ref": "#/definitions/system.SysParams"
  5614. },
  5615. "msg": {
  5616. "type": "string"
  5617. }
  5618. }
  5619. }
  5620. ]
  5621. }
  5622. }
  5623. }
  5624. }
  5625. },
  5626. "/sysParams/getSysParam": {
  5627. "get": {
  5628. "security": [
  5629. {
  5630. "ApiKeyAuth": []
  5631. }
  5632. ],
  5633. "consumes": [
  5634. "application/json"
  5635. ],
  5636. "produces": [
  5637. "application/json"
  5638. ],
  5639. "tags": [
  5640. "SysParams"
  5641. ],
  5642. "summary": "根据key获取参数value",
  5643. "parameters": [
  5644. {
  5645. "type": "string",
  5646. "description": "key",
  5647. "name": "key",
  5648. "in": "query",
  5649. "required": true
  5650. }
  5651. ],
  5652. "responses": {
  5653. "200": {
  5654. "description": "获取成功",
  5655. "schema": {
  5656. "allOf": [
  5657. {
  5658. "$ref": "#/definitions/response.Response"
  5659. },
  5660. {
  5661. "type": "object",
  5662. "properties": {
  5663. "data": {
  5664. "$ref": "#/definitions/system.SysParams"
  5665. },
  5666. "msg": {
  5667. "type": "string"
  5668. }
  5669. }
  5670. }
  5671. ]
  5672. }
  5673. }
  5674. }
  5675. }
  5676. },
  5677. "/sysParams/getSysParamsList": {
  5678. "get": {
  5679. "security": [
  5680. {
  5681. "ApiKeyAuth": []
  5682. }
  5683. ],
  5684. "consumes": [
  5685. "application/json"
  5686. ],
  5687. "produces": [
  5688. "application/json"
  5689. ],
  5690. "tags": [
  5691. "SysParams"
  5692. ],
  5693. "summary": "分页获取参数列表",
  5694. "parameters": [
  5695. {
  5696. "type": "string",
  5697. "name": "endCreatedAt",
  5698. "in": "query"
  5699. },
  5700. {
  5701. "type": "string",
  5702. "name": "key",
  5703. "in": "query"
  5704. },
  5705. {
  5706. "type": "string",
  5707. "description": "关键字",
  5708. "name": "keyword",
  5709. "in": "query"
  5710. },
  5711. {
  5712. "type": "string",
  5713. "name": "name",
  5714. "in": "query"
  5715. },
  5716. {
  5717. "type": "integer",
  5718. "description": "页码",
  5719. "name": "page",
  5720. "in": "query"
  5721. },
  5722. {
  5723. "type": "integer",
  5724. "description": "每页大小",
  5725. "name": "pageSize",
  5726. "in": "query"
  5727. },
  5728. {
  5729. "type": "string",
  5730. "name": "startCreatedAt",
  5731. "in": "query"
  5732. }
  5733. ],
  5734. "responses": {
  5735. "200": {
  5736. "description": "获取成功",
  5737. "schema": {
  5738. "allOf": [
  5739. {
  5740. "$ref": "#/definitions/response.Response"
  5741. },
  5742. {
  5743. "type": "object",
  5744. "properties": {
  5745. "data": {
  5746. "$ref": "#/definitions/response.PageResult"
  5747. },
  5748. "msg": {
  5749. "type": "string"
  5750. }
  5751. }
  5752. }
  5753. ]
  5754. }
  5755. }
  5756. }
  5757. }
  5758. },
  5759. "/sysParams/updateSysParams": {
  5760. "put": {
  5761. "security": [
  5762. {
  5763. "ApiKeyAuth": []
  5764. }
  5765. ],
  5766. "consumes": [
  5767. "application/json"
  5768. ],
  5769. "produces": [
  5770. "application/json"
  5771. ],
  5772. "tags": [
  5773. "SysParams"
  5774. ],
  5775. "summary": "更新参数",
  5776. "parameters": [
  5777. {
  5778. "description": "更新参数",
  5779. "name": "data",
  5780. "in": "body",
  5781. "required": true,
  5782. "schema": {
  5783. "$ref": "#/definitions/system.SysParams"
  5784. }
  5785. }
  5786. ],
  5787. "responses": {
  5788. "200": {
  5789. "description": "更新成功",
  5790. "schema": {
  5791. "allOf": [
  5792. {
  5793. "$ref": "#/definitions/response.Response"
  5794. },
  5795. {
  5796. "type": "object",
  5797. "properties": {
  5798. "msg": {
  5799. "type": "string"
  5800. }
  5801. }
  5802. }
  5803. ]
  5804. }
  5805. }
  5806. }
  5807. }
  5808. },
  5809. "/system/getServerInfo": {
  5810. "post": {
  5811. "security": [
  5812. {
  5813. "ApiKeyAuth": []
  5814. }
  5815. ],
  5816. "produces": [
  5817. "application/json"
  5818. ],
  5819. "tags": [
  5820. "System"
  5821. ],
  5822. "summary": "获取服务器信息",
  5823. "responses": {
  5824. "200": {
  5825. "description": "获取服务器信息",
  5826. "schema": {
  5827. "allOf": [
  5828. {
  5829. "$ref": "#/definitions/response.Response"
  5830. },
  5831. {
  5832. "type": "object",
  5833. "properties": {
  5834. "data": {
  5835. "type": "object",
  5836. "additionalProperties": true
  5837. },
  5838. "msg": {
  5839. "type": "string"
  5840. }
  5841. }
  5842. }
  5843. ]
  5844. }
  5845. }
  5846. }
  5847. }
  5848. },
  5849. "/system/getSystemConfig": {
  5850. "post": {
  5851. "security": [
  5852. {
  5853. "ApiKeyAuth": []
  5854. }
  5855. ],
  5856. "produces": [
  5857. "application/json"
  5858. ],
  5859. "tags": [
  5860. "System"
  5861. ],
  5862. "summary": "获取配置文件内容",
  5863. "responses": {
  5864. "200": {
  5865. "description": "获取配置文件内容,返回包括系统配置",
  5866. "schema": {
  5867. "allOf": [
  5868. {
  5869. "$ref": "#/definitions/response.Response"
  5870. },
  5871. {
  5872. "type": "object",
  5873. "properties": {
  5874. "data": {
  5875. "$ref": "#/definitions/response.SysConfigResponse"
  5876. },
  5877. "msg": {
  5878. "type": "string"
  5879. }
  5880. }
  5881. }
  5882. ]
  5883. }
  5884. }
  5885. }
  5886. }
  5887. },
  5888. "/system/reloadSystem": {
  5889. "post": {
  5890. "security": [
  5891. {
  5892. "ApiKeyAuth": []
  5893. }
  5894. ],
  5895. "produces": [
  5896. "application/json"
  5897. ],
  5898. "tags": [
  5899. "System"
  5900. ],
  5901. "summary": "重启系统",
  5902. "responses": {
  5903. "200": {
  5904. "description": "重启系统",
  5905. "schema": {
  5906. "allOf": [
  5907. {
  5908. "$ref": "#/definitions/response.Response"
  5909. },
  5910. {
  5911. "type": "object",
  5912. "properties": {
  5913. "msg": {
  5914. "type": "string"
  5915. }
  5916. }
  5917. }
  5918. ]
  5919. }
  5920. }
  5921. }
  5922. }
  5923. },
  5924. "/system/setSystemConfig": {
  5925. "post": {
  5926. "security": [
  5927. {
  5928. "ApiKeyAuth": []
  5929. }
  5930. ],
  5931. "produces": [
  5932. "application/json"
  5933. ],
  5934. "tags": [
  5935. "System"
  5936. ],
  5937. "summary": "设置配置文件内容",
  5938. "parameters": [
  5939. {
  5940. "description": "设置配置文件内容",
  5941. "name": "data",
  5942. "in": "body",
  5943. "required": true,
  5944. "schema": {
  5945. "$ref": "#/definitions/system.System"
  5946. }
  5947. }
  5948. ],
  5949. "responses": {
  5950. "200": {
  5951. "description": "设置配置文件内容",
  5952. "schema": {
  5953. "allOf": [
  5954. {
  5955. "$ref": "#/definitions/response.Response"
  5956. },
  5957. {
  5958. "type": "object",
  5959. "properties": {
  5960. "data": {
  5961. "type": "string"
  5962. }
  5963. }
  5964. }
  5965. ]
  5966. }
  5967. }
  5968. }
  5969. }
  5970. },
  5971. "/user/SetSelfInfo": {
  5972. "put": {
  5973. "security": [
  5974. {
  5975. "ApiKeyAuth": []
  5976. }
  5977. ],
  5978. "consumes": [
  5979. "application/json"
  5980. ],
  5981. "produces": [
  5982. "application/json"
  5983. ],
  5984. "tags": [
  5985. "SysUser"
  5986. ],
  5987. "summary": "设置用户信息",
  5988. "parameters": [
  5989. {
  5990. "description": "ID, 用户名, 昵称, 头像链接",
  5991. "name": "data",
  5992. "in": "body",
  5993. "required": true,
  5994. "schema": {
  5995. "$ref": "#/definitions/system.SysUser"
  5996. }
  5997. }
  5998. ],
  5999. "responses": {
  6000. "200": {
  6001. "description": "设置用户信息",
  6002. "schema": {
  6003. "allOf": [
  6004. {
  6005. "$ref": "#/definitions/response.Response"
  6006. },
  6007. {
  6008. "type": "object",
  6009. "properties": {
  6010. "data": {
  6011. "type": "object",
  6012. "additionalProperties": true
  6013. },
  6014. "msg": {
  6015. "type": "string"
  6016. }
  6017. }
  6018. }
  6019. ]
  6020. }
  6021. }
  6022. }
  6023. }
  6024. },
  6025. "/user/SetSelfSetting": {
  6026. "put": {
  6027. "security": [
  6028. {
  6029. "ApiKeyAuth": []
  6030. }
  6031. ],
  6032. "consumes": [
  6033. "application/json"
  6034. ],
  6035. "produces": [
  6036. "application/json"
  6037. ],
  6038. "tags": [
  6039. "SysUser"
  6040. ],
  6041. "summary": "设置用户配置",
  6042. "parameters": [
  6043. {
  6044. "description": "用户配置数据",
  6045. "name": "data",
  6046. "in": "body",
  6047. "required": true,
  6048. "schema": {
  6049. "type": "object",
  6050. "additionalProperties": true
  6051. }
  6052. }
  6053. ],
  6054. "responses": {
  6055. "200": {
  6056. "description": "设置用户配置",
  6057. "schema": {
  6058. "allOf": [
  6059. {
  6060. "$ref": "#/definitions/response.Response"
  6061. },
  6062. {
  6063. "type": "object",
  6064. "properties": {
  6065. "data": {
  6066. "type": "object",
  6067. "additionalProperties": true
  6068. },
  6069. "msg": {
  6070. "type": "string"
  6071. }
  6072. }
  6073. }
  6074. ]
  6075. }
  6076. }
  6077. }
  6078. }
  6079. },
  6080. "/user/admin_register": {
  6081. "post": {
  6082. "produces": [
  6083. "application/json"
  6084. ],
  6085. "tags": [
  6086. "SysUser"
  6087. ],
  6088. "summary": "用户注册账号",
  6089. "parameters": [
  6090. {
  6091. "description": "用户名, 昵称, 密码, 角色ID",
  6092. "name": "data",
  6093. "in": "body",
  6094. "required": true,
  6095. "schema": {
  6096. "$ref": "#/definitions/request.Register"
  6097. }
  6098. }
  6099. ],
  6100. "responses": {
  6101. "200": {
  6102. "description": "用户注册账号,返回包括用户信息",
  6103. "schema": {
  6104. "allOf": [
  6105. {
  6106. "$ref": "#/definitions/response.Response"
  6107. },
  6108. {
  6109. "type": "object",
  6110. "properties": {
  6111. "data": {
  6112. "$ref": "#/definitions/response.SysUserResponse"
  6113. },
  6114. "msg": {
  6115. "type": "string"
  6116. }
  6117. }
  6118. }
  6119. ]
  6120. }
  6121. }
  6122. }
  6123. }
  6124. },
  6125. "/user/changePassword": {
  6126. "post": {
  6127. "security": [
  6128. {
  6129. "ApiKeyAuth": []
  6130. }
  6131. ],
  6132. "produces": [
  6133. "application/json"
  6134. ],
  6135. "tags": [
  6136. "SysUser"
  6137. ],
  6138. "summary": "用户修改密码",
  6139. "parameters": [
  6140. {
  6141. "description": "用户名, 原密码, 新密码",
  6142. "name": "data",
  6143. "in": "body",
  6144. "required": true,
  6145. "schema": {
  6146. "$ref": "#/definitions/request.ChangePasswordReq"
  6147. }
  6148. }
  6149. ],
  6150. "responses": {
  6151. "200": {
  6152. "description": "用户修改密码",
  6153. "schema": {
  6154. "allOf": [
  6155. {
  6156. "$ref": "#/definitions/response.Response"
  6157. },
  6158. {
  6159. "type": "object",
  6160. "properties": {
  6161. "msg": {
  6162. "type": "string"
  6163. }
  6164. }
  6165. }
  6166. ]
  6167. }
  6168. }
  6169. }
  6170. }
  6171. },
  6172. "/user/deleteUser": {
  6173. "delete": {
  6174. "security": [
  6175. {
  6176. "ApiKeyAuth": []
  6177. }
  6178. ],
  6179. "consumes": [
  6180. "application/json"
  6181. ],
  6182. "produces": [
  6183. "application/json"
  6184. ],
  6185. "tags": [
  6186. "SysUser"
  6187. ],
  6188. "summary": "删除用户",
  6189. "parameters": [
  6190. {
  6191. "description": "用户ID",
  6192. "name": "data",
  6193. "in": "body",
  6194. "required": true,
  6195. "schema": {
  6196. "$ref": "#/definitions/request.GetById"
  6197. }
  6198. }
  6199. ],
  6200. "responses": {
  6201. "200": {
  6202. "description": "删除用户",
  6203. "schema": {
  6204. "allOf": [
  6205. {
  6206. "$ref": "#/definitions/response.Response"
  6207. },
  6208. {
  6209. "type": "object",
  6210. "properties": {
  6211. "msg": {
  6212. "type": "string"
  6213. }
  6214. }
  6215. }
  6216. ]
  6217. }
  6218. }
  6219. }
  6220. }
  6221. },
  6222. "/user/getUserInfo": {
  6223. "get": {
  6224. "security": [
  6225. {
  6226. "ApiKeyAuth": []
  6227. }
  6228. ],
  6229. "consumes": [
  6230. "application/json"
  6231. ],
  6232. "produces": [
  6233. "application/json"
  6234. ],
  6235. "tags": [
  6236. "SysUser"
  6237. ],
  6238. "summary": "获取用户信息",
  6239. "responses": {
  6240. "200": {
  6241. "description": "获取用户信息",
  6242. "schema": {
  6243. "allOf": [
  6244. {
  6245. "$ref": "#/definitions/response.Response"
  6246. },
  6247. {
  6248. "type": "object",
  6249. "properties": {
  6250. "data": {
  6251. "type": "object",
  6252. "additionalProperties": true
  6253. },
  6254. "msg": {
  6255. "type": "string"
  6256. }
  6257. }
  6258. }
  6259. ]
  6260. }
  6261. }
  6262. }
  6263. }
  6264. },
  6265. "/user/getUserList": {
  6266. "post": {
  6267. "security": [
  6268. {
  6269. "ApiKeyAuth": []
  6270. }
  6271. ],
  6272. "consumes": [
  6273. "application/json"
  6274. ],
  6275. "produces": [
  6276. "application/json"
  6277. ],
  6278. "tags": [
  6279. "SysUser"
  6280. ],
  6281. "summary": "分页获取用户列表",
  6282. "parameters": [
  6283. {
  6284. "description": "页码, 每页大小",
  6285. "name": "data",
  6286. "in": "body",
  6287. "required": true,
  6288. "schema": {
  6289. "$ref": "#/definitions/request.GetUserList"
  6290. }
  6291. }
  6292. ],
  6293. "responses": {
  6294. "200": {
  6295. "description": "分页获取用户列表,返回包括列表,总数,页码,每页数量",
  6296. "schema": {
  6297. "allOf": [
  6298. {
  6299. "$ref": "#/definitions/response.Response"
  6300. },
  6301. {
  6302. "type": "object",
  6303. "properties": {
  6304. "data": {
  6305. "$ref": "#/definitions/response.PageResult"
  6306. },
  6307. "msg": {
  6308. "type": "string"
  6309. }
  6310. }
  6311. }
  6312. ]
  6313. }
  6314. }
  6315. }
  6316. }
  6317. },
  6318. "/user/resetPassword": {
  6319. "post": {
  6320. "security": [
  6321. {
  6322. "ApiKeyAuth": []
  6323. }
  6324. ],
  6325. "produces": [
  6326. "application/json"
  6327. ],
  6328. "tags": [
  6329. "SysUser"
  6330. ],
  6331. "summary": "重置用户密码",
  6332. "parameters": [
  6333. {
  6334. "description": "ID",
  6335. "name": "data",
  6336. "in": "body",
  6337. "required": true,
  6338. "schema": {
  6339. "$ref": "#/definitions/system.SysUser"
  6340. }
  6341. }
  6342. ],
  6343. "responses": {
  6344. "200": {
  6345. "description": "重置用户密码",
  6346. "schema": {
  6347. "allOf": [
  6348. {
  6349. "$ref": "#/definitions/response.Response"
  6350. },
  6351. {
  6352. "type": "object",
  6353. "properties": {
  6354. "msg": {
  6355. "type": "string"
  6356. }
  6357. }
  6358. }
  6359. ]
  6360. }
  6361. }
  6362. }
  6363. }
  6364. },
  6365. "/user/setUserAuthorities": {
  6366. "post": {
  6367. "security": [
  6368. {
  6369. "ApiKeyAuth": []
  6370. }
  6371. ],
  6372. "consumes": [
  6373. "application/json"
  6374. ],
  6375. "produces": [
  6376. "application/json"
  6377. ],
  6378. "tags": [
  6379. "SysUser"
  6380. ],
  6381. "summary": "设置用户权限",
  6382. "parameters": [
  6383. {
  6384. "description": "用户UUID, 角色ID",
  6385. "name": "data",
  6386. "in": "body",
  6387. "required": true,
  6388. "schema": {
  6389. "$ref": "#/definitions/request.SetUserAuthorities"
  6390. }
  6391. }
  6392. ],
  6393. "responses": {
  6394. "200": {
  6395. "description": "设置用户权限",
  6396. "schema": {
  6397. "allOf": [
  6398. {
  6399. "$ref": "#/definitions/response.Response"
  6400. },
  6401. {
  6402. "type": "object",
  6403. "properties": {
  6404. "msg": {
  6405. "type": "string"
  6406. }
  6407. }
  6408. }
  6409. ]
  6410. }
  6411. }
  6412. }
  6413. }
  6414. },
  6415. "/user/setUserAuthority": {
  6416. "post": {
  6417. "security": [
  6418. {
  6419. "ApiKeyAuth": []
  6420. }
  6421. ],
  6422. "consumes": [
  6423. "application/json"
  6424. ],
  6425. "produces": [
  6426. "application/json"
  6427. ],
  6428. "tags": [
  6429. "SysUser"
  6430. ],
  6431. "summary": "更改用户权限",
  6432. "parameters": [
  6433. {
  6434. "description": "用户UUID, 角色ID",
  6435. "name": "data",
  6436. "in": "body",
  6437. "required": true,
  6438. "schema": {
  6439. "$ref": "#/definitions/request.SetUserAuth"
  6440. }
  6441. }
  6442. ],
  6443. "responses": {
  6444. "200": {
  6445. "description": "设置用户权限",
  6446. "schema": {
  6447. "allOf": [
  6448. {
  6449. "$ref": "#/definitions/response.Response"
  6450. },
  6451. {
  6452. "type": "object",
  6453. "properties": {
  6454. "msg": {
  6455. "type": "string"
  6456. }
  6457. }
  6458. }
  6459. ]
  6460. }
  6461. }
  6462. }
  6463. }
  6464. },
  6465. "/user/setUserInfo": {
  6466. "put": {
  6467. "security": [
  6468. {
  6469. "ApiKeyAuth": []
  6470. }
  6471. ],
  6472. "consumes": [
  6473. "application/json"
  6474. ],
  6475. "produces": [
  6476. "application/json"
  6477. ],
  6478. "tags": [
  6479. "SysUser"
  6480. ],
  6481. "summary": "设置用户信息",
  6482. "parameters": [
  6483. {
  6484. "description": "ID, 用户名, 昵称, 头像链接",
  6485. "name": "data",
  6486. "in": "body",
  6487. "required": true,
  6488. "schema": {
  6489. "$ref": "#/definitions/system.SysUser"
  6490. }
  6491. }
  6492. ],
  6493. "responses": {
  6494. "200": {
  6495. "description": "设置用户信息",
  6496. "schema": {
  6497. "allOf": [
  6498. {
  6499. "$ref": "#/definitions/response.Response"
  6500. },
  6501. {
  6502. "type": "object",
  6503. "properties": {
  6504. "data": {
  6505. "type": "object",
  6506. "additionalProperties": true
  6507. },
  6508. "msg": {
  6509. "type": "string"
  6510. }
  6511. }
  6512. }
  6513. ]
  6514. }
  6515. }
  6516. }
  6517. }
  6518. }
  6519. },
  6520. "definitions": {
  6521. "common.JSONMap": {
  6522. "type": "object",
  6523. "additionalProperties": true
  6524. },
  6525. "config.AliyunOSS": {
  6526. "type": "object",
  6527. "properties": {
  6528. "access-key-id": {
  6529. "type": "string"
  6530. },
  6531. "access-key-secret": {
  6532. "type": "string"
  6533. },
  6534. "base-path": {
  6535. "type": "string"
  6536. },
  6537. "bucket-name": {
  6538. "type": "string"
  6539. },
  6540. "bucket-url": {
  6541. "type": "string"
  6542. },
  6543. "endpoint": {
  6544. "type": "string"
  6545. }
  6546. }
  6547. },
  6548. "config.Autocode": {
  6549. "type": "object",
  6550. "properties": {
  6551. "ai-path": {
  6552. "type": "string"
  6553. },
  6554. "module": {
  6555. "type": "string"
  6556. },
  6557. "root": {
  6558. "type": "string"
  6559. },
  6560. "server": {
  6561. "type": "string"
  6562. },
  6563. "web": {
  6564. "type": "string"
  6565. }
  6566. }
  6567. },
  6568. "config.AwsS3": {
  6569. "type": "object",
  6570. "properties": {
  6571. "base-url": {
  6572. "type": "string"
  6573. },
  6574. "bucket": {
  6575. "type": "string"
  6576. },
  6577. "disable-ssl": {
  6578. "type": "boolean"
  6579. },
  6580. "endpoint": {
  6581. "type": "string"
  6582. },
  6583. "path-prefix": {
  6584. "type": "string"
  6585. },
  6586. "region": {
  6587. "type": "string"
  6588. },
  6589. "s3-force-path-style": {
  6590. "type": "boolean"
  6591. },
  6592. "secret-id": {
  6593. "type": "string"
  6594. },
  6595. "secret-key": {
  6596. "type": "string"
  6597. }
  6598. }
  6599. },
  6600. "config.CORS": {
  6601. "type": "object",
  6602. "properties": {
  6603. "mode": {
  6604. "type": "string"
  6605. },
  6606. "whitelist": {
  6607. "type": "array",
  6608. "items": {
  6609. "$ref": "#/definitions/config.CORSWhitelist"
  6610. }
  6611. }
  6612. }
  6613. },
  6614. "config.CORSWhitelist": {
  6615. "type": "object",
  6616. "properties": {
  6617. "allow-credentials": {
  6618. "type": "boolean"
  6619. },
  6620. "allow-headers": {
  6621. "type": "string"
  6622. },
  6623. "allow-methods": {
  6624. "type": "string"
  6625. },
  6626. "allow-origin": {
  6627. "type": "string"
  6628. },
  6629. "expose-headers": {
  6630. "type": "string"
  6631. }
  6632. }
  6633. },
  6634. "config.Captcha": {
  6635. "type": "object",
  6636. "properties": {
  6637. "img-height": {
  6638. "description": "验证码高度",
  6639. "type": "integer"
  6640. },
  6641. "img-width": {
  6642. "description": "验证码宽度",
  6643. "type": "integer"
  6644. },
  6645. "key-long": {
  6646. "description": "验证码长度",
  6647. "type": "integer"
  6648. },
  6649. "open-captcha": {
  6650. "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码",
  6651. "type": "integer"
  6652. },
  6653. "open-captcha-timeout": {
  6654. "description": "防爆破验证码超时时间,单位:s(秒)",
  6655. "type": "integer"
  6656. }
  6657. }
  6658. },
  6659. "config.CloudflareR2": {
  6660. "type": "object",
  6661. "properties": {
  6662. "access-key-id": {
  6663. "type": "string"
  6664. },
  6665. "account-id": {
  6666. "type": "string"
  6667. },
  6668. "base-url": {
  6669. "type": "string"
  6670. },
  6671. "bucket": {
  6672. "type": "string"
  6673. },
  6674. "path": {
  6675. "type": "string"
  6676. },
  6677. "secret-access-key": {
  6678. "type": "string"
  6679. }
  6680. }
  6681. },
  6682. "config.DiskList": {
  6683. "type": "object",
  6684. "properties": {
  6685. "mount-point": {
  6686. "type": "string"
  6687. }
  6688. }
  6689. },
  6690. "config.Excel": {
  6691. "type": "object",
  6692. "properties": {
  6693. "dir": {
  6694. "type": "string"
  6695. }
  6696. }
  6697. },
  6698. "config.HuaWeiObs": {
  6699. "type": "object",
  6700. "properties": {
  6701. "access-key": {
  6702. "type": "string"
  6703. },
  6704. "bucket": {
  6705. "type": "string"
  6706. },
  6707. "endpoint": {
  6708. "type": "string"
  6709. },
  6710. "path": {
  6711. "type": "string"
  6712. },
  6713. "secret-key": {
  6714. "type": "string"
  6715. }
  6716. }
  6717. },
  6718. "config.JWT": {
  6719. "type": "object",
  6720. "properties": {
  6721. "buffer-time": {
  6722. "description": "缓冲时间",
  6723. "type": "string"
  6724. },
  6725. "expires-time": {
  6726. "description": "过期时间",
  6727. "type": "string"
  6728. },
  6729. "issuer": {
  6730. "description": "签发者",
  6731. "type": "string"
  6732. },
  6733. "signing-key": {
  6734. "description": "jwt签名",
  6735. "type": "string"
  6736. }
  6737. }
  6738. },
  6739. "config.Local": {
  6740. "type": "object",
  6741. "properties": {
  6742. "path": {
  6743. "description": "本地文件访问路径",
  6744. "type": "string"
  6745. },
  6746. "store-path": {
  6747. "description": "本地文件存储路径",
  6748. "type": "string"
  6749. }
  6750. }
  6751. },
  6752. "config.Minio": {
  6753. "type": "object",
  6754. "properties": {
  6755. "access-key-id": {
  6756. "type": "string"
  6757. },
  6758. "access-key-secret": {
  6759. "type": "string"
  6760. },
  6761. "base-path": {
  6762. "type": "string"
  6763. },
  6764. "bucket-name": {
  6765. "type": "string"
  6766. },
  6767. "bucket-url": {
  6768. "type": "string"
  6769. },
  6770. "endpoint": {
  6771. "type": "string"
  6772. },
  6773. "use-ssl": {
  6774. "type": "boolean"
  6775. }
  6776. }
  6777. },
  6778. "config.Mongo": {
  6779. "type": "object",
  6780. "properties": {
  6781. "auth-source": {
  6782. "description": "验证数据库",
  6783. "type": "string"
  6784. },
  6785. "coll": {
  6786. "description": "collection name",
  6787. "type": "string"
  6788. },
  6789. "connect-timeout-ms": {
  6790. "description": "连接超时时间",
  6791. "type": "integer"
  6792. },
  6793. "database": {
  6794. "description": "database name",
  6795. "type": "string"
  6796. },
  6797. "hosts": {
  6798. "description": "主机列表",
  6799. "type": "array",
  6800. "items": {
  6801. "$ref": "#/definitions/config.MongoHost"
  6802. }
  6803. },
  6804. "is-zap": {
  6805. "description": "是否开启zap日志",
  6806. "type": "boolean"
  6807. },
  6808. "max-pool-size": {
  6809. "description": "最大连接池",
  6810. "type": "integer"
  6811. },
  6812. "min-pool-size": {
  6813. "description": "最小连接池",
  6814. "type": "integer"
  6815. },
  6816. "options": {
  6817. "description": "mongodb options",
  6818. "type": "string"
  6819. },
  6820. "password": {
  6821. "description": "密码",
  6822. "type": "string"
  6823. },
  6824. "socket-timeout-ms": {
  6825. "description": "socket超时时间",
  6826. "type": "integer"
  6827. },
  6828. "username": {
  6829. "description": "用户名",
  6830. "type": "string"
  6831. }
  6832. }
  6833. },
  6834. "config.MongoHost": {
  6835. "type": "object",
  6836. "properties": {
  6837. "host": {
  6838. "description": "ip地址",
  6839. "type": "string"
  6840. },
  6841. "port": {
  6842. "description": "端口",
  6843. "type": "string"
  6844. }
  6845. }
  6846. },
  6847. "config.Mssql": {
  6848. "type": "object",
  6849. "properties": {
  6850. "config": {
  6851. "description": "高级配置",
  6852. "type": "string"
  6853. },
  6854. "db-name": {
  6855. "description": "数据库名",
  6856. "type": "string"
  6857. },
  6858. "engine": {
  6859. "description": "数据库引擎,默认InnoDB",
  6860. "type": "string",
  6861. "default": "InnoDB"
  6862. },
  6863. "log-mode": {
  6864. "description": "是否开启Gorm全局日志",
  6865. "type": "string"
  6866. },
  6867. "log-zap": {
  6868. "description": "是否通过zap写入日志文件",
  6869. "type": "boolean"
  6870. },
  6871. "max-idle-conns": {
  6872. "description": "空闲中的最大连接数",
  6873. "type": "integer"
  6874. },
  6875. "max-open-conns": {
  6876. "description": "打开到数据库的最大连接数",
  6877. "type": "integer"
  6878. },
  6879. "password": {
  6880. "description": "数据库密码",
  6881. "type": "string"
  6882. },
  6883. "path": {
  6884. "description": "数据库地址",
  6885. "type": "string"
  6886. },
  6887. "port": {
  6888. "description": "数据库端口",
  6889. "type": "string"
  6890. },
  6891. "prefix": {
  6892. "description": "数据库前缀",
  6893. "type": "string"
  6894. },
  6895. "singular": {
  6896. "description": "是否开启全局禁用复数,true表示开启",
  6897. "type": "boolean"
  6898. },
  6899. "username": {
  6900. "description": "数据库账号",
  6901. "type": "string"
  6902. }
  6903. }
  6904. },
  6905. "config.Mysql": {
  6906. "type": "object",
  6907. "properties": {
  6908. "config": {
  6909. "description": "高级配置",
  6910. "type": "string"
  6911. },
  6912. "db-name": {
  6913. "description": "数据库名",
  6914. "type": "string"
  6915. },
  6916. "engine": {
  6917. "description": "数据库引擎,默认InnoDB",
  6918. "type": "string",
  6919. "default": "InnoDB"
  6920. },
  6921. "log-mode": {
  6922. "description": "是否开启Gorm全局日志",
  6923. "type": "string"
  6924. },
  6925. "log-zap": {
  6926. "description": "是否通过zap写入日志文件",
  6927. "type": "boolean"
  6928. },
  6929. "max-idle-conns": {
  6930. "description": "空闲中的最大连接数",
  6931. "type": "integer"
  6932. },
  6933. "max-open-conns": {
  6934. "description": "打开到数据库的最大连接数",
  6935. "type": "integer"
  6936. },
  6937. "password": {
  6938. "description": "数据库密码",
  6939. "type": "string"
  6940. },
  6941. "path": {
  6942. "description": "数据库地址",
  6943. "type": "string"
  6944. },
  6945. "port": {
  6946. "description": "数据库端口",
  6947. "type": "string"
  6948. },
  6949. "prefix": {
  6950. "description": "数据库前缀",
  6951. "type": "string"
  6952. },
  6953. "singular": {
  6954. "description": "是否开启全局禁用复数,true表示开启",
  6955. "type": "boolean"
  6956. },
  6957. "username": {
  6958. "description": "数据库账号",
  6959. "type": "string"
  6960. }
  6961. }
  6962. },
  6963. "config.Oracle": {
  6964. "type": "object",
  6965. "properties": {
  6966. "config": {
  6967. "description": "高级配置",
  6968. "type": "string"
  6969. },
  6970. "db-name": {
  6971. "description": "数据库名",
  6972. "type": "string"
  6973. },
  6974. "engine": {
  6975. "description": "数据库引擎,默认InnoDB",
  6976. "type": "string",
  6977. "default": "InnoDB"
  6978. },
  6979. "log-mode": {
  6980. "description": "是否开启Gorm全局日志",
  6981. "type": "string"
  6982. },
  6983. "log-zap": {
  6984. "description": "是否通过zap写入日志文件",
  6985. "type": "boolean"
  6986. },
  6987. "max-idle-conns": {
  6988. "description": "空闲中的最大连接数",
  6989. "type": "integer"
  6990. },
  6991. "max-open-conns": {
  6992. "description": "打开到数据库的最大连接数",
  6993. "type": "integer"
  6994. },
  6995. "password": {
  6996. "description": "数据库密码",
  6997. "type": "string"
  6998. },
  6999. "path": {
  7000. "description": "数据库地址",
  7001. "type": "string"
  7002. },
  7003. "port": {
  7004. "description": "数据库端口",
  7005. "type": "string"
  7006. },
  7007. "prefix": {
  7008. "description": "数据库前缀",
  7009. "type": "string"
  7010. },
  7011. "singular": {
  7012. "description": "是否开启全局禁用复数,true表示开启",
  7013. "type": "boolean"
  7014. },
  7015. "username": {
  7016. "description": "数据库账号",
  7017. "type": "string"
  7018. }
  7019. }
  7020. },
  7021. "config.Pgsql": {
  7022. "type": "object",
  7023. "properties": {
  7024. "config": {
  7025. "description": "高级配置",
  7026. "type": "string"
  7027. },
  7028. "db-name": {
  7029. "description": "数据库名",
  7030. "type": "string"
  7031. },
  7032. "engine": {
  7033. "description": "数据库引擎,默认InnoDB",
  7034. "type": "string",
  7035. "default": "InnoDB"
  7036. },
  7037. "log-mode": {
  7038. "description": "是否开启Gorm全局日志",
  7039. "type": "string"
  7040. },
  7041. "log-zap": {
  7042. "description": "是否通过zap写入日志文件",
  7043. "type": "boolean"
  7044. },
  7045. "max-idle-conns": {
  7046. "description": "空闲中的最大连接数",
  7047. "type": "integer"
  7048. },
  7049. "max-open-conns": {
  7050. "description": "打开到数据库的最大连接数",
  7051. "type": "integer"
  7052. },
  7053. "password": {
  7054. "description": "数据库密码",
  7055. "type": "string"
  7056. },
  7057. "path": {
  7058. "description": "数据库地址",
  7059. "type": "string"
  7060. },
  7061. "port": {
  7062. "description": "数据库端口",
  7063. "type": "string"
  7064. },
  7065. "prefix": {
  7066. "description": "数据库前缀",
  7067. "type": "string"
  7068. },
  7069. "singular": {
  7070. "description": "是否开启全局禁用复数,true表示开启",
  7071. "type": "boolean"
  7072. },
  7073. "username": {
  7074. "description": "数据库账号",
  7075. "type": "string"
  7076. }
  7077. }
  7078. },
  7079. "config.Qiniu": {
  7080. "type": "object",
  7081. "properties": {
  7082. "access-key": {
  7083. "description": "秘钥AK",
  7084. "type": "string"
  7085. },
  7086. "bucket": {
  7087. "description": "空间名称",
  7088. "type": "string"
  7089. },
  7090. "img-path": {
  7091. "description": "CDN加速域名",
  7092. "type": "string"
  7093. },
  7094. "secret-key": {
  7095. "description": "秘钥SK",
  7096. "type": "string"
  7097. },
  7098. "use-cdn-domains": {
  7099. "description": "上传是否使用CDN上传加速",
  7100. "type": "boolean"
  7101. },
  7102. "use-https": {
  7103. "description": "是否使用https",
  7104. "type": "boolean"
  7105. },
  7106. "zone": {
  7107. "description": "存储区域",
  7108. "type": "string"
  7109. }
  7110. }
  7111. },
  7112. "config.Redis": {
  7113. "type": "object",
  7114. "properties": {
  7115. "addr": {
  7116. "description": "服务器地址:端口",
  7117. "type": "string"
  7118. },
  7119. "clusterAddrs": {
  7120. "description": "集群模式下的节点地址列表",
  7121. "type": "array",
  7122. "items": {
  7123. "type": "string"
  7124. }
  7125. },
  7126. "db": {
  7127. "description": "单实例模式下redis的哪个数据库",
  7128. "type": "integer"
  7129. },
  7130. "name": {
  7131. "description": "代表当前实例的名字",
  7132. "type": "string"
  7133. },
  7134. "password": {
  7135. "description": "密码",
  7136. "type": "string"
  7137. },
  7138. "useCluster": {
  7139. "description": "是否使用集群模式",
  7140. "type": "boolean"
  7141. }
  7142. }
  7143. },
  7144. "config.Server": {
  7145. "type": "object",
  7146. "properties": {
  7147. "aliyun-oss": {
  7148. "$ref": "#/definitions/config.AliyunOSS"
  7149. },
  7150. "autocode": {
  7151. "description": "auto",
  7152. "allOf": [
  7153. {
  7154. "$ref": "#/definitions/config.Autocode"
  7155. }
  7156. ]
  7157. },
  7158. "aws-s3": {
  7159. "$ref": "#/definitions/config.AwsS3"
  7160. },
  7161. "captcha": {
  7162. "$ref": "#/definitions/config.Captcha"
  7163. },
  7164. "cloudflare-r2": {
  7165. "$ref": "#/definitions/config.CloudflareR2"
  7166. },
  7167. "cors": {
  7168. "description": "跨域配置",
  7169. "allOf": [
  7170. {
  7171. "$ref": "#/definitions/config.CORS"
  7172. }
  7173. ]
  7174. },
  7175. "db-list": {
  7176. "type": "array",
  7177. "items": {
  7178. "$ref": "#/definitions/config.SpecializedDB"
  7179. }
  7180. },
  7181. "disk-list": {
  7182. "type": "array",
  7183. "items": {
  7184. "$ref": "#/definitions/config.DiskList"
  7185. }
  7186. },
  7187. "email": {
  7188. "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email"
  7189. },
  7190. "excel": {
  7191. "$ref": "#/definitions/config.Excel"
  7192. },
  7193. "hua-wei-obs": {
  7194. "$ref": "#/definitions/config.HuaWeiObs"
  7195. },
  7196. "jwt": {
  7197. "$ref": "#/definitions/config.JWT"
  7198. },
  7199. "local": {
  7200. "description": "oss",
  7201. "allOf": [
  7202. {
  7203. "$ref": "#/definitions/config.Local"
  7204. }
  7205. ]
  7206. },
  7207. "minio": {
  7208. "$ref": "#/definitions/config.Minio"
  7209. },
  7210. "mongo": {
  7211. "$ref": "#/definitions/config.Mongo"
  7212. },
  7213. "mssql": {
  7214. "$ref": "#/definitions/config.Mssql"
  7215. },
  7216. "mysql": {
  7217. "description": "gorm",
  7218. "allOf": [
  7219. {
  7220. "$ref": "#/definitions/config.Mysql"
  7221. }
  7222. ]
  7223. },
  7224. "oracle": {
  7225. "$ref": "#/definitions/config.Oracle"
  7226. },
  7227. "pgsql": {
  7228. "$ref": "#/definitions/config.Pgsql"
  7229. },
  7230. "qiniu": {
  7231. "$ref": "#/definitions/config.Qiniu"
  7232. },
  7233. "redis": {
  7234. "$ref": "#/definitions/config.Redis"
  7235. },
  7236. "redis-list": {
  7237. "type": "array",
  7238. "items": {
  7239. "$ref": "#/definitions/config.Redis"
  7240. }
  7241. },
  7242. "sqlite": {
  7243. "$ref": "#/definitions/config.Sqlite"
  7244. },
  7245. "system": {
  7246. "$ref": "#/definitions/config.System"
  7247. },
  7248. "tencent-cos": {
  7249. "$ref": "#/definitions/config.TencentCOS"
  7250. },
  7251. "zap": {
  7252. "$ref": "#/definitions/config.Zap"
  7253. }
  7254. }
  7255. },
  7256. "config.SpecializedDB": {
  7257. "type": "object",
  7258. "properties": {
  7259. "alias-name": {
  7260. "type": "string"
  7261. },
  7262. "config": {
  7263. "description": "高级配置",
  7264. "type": "string"
  7265. },
  7266. "db-name": {
  7267. "description": "数据库名",
  7268. "type": "string"
  7269. },
  7270. "disable": {
  7271. "type": "boolean"
  7272. },
  7273. "engine": {
  7274. "description": "数据库引擎,默认InnoDB",
  7275. "type": "string",
  7276. "default": "InnoDB"
  7277. },
  7278. "log-mode": {
  7279. "description": "是否开启Gorm全局日志",
  7280. "type": "string"
  7281. },
  7282. "log-zap": {
  7283. "description": "是否通过zap写入日志文件",
  7284. "type": "boolean"
  7285. },
  7286. "max-idle-conns": {
  7287. "description": "空闲中的最大连接数",
  7288. "type": "integer"
  7289. },
  7290. "max-open-conns": {
  7291. "description": "打开到数据库的最大连接数",
  7292. "type": "integer"
  7293. },
  7294. "password": {
  7295. "description": "数据库密码",
  7296. "type": "string"
  7297. },
  7298. "path": {
  7299. "description": "数据库地址",
  7300. "type": "string"
  7301. },
  7302. "port": {
  7303. "description": "数据库端口",
  7304. "type": "string"
  7305. },
  7306. "prefix": {
  7307. "description": "数据库前缀",
  7308. "type": "string"
  7309. },
  7310. "singular": {
  7311. "description": "是否开启全局禁用复数,true表示开启",
  7312. "type": "boolean"
  7313. },
  7314. "type": {
  7315. "type": "string"
  7316. },
  7317. "username": {
  7318. "description": "数据库账号",
  7319. "type": "string"
  7320. }
  7321. }
  7322. },
  7323. "config.Sqlite": {
  7324. "type": "object",
  7325. "properties": {
  7326. "config": {
  7327. "description": "高级配置",
  7328. "type": "string"
  7329. },
  7330. "db-name": {
  7331. "description": "数据库名",
  7332. "type": "string"
  7333. },
  7334. "engine": {
  7335. "description": "数据库引擎,默认InnoDB",
  7336. "type": "string",
  7337. "default": "InnoDB"
  7338. },
  7339. "log-mode": {
  7340. "description": "是否开启Gorm全局日志",
  7341. "type": "string"
  7342. },
  7343. "log-zap": {
  7344. "description": "是否通过zap写入日志文件",
  7345. "type": "boolean"
  7346. },
  7347. "max-idle-conns": {
  7348. "description": "空闲中的最大连接数",
  7349. "type": "integer"
  7350. },
  7351. "max-open-conns": {
  7352. "description": "打开到数据库的最大连接数",
  7353. "type": "integer"
  7354. },
  7355. "password": {
  7356. "description": "数据库密码",
  7357. "type": "string"
  7358. },
  7359. "path": {
  7360. "description": "数据库地址",
  7361. "type": "string"
  7362. },
  7363. "port": {
  7364. "description": "数据库端口",
  7365. "type": "string"
  7366. },
  7367. "prefix": {
  7368. "description": "数据库前缀",
  7369. "type": "string"
  7370. },
  7371. "singular": {
  7372. "description": "是否开启全局禁用复数,true表示开启",
  7373. "type": "boolean"
  7374. },
  7375. "username": {
  7376. "description": "数据库账号",
  7377. "type": "string"
  7378. }
  7379. }
  7380. },
  7381. "config.System": {
  7382. "type": "object",
  7383. "properties": {
  7384. "addr": {
  7385. "description": "端口值",
  7386. "type": "integer"
  7387. },
  7388. "db-type": {
  7389. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  7390. "type": "string"
  7391. },
  7392. "iplimit-count": {
  7393. "type": "integer"
  7394. },
  7395. "iplimit-time": {
  7396. "type": "integer"
  7397. },
  7398. "oss-type": {
  7399. "description": "Oss类型",
  7400. "type": "string"
  7401. },
  7402. "router-prefix": {
  7403. "type": "string"
  7404. },
  7405. "use-mongo": {
  7406. "description": "使用mongo",
  7407. "type": "boolean"
  7408. },
  7409. "use-multipoint": {
  7410. "description": "多点登录拦截",
  7411. "type": "boolean"
  7412. },
  7413. "use-redis": {
  7414. "description": "使用redis",
  7415. "type": "boolean"
  7416. },
  7417. "use-strict-auth": {
  7418. "description": "使用树形角色分配模式",
  7419. "type": "boolean"
  7420. }
  7421. }
  7422. },
  7423. "config.TencentCOS": {
  7424. "type": "object",
  7425. "properties": {
  7426. "base-url": {
  7427. "type": "string"
  7428. },
  7429. "bucket": {
  7430. "type": "string"
  7431. },
  7432. "path-prefix": {
  7433. "type": "string"
  7434. },
  7435. "region": {
  7436. "type": "string"
  7437. },
  7438. "secret-id": {
  7439. "type": "string"
  7440. },
  7441. "secret-key": {
  7442. "type": "string"
  7443. }
  7444. }
  7445. },
  7446. "config.Zap": {
  7447. "type": "object",
  7448. "properties": {
  7449. "director": {
  7450. "description": "日志文件夹",
  7451. "type": "string"
  7452. },
  7453. "encode-level": {
  7454. "description": "编码级",
  7455. "type": "string"
  7456. },
  7457. "format": {
  7458. "description": "输出",
  7459. "type": "string"
  7460. },
  7461. "level": {
  7462. "description": "级别",
  7463. "type": "string"
  7464. },
  7465. "log-in-console": {
  7466. "description": "输出控制台",
  7467. "type": "boolean"
  7468. },
  7469. "prefix": {
  7470. "description": "日志前缀",
  7471. "type": "string"
  7472. },
  7473. "retention-day": {
  7474. "description": "日志保留天数",
  7475. "type": "integer"
  7476. },
  7477. "show-line": {
  7478. "description": "显示行",
  7479. "type": "boolean"
  7480. },
  7481. "stacktrace-key": {
  7482. "description": "栈名",
  7483. "type": "string"
  7484. }
  7485. }
  7486. },
  7487. "example.ExaAttachmentCategory": {
  7488. "type": "object",
  7489. "properties": {
  7490. "ID": {
  7491. "description": "主键ID",
  7492. "type": "integer"
  7493. },
  7494. "children": {
  7495. "type": "array",
  7496. "items": {
  7497. "$ref": "#/definitions/example.ExaAttachmentCategory"
  7498. }
  7499. },
  7500. "createdAt": {
  7501. "description": "创建时间",
  7502. "type": "string"
  7503. },
  7504. "name": {
  7505. "type": "string"
  7506. },
  7507. "pid": {
  7508. "type": "integer"
  7509. },
  7510. "updatedAt": {
  7511. "description": "更新时间",
  7512. "type": "string"
  7513. }
  7514. }
  7515. },
  7516. "example.ExaCustomer": {
  7517. "type": "object",
  7518. "properties": {
  7519. "ID": {
  7520. "description": "主键ID",
  7521. "type": "integer"
  7522. },
  7523. "createdAt": {
  7524. "description": "创建时间",
  7525. "type": "string"
  7526. },
  7527. "customerName": {
  7528. "description": "客户名",
  7529. "type": "string"
  7530. },
  7531. "customerPhoneData": {
  7532. "description": "客户手机号",
  7533. "type": "string"
  7534. },
  7535. "sysUser": {
  7536. "description": "管理详情",
  7537. "allOf": [
  7538. {
  7539. "$ref": "#/definitions/system.SysUser"
  7540. }
  7541. ]
  7542. },
  7543. "sysUserAuthorityID": {
  7544. "description": "管理角色ID",
  7545. "type": "integer"
  7546. },
  7547. "sysUserId": {
  7548. "description": "管理ID",
  7549. "type": "integer"
  7550. },
  7551. "updatedAt": {
  7552. "description": "更新时间",
  7553. "type": "string"
  7554. }
  7555. }
  7556. },
  7557. "example.ExaFile": {
  7558. "type": "object",
  7559. "properties": {
  7560. "ID": {
  7561. "description": "主键ID",
  7562. "type": "integer"
  7563. },
  7564. "chunkTotal": {
  7565. "type": "integer"
  7566. },
  7567. "createdAt": {
  7568. "description": "创建时间",
  7569. "type": "string"
  7570. },
  7571. "exaFileChunk": {
  7572. "type": "array",
  7573. "items": {
  7574. "$ref": "#/definitions/example.ExaFileChunk"
  7575. }
  7576. },
  7577. "fileMd5": {
  7578. "type": "string"
  7579. },
  7580. "fileName": {
  7581. "type": "string"
  7582. },
  7583. "filePath": {
  7584. "type": "string"
  7585. },
  7586. "isFinish": {
  7587. "type": "boolean"
  7588. },
  7589. "updatedAt": {
  7590. "description": "更新时间",
  7591. "type": "string"
  7592. }
  7593. }
  7594. },
  7595. "example.ExaFileChunk": {
  7596. "type": "object",
  7597. "properties": {
  7598. "ID": {
  7599. "description": "主键ID",
  7600. "type": "integer"
  7601. },
  7602. "createdAt": {
  7603. "description": "创建时间",
  7604. "type": "string"
  7605. },
  7606. "exaFileID": {
  7607. "type": "integer"
  7608. },
  7609. "fileChunkNumber": {
  7610. "type": "integer"
  7611. },
  7612. "fileChunkPath": {
  7613. "type": "string"
  7614. },
  7615. "updatedAt": {
  7616. "description": "更新时间",
  7617. "type": "string"
  7618. }
  7619. }
  7620. },
  7621. "example.ExaFileUploadAndDownload": {
  7622. "type": "object",
  7623. "properties": {
  7624. "ID": {
  7625. "description": "主键ID",
  7626. "type": "integer"
  7627. },
  7628. "classId": {
  7629. "description": "分类id",
  7630. "type": "integer"
  7631. },
  7632. "createdAt": {
  7633. "description": "创建时间",
  7634. "type": "string"
  7635. },
  7636. "key": {
  7637. "description": "编号",
  7638. "type": "string"
  7639. },
  7640. "name": {
  7641. "description": "文件名",
  7642. "type": "string"
  7643. },
  7644. "tag": {
  7645. "description": "文件标签",
  7646. "type": "string"
  7647. },
  7648. "updatedAt": {
  7649. "description": "更新时间",
  7650. "type": "string"
  7651. },
  7652. "url": {
  7653. "description": "文件地址",
  7654. "type": "string"
  7655. }
  7656. }
  7657. },
  7658. "github_com_flipped-aurora_gin-vue-admin_server_config.Email": {
  7659. "type": "object",
  7660. "properties": {
  7661. "from": {
  7662. "description": "发件人 你自己要发邮件的邮箱",
  7663. "type": "string"
  7664. },
  7665. "host": {
  7666. "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议",
  7667. "type": "string"
  7668. },
  7669. "is-ssl": {
  7670. "description": "是否SSL 是否开启SSL",
  7671. "type": "boolean"
  7672. },
  7673. "nickname": {
  7674. "description": "昵称 发件人昵称 通常为自己的邮箱",
  7675. "type": "string"
  7676. },
  7677. "port": {
  7678. "description": "端口 请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465",
  7679. "type": "integer"
  7680. },
  7681. "secret": {
  7682. "description": "密钥 用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥",
  7683. "type": "string"
  7684. },
  7685. "to": {
  7686. "description": "收件人:多个以英文逗号分隔 例:[email protected] [email protected] 正式开发中请把此项目作为参数使用",
  7687. "type": "string"
  7688. }
  7689. }
  7690. },
  7691. "model.Info": {
  7692. "type": "object",
  7693. "properties": {
  7694. "ID": {
  7695. "description": "主键ID",
  7696. "type": "integer"
  7697. },
  7698. "attachments": {
  7699. "description": "附件",
  7700. "type": "array",
  7701. "items": {
  7702. "type": "object"
  7703. }
  7704. },
  7705. "content": {
  7706. "description": "内容",
  7707. "type": "string"
  7708. },
  7709. "createdAt": {
  7710. "description": "创建时间",
  7711. "type": "string"
  7712. },
  7713. "title": {
  7714. "description": "标题",
  7715. "type": "string"
  7716. },
  7717. "updatedAt": {
  7718. "description": "更新时间",
  7719. "type": "string"
  7720. },
  7721. "userID": {
  7722. "description": "作者",
  7723. "type": "integer"
  7724. }
  7725. }
  7726. },
  7727. "request.AddMenuAuthorityInfo": {
  7728. "type": "object",
  7729. "properties": {
  7730. "authorityId": {
  7731. "description": "角色ID",
  7732. "type": "integer"
  7733. },
  7734. "menus": {
  7735. "type": "array",
  7736. "items": {
  7737. "$ref": "#/definitions/system.SysBaseMenu"
  7738. }
  7739. }
  7740. }
  7741. },
  7742. "request.AutoCode": {
  7743. "type": "object",
  7744. "properties": {
  7745. "abbreviation": {
  7746. "description": "Struct简称",
  7747. "type": "string",
  7748. "example": "Struct简称"
  7749. },
  7750. "autoCreateApiToSql": {
  7751. "description": "是否自动创建api",
  7752. "type": "boolean",
  7753. "example": false
  7754. },
  7755. "autoCreateBtnAuth": {
  7756. "description": "是否自动创建按钮权限",
  7757. "type": "boolean",
  7758. "example": false
  7759. },
  7760. "autoCreateMenuToSql": {
  7761. "description": "是否自动创建menu",
  7762. "type": "boolean",
  7763. "example": false
  7764. },
  7765. "autoCreateResource": {
  7766. "description": "是否自动创建资源标识",
  7767. "type": "boolean",
  7768. "example": false
  7769. },
  7770. "autoMigrate": {
  7771. "description": "是否自动迁移表结构",
  7772. "type": "boolean",
  7773. "example": false
  7774. },
  7775. "businessDB": {
  7776. "description": "业务数据库",
  7777. "type": "string",
  7778. "example": "业务数据库"
  7779. },
  7780. "description": {
  7781. "description": "Struct中文名称",
  7782. "type": "string",
  7783. "example": "Struct中文名称"
  7784. },
  7785. "fields": {
  7786. "type": "array",
  7787. "items": {
  7788. "$ref": "#/definitions/request.AutoCodeField"
  7789. }
  7790. },
  7791. "generateServer": {
  7792. "description": "是否生成server",
  7793. "type": "boolean",
  7794. "example": true
  7795. },
  7796. "generateWeb": {
  7797. "description": "是否生成web",
  7798. "type": "boolean",
  7799. "example": true
  7800. },
  7801. "gvaModel": {
  7802. "description": "是否使用gva默认Model",
  7803. "type": "boolean",
  7804. "example": false
  7805. },
  7806. "humpPackageName": {
  7807. "description": "go文件名称",
  7808. "type": "string",
  7809. "example": "go文件名称"
  7810. },
  7811. "isAdd": {
  7812. "description": "是否新增",
  7813. "type": "boolean",
  7814. "example": false
  7815. },
  7816. "isTree": {
  7817. "description": "是否树形结构",
  7818. "type": "boolean",
  7819. "example": false
  7820. },
  7821. "onlyTemplate": {
  7822. "description": "是否只生成模板",
  7823. "type": "boolean",
  7824. "example": false
  7825. },
  7826. "package": {
  7827. "type": "string"
  7828. },
  7829. "packageName": {
  7830. "description": "文件名称",
  7831. "type": "string",
  7832. "example": "文件名称"
  7833. },
  7834. "primaryField": {
  7835. "$ref": "#/definitions/request.AutoCodeField"
  7836. },
  7837. "structName": {
  7838. "description": "Struct名称",
  7839. "type": "string",
  7840. "example": "Struct名称"
  7841. },
  7842. "tableName": {
  7843. "description": "表名",
  7844. "type": "string",
  7845. "example": "表名"
  7846. },
  7847. "treeJson": {
  7848. "description": "展示的树json字段",
  7849. "type": "string",
  7850. "example": "展示的树json字段"
  7851. }
  7852. }
  7853. },
  7854. "request.AutoCodeField": {
  7855. "type": "object",
  7856. "properties": {
  7857. "checkDataSource": {
  7858. "description": "是否检查数据源",
  7859. "type": "boolean"
  7860. },
  7861. "clearable": {
  7862. "description": "是否可清空",
  7863. "type": "boolean"
  7864. },
  7865. "columnName": {
  7866. "description": "数据库字段",
  7867. "type": "string"
  7868. },
  7869. "comment": {
  7870. "description": "数据库字段描述",
  7871. "type": "string"
  7872. },
  7873. "dataSource": {
  7874. "description": "数据源",
  7875. "allOf": [
  7876. {
  7877. "$ref": "#/definitions/request.DataSource"
  7878. }
  7879. ]
  7880. },
  7881. "dataTypeLong": {
  7882. "description": "数据库字段长度",
  7883. "type": "string"
  7884. },
  7885. "defaultValue": {
  7886. "description": "是否必填",
  7887. "type": "string"
  7888. },
  7889. "desc": {
  7890. "description": "是否前端详情",
  7891. "type": "boolean"
  7892. },
  7893. "dictType": {
  7894. "description": "字典",
  7895. "type": "string"
  7896. },
  7897. "errorText": {
  7898. "description": "校验失败文字",
  7899. "type": "string"
  7900. },
  7901. "excel": {
  7902. "description": "是否导入/导出",
  7903. "type": "boolean"
  7904. },
  7905. "fieldDesc": {
  7906. "description": "中文名",
  7907. "type": "string"
  7908. },
  7909. "fieldIndexType": {
  7910. "description": "索引类型",
  7911. "type": "string"
  7912. },
  7913. "fieldJson": {
  7914. "description": "FieldJson",
  7915. "type": "string"
  7916. },
  7917. "fieldName": {
  7918. "description": "Field名",
  7919. "type": "string"
  7920. },
  7921. "fieldSearchHide": {
  7922. "description": "是否隐藏查询条件",
  7923. "type": "boolean"
  7924. },
  7925. "fieldSearchType": {
  7926. "description": "搜索条件",
  7927. "type": "string"
  7928. },
  7929. "fieldType": {
  7930. "description": "Field数据类型",
  7931. "type": "string"
  7932. },
  7933. "form": {
  7934. "description": "Front bool `json:\"front\"` // 是否前端可见",
  7935. "type": "boolean"
  7936. },
  7937. "primaryKey": {
  7938. "description": "是否主键",
  7939. "type": "boolean"
  7940. },
  7941. "require": {
  7942. "description": "是否必填",
  7943. "type": "boolean"
  7944. },
  7945. "sort": {
  7946. "description": "是否增加排序",
  7947. "type": "boolean"
  7948. },
  7949. "table": {
  7950. "description": "是否前端表格列",
  7951. "type": "boolean"
  7952. }
  7953. }
  7954. },
  7955. "request.CasbinInReceive": {
  7956. "type": "object",
  7957. "properties": {
  7958. "authorityId": {
  7959. "description": "权限id",
  7960. "type": "integer"
  7961. },
  7962. "casbinInfos": {
  7963. "type": "array",
  7964. "items": {
  7965. "$ref": "#/definitions/request.CasbinInfo"
  7966. }
  7967. }
  7968. }
  7969. },
  7970. "request.CasbinInfo": {
  7971. "type": "object",
  7972. "properties": {
  7973. "method": {
  7974. "description": "方法",
  7975. "type": "string"
  7976. },
  7977. "path": {
  7978. "description": "路径",
  7979. "type": "string"
  7980. }
  7981. }
  7982. },
  7983. "request.ChangePasswordReq": {
  7984. "type": "object",
  7985. "properties": {
  7986. "newPassword": {
  7987. "description": "新密码",
  7988. "type": "string"
  7989. },
  7990. "password": {
  7991. "description": "密码",
  7992. "type": "string"
  7993. }
  7994. }
  7995. },
  7996. "request.DataSource": {
  7997. "type": "object",
  7998. "properties": {
  7999. "association": {
  8000. "description": "关联关系 1 一对一 2 一对多",
  8001. "type": "integer"
  8002. },
  8003. "dbName": {
  8004. "type": "string"
  8005. },
  8006. "hasDeletedAt": {
  8007. "type": "boolean"
  8008. },
  8009. "label": {
  8010. "type": "string"
  8011. },
  8012. "table": {
  8013. "type": "string"
  8014. },
  8015. "value": {
  8016. "type": "string"
  8017. }
  8018. }
  8019. },
  8020. "request.Empty": {
  8021. "type": "object"
  8022. },
  8023. "request.ExaAttachmentCategorySearch": {
  8024. "type": "object",
  8025. "properties": {
  8026. "classId": {
  8027. "type": "integer"
  8028. },
  8029. "keyword": {
  8030. "description": "关键字",
  8031. "type": "string"
  8032. },
  8033. "page": {
  8034. "description": "页码",
  8035. "type": "integer"
  8036. },
  8037. "pageSize": {
  8038. "description": "每页大小",
  8039. "type": "integer"
  8040. }
  8041. }
  8042. },
  8043. "request.GetAuthorityId": {
  8044. "type": "object",
  8045. "properties": {
  8046. "authorityId": {
  8047. "description": "角色ID",
  8048. "type": "integer"
  8049. }
  8050. }
  8051. },
  8052. "request.GetById": {
  8053. "type": "object",
  8054. "properties": {
  8055. "id": {
  8056. "description": "主键ID",
  8057. "type": "integer"
  8058. }
  8059. }
  8060. },
  8061. "request.GetUserList": {
  8062. "type": "object",
  8063. "properties": {
  8064. "email": {
  8065. "type": "string"
  8066. },
  8067. "keyword": {
  8068. "description": "关键字",
  8069. "type": "string"
  8070. },
  8071. "nickName": {
  8072. "type": "string"
  8073. },
  8074. "page": {
  8075. "description": "页码",
  8076. "type": "integer"
  8077. },
  8078. "pageSize": {
  8079. "description": "每页大小",
  8080. "type": "integer"
  8081. },
  8082. "phone": {
  8083. "type": "string"
  8084. },
  8085. "username": {
  8086. "type": "string"
  8087. }
  8088. }
  8089. },
  8090. "request.IdsReq": {
  8091. "type": "object",
  8092. "properties": {
  8093. "ids": {
  8094. "type": "array",
  8095. "items": {
  8096. "type": "integer"
  8097. }
  8098. }
  8099. }
  8100. },
  8101. "request.InitDB": {
  8102. "type": "object",
  8103. "required": [
  8104. "adminPassword",
  8105. "dbName"
  8106. ],
  8107. "properties": {
  8108. "adminPassword": {
  8109. "type": "string"
  8110. },
  8111. "dbName": {
  8112. "description": "数据库名",
  8113. "type": "string"
  8114. },
  8115. "dbPath": {
  8116. "description": "sqlite数据库文件路径",
  8117. "type": "string"
  8118. },
  8119. "dbType": {
  8120. "description": "数据库类型",
  8121. "type": "string"
  8122. },
  8123. "host": {
  8124. "description": "服务器地址",
  8125. "type": "string"
  8126. },
  8127. "password": {
  8128. "description": "数据库密码",
  8129. "type": "string"
  8130. },
  8131. "port": {
  8132. "description": "数据库连接端口",
  8133. "type": "string"
  8134. },
  8135. "template": {
  8136. "description": "postgresql指定template",
  8137. "type": "string"
  8138. },
  8139. "userName": {
  8140. "description": "数据库用户名",
  8141. "type": "string"
  8142. }
  8143. }
  8144. },
  8145. "request.Login": {
  8146. "type": "object",
  8147. "properties": {
  8148. "captcha": {
  8149. "description": "验证码",
  8150. "type": "string"
  8151. },
  8152. "captchaId": {
  8153. "description": "验证码ID",
  8154. "type": "string"
  8155. },
  8156. "password": {
  8157. "description": "密码",
  8158. "type": "string"
  8159. },
  8160. "username": {
  8161. "description": "用户名",
  8162. "type": "string"
  8163. }
  8164. }
  8165. },
  8166. "request.PageInfo": {
  8167. "type": "object",
  8168. "properties": {
  8169. "keyword": {
  8170. "description": "关键字",
  8171. "type": "string"
  8172. },
  8173. "page": {
  8174. "description": "页码",
  8175. "type": "integer"
  8176. },
  8177. "pageSize": {
  8178. "description": "每页大小",
  8179. "type": "integer"
  8180. }
  8181. }
  8182. },
  8183. "request.Register": {
  8184. "type": "object",
  8185. "properties": {
  8186. "authorityId": {
  8187. "type": "string",
  8188. "example": "int 角色id"
  8189. },
  8190. "authorityIds": {
  8191. "type": "string",
  8192. "example": "[]uint 角色id"
  8193. },
  8194. "email": {
  8195. "type": "string",
  8196. "example": "电子邮箱"
  8197. },
  8198. "enable": {
  8199. "type": "string",
  8200. "example": "int 是否启用"
  8201. },
  8202. "headerImg": {
  8203. "type": "string",
  8204. "example": "头像链接"
  8205. },
  8206. "nickName": {
  8207. "type": "string",
  8208. "example": "昵称"
  8209. },
  8210. "passWord": {
  8211. "type": "string",
  8212. "example": "密码"
  8213. },
  8214. "phone": {
  8215. "type": "string",
  8216. "example": "电话号码"
  8217. },
  8218. "userName": {
  8219. "type": "string",
  8220. "example": "用户名"
  8221. }
  8222. }
  8223. },
  8224. "request.SearchApiParams": {
  8225. "type": "object",
  8226. "properties": {
  8227. "ID": {
  8228. "description": "主键ID",
  8229. "type": "integer"
  8230. },
  8231. "apiGroup": {
  8232. "description": "api组",
  8233. "type": "string"
  8234. },
  8235. "createdAt": {
  8236. "description": "创建时间",
  8237. "type": "string"
  8238. },
  8239. "desc": {
  8240. "description": "排序方式:升序false(默认)|降序true",
  8241. "type": "boolean"
  8242. },
  8243. "description": {
  8244. "description": "api中文描述",
  8245. "type": "string"
  8246. },
  8247. "keyword": {
  8248. "description": "关键字",
  8249. "type": "string"
  8250. },
  8251. "method": {
  8252. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  8253. "type": "string"
  8254. },
  8255. "orderKey": {
  8256. "description": "排序",
  8257. "type": "string"
  8258. },
  8259. "page": {
  8260. "description": "页码",
  8261. "type": "integer"
  8262. },
  8263. "pageSize": {
  8264. "description": "每页大小",
  8265. "type": "integer"
  8266. },
  8267. "path": {
  8268. "description": "api路径",
  8269. "type": "string"
  8270. },
  8271. "updatedAt": {
  8272. "description": "更新时间",
  8273. "type": "string"
  8274. }
  8275. }
  8276. },
  8277. "request.SetUserAuth": {
  8278. "type": "object",
  8279. "properties": {
  8280. "authorityId": {
  8281. "description": "角色ID",
  8282. "type": "integer"
  8283. }
  8284. }
  8285. },
  8286. "request.SetUserAuthorities": {
  8287. "type": "object",
  8288. "properties": {
  8289. "authorityIds": {
  8290. "description": "角色ID",
  8291. "type": "array",
  8292. "items": {
  8293. "type": "integer"
  8294. }
  8295. },
  8296. "id": {
  8297. "type": "integer"
  8298. }
  8299. }
  8300. },
  8301. "request.SysAuthorityBtnReq": {
  8302. "type": "object",
  8303. "properties": {
  8304. "authorityId": {
  8305. "type": "integer"
  8306. },
  8307. "menuID": {
  8308. "type": "integer"
  8309. },
  8310. "selected": {
  8311. "type": "array",
  8312. "items": {
  8313. "type": "integer"
  8314. }
  8315. }
  8316. }
  8317. },
  8318. "request.SysAutoCodePackageCreate": {
  8319. "type": "object",
  8320. "properties": {
  8321. "desc": {
  8322. "type": "string",
  8323. "example": "描述"
  8324. },
  8325. "label": {
  8326. "type": "string",
  8327. "example": "展示名"
  8328. },
  8329. "packageName": {
  8330. "type": "string",
  8331. "example": "包名"
  8332. },
  8333. "template": {
  8334. "type": "string",
  8335. "example": "模版"
  8336. }
  8337. }
  8338. },
  8339. "request.SysAutoHistoryRollBack": {
  8340. "type": "object",
  8341. "properties": {
  8342. "deleteApi": {
  8343. "description": "是否删除接口",
  8344. "type": "boolean"
  8345. },
  8346. "deleteMenu": {
  8347. "description": "是否删除菜单",
  8348. "type": "boolean"
  8349. },
  8350. "deleteTable": {
  8351. "description": "是否删除表",
  8352. "type": "boolean"
  8353. },
  8354. "id": {
  8355. "description": "主键ID",
  8356. "type": "integer"
  8357. }
  8358. }
  8359. },
  8360. "response.Email": {
  8361. "type": "object",
  8362. "properties": {
  8363. "body": {
  8364. "description": "邮件内容",
  8365. "type": "string"
  8366. },
  8367. "subject": {
  8368. "description": "邮件标题",
  8369. "type": "string"
  8370. },
  8371. "to": {
  8372. "description": "邮件发送给谁",
  8373. "type": "string"
  8374. }
  8375. }
  8376. },
  8377. "response.ExaCustomerResponse": {
  8378. "type": "object",
  8379. "properties": {
  8380. "customer": {
  8381. "$ref": "#/definitions/example.ExaCustomer"
  8382. }
  8383. }
  8384. },
  8385. "response.ExaFileResponse": {
  8386. "type": "object",
  8387. "properties": {
  8388. "file": {
  8389. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  8390. }
  8391. }
  8392. },
  8393. "response.FilePathResponse": {
  8394. "type": "object",
  8395. "properties": {
  8396. "filePath": {
  8397. "type": "string"
  8398. }
  8399. }
  8400. },
  8401. "response.FileResponse": {
  8402. "type": "object",
  8403. "properties": {
  8404. "file": {
  8405. "$ref": "#/definitions/example.ExaFile"
  8406. }
  8407. }
  8408. },
  8409. "response.LoginResponse": {
  8410. "type": "object",
  8411. "properties": {
  8412. "expiresAt": {
  8413. "type": "integer"
  8414. },
  8415. "token": {
  8416. "type": "string"
  8417. },
  8418. "user": {
  8419. "$ref": "#/definitions/system.SysUser"
  8420. }
  8421. }
  8422. },
  8423. "response.PageResult": {
  8424. "type": "object",
  8425. "properties": {
  8426. "list": {},
  8427. "page": {
  8428. "type": "integer"
  8429. },
  8430. "pageSize": {
  8431. "type": "integer"
  8432. },
  8433. "total": {
  8434. "type": "integer"
  8435. }
  8436. }
  8437. },
  8438. "response.PolicyPathResponse": {
  8439. "type": "object",
  8440. "properties": {
  8441. "paths": {
  8442. "type": "array",
  8443. "items": {
  8444. "$ref": "#/definitions/request.CasbinInfo"
  8445. }
  8446. }
  8447. }
  8448. },
  8449. "response.Response": {
  8450. "type": "object",
  8451. "properties": {
  8452. "code": {
  8453. "type": "integer"
  8454. },
  8455. "data": {},
  8456. "msg": {
  8457. "type": "string"
  8458. }
  8459. }
  8460. },
  8461. "response.SysAPIListResponse": {
  8462. "type": "object",
  8463. "properties": {
  8464. "apis": {
  8465. "type": "array",
  8466. "items": {
  8467. "$ref": "#/definitions/system.SysApi"
  8468. }
  8469. }
  8470. }
  8471. },
  8472. "response.SysAPIResponse": {
  8473. "type": "object",
  8474. "properties": {
  8475. "api": {
  8476. "$ref": "#/definitions/system.SysApi"
  8477. }
  8478. }
  8479. },
  8480. "response.SysAuthorityBtnRes": {
  8481. "type": "object",
  8482. "properties": {
  8483. "selected": {
  8484. "type": "array",
  8485. "items": {
  8486. "type": "integer"
  8487. }
  8488. }
  8489. }
  8490. },
  8491. "response.SysAuthorityCopyResponse": {
  8492. "type": "object",
  8493. "properties": {
  8494. "authority": {
  8495. "$ref": "#/definitions/system.SysAuthority"
  8496. },
  8497. "oldAuthorityId": {
  8498. "description": "旧角色ID",
  8499. "type": "integer"
  8500. }
  8501. }
  8502. },
  8503. "response.SysAuthorityResponse": {
  8504. "type": "object",
  8505. "properties": {
  8506. "authority": {
  8507. "$ref": "#/definitions/system.SysAuthority"
  8508. }
  8509. }
  8510. },
  8511. "response.SysBaseMenuResponse": {
  8512. "type": "object",
  8513. "properties": {
  8514. "menu": {
  8515. "$ref": "#/definitions/system.SysBaseMenu"
  8516. }
  8517. }
  8518. },
  8519. "response.SysBaseMenusResponse": {
  8520. "type": "object",
  8521. "properties": {
  8522. "menus": {
  8523. "type": "array",
  8524. "items": {
  8525. "$ref": "#/definitions/system.SysBaseMenu"
  8526. }
  8527. }
  8528. }
  8529. },
  8530. "response.SysCaptchaResponse": {
  8531. "type": "object",
  8532. "properties": {
  8533. "captchaId": {
  8534. "type": "string"
  8535. },
  8536. "captchaLength": {
  8537. "type": "integer"
  8538. },
  8539. "openCaptcha": {
  8540. "type": "boolean"
  8541. },
  8542. "picPath": {
  8543. "type": "string"
  8544. }
  8545. }
  8546. },
  8547. "response.SysConfigResponse": {
  8548. "type": "object",
  8549. "properties": {
  8550. "config": {
  8551. "$ref": "#/definitions/config.Server"
  8552. }
  8553. }
  8554. },
  8555. "response.SysMenusResponse": {
  8556. "type": "object",
  8557. "properties": {
  8558. "menus": {
  8559. "type": "array",
  8560. "items": {
  8561. "$ref": "#/definitions/system.SysMenu"
  8562. }
  8563. }
  8564. }
  8565. },
  8566. "response.SysUserResponse": {
  8567. "type": "object",
  8568. "properties": {
  8569. "user": {
  8570. "$ref": "#/definitions/system.SysUser"
  8571. }
  8572. }
  8573. },
  8574. "system.Condition": {
  8575. "type": "object",
  8576. "properties": {
  8577. "ID": {
  8578. "description": "主键ID",
  8579. "type": "integer"
  8580. },
  8581. "column": {
  8582. "type": "string"
  8583. },
  8584. "createdAt": {
  8585. "description": "创建时间",
  8586. "type": "string"
  8587. },
  8588. "from": {
  8589. "type": "string"
  8590. },
  8591. "operator": {
  8592. "type": "string"
  8593. },
  8594. "templateID": {
  8595. "type": "string"
  8596. },
  8597. "updatedAt": {
  8598. "description": "更新时间",
  8599. "type": "string"
  8600. }
  8601. }
  8602. },
  8603. "system.JoinTemplate": {
  8604. "type": "object",
  8605. "properties": {
  8606. "ID": {
  8607. "description": "主键ID",
  8608. "type": "integer"
  8609. },
  8610. "createdAt": {
  8611. "description": "创建时间",
  8612. "type": "string"
  8613. },
  8614. "joins": {
  8615. "type": "string"
  8616. },
  8617. "on": {
  8618. "type": "string"
  8619. },
  8620. "table": {
  8621. "type": "string"
  8622. },
  8623. "templateID": {
  8624. "type": "string"
  8625. },
  8626. "updatedAt": {
  8627. "description": "更新时间",
  8628. "type": "string"
  8629. }
  8630. }
  8631. },
  8632. "system.Meta": {
  8633. "type": "object",
  8634. "properties": {
  8635. "activeName": {
  8636. "type": "string"
  8637. },
  8638. "closeTab": {
  8639. "description": "自动关闭tab",
  8640. "type": "boolean"
  8641. },
  8642. "defaultMenu": {
  8643. "description": "是否是基础路由(开发中)",
  8644. "type": "boolean"
  8645. },
  8646. "icon": {
  8647. "description": "菜单图标",
  8648. "type": "string"
  8649. },
  8650. "keepAlive": {
  8651. "description": "是否缓存",
  8652. "type": "boolean"
  8653. },
  8654. "title": {
  8655. "description": "菜单名",
  8656. "type": "string"
  8657. }
  8658. }
  8659. },
  8660. "system.SysApi": {
  8661. "type": "object",
  8662. "properties": {
  8663. "ID": {
  8664. "description": "主键ID",
  8665. "type": "integer"
  8666. },
  8667. "apiGroup": {
  8668. "description": "api组",
  8669. "type": "string"
  8670. },
  8671. "createdAt": {
  8672. "description": "创建时间",
  8673. "type": "string"
  8674. },
  8675. "description": {
  8676. "description": "api中文描述",
  8677. "type": "string"
  8678. },
  8679. "method": {
  8680. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  8681. "type": "string"
  8682. },
  8683. "path": {
  8684. "description": "api路径",
  8685. "type": "string"
  8686. },
  8687. "updatedAt": {
  8688. "description": "更新时间",
  8689. "type": "string"
  8690. }
  8691. }
  8692. },
  8693. "system.SysAuthority": {
  8694. "type": "object",
  8695. "properties": {
  8696. "authorityId": {
  8697. "description": "角色ID",
  8698. "type": "integer"
  8699. },
  8700. "authorityName": {
  8701. "description": "角色名",
  8702. "type": "string"
  8703. },
  8704. "children": {
  8705. "type": "array",
  8706. "items": {
  8707. "$ref": "#/definitions/system.SysAuthority"
  8708. }
  8709. },
  8710. "createdAt": {
  8711. "description": "创建时间",
  8712. "type": "string"
  8713. },
  8714. "dataAuthorityId": {
  8715. "type": "array",
  8716. "items": {
  8717. "$ref": "#/definitions/system.SysAuthority"
  8718. }
  8719. },
  8720. "defaultRouter": {
  8721. "description": "默认菜单(默认dashboard)",
  8722. "type": "string"
  8723. },
  8724. "deletedAt": {
  8725. "type": "string"
  8726. },
  8727. "menus": {
  8728. "type": "array",
  8729. "items": {
  8730. "$ref": "#/definitions/system.SysBaseMenu"
  8731. }
  8732. },
  8733. "parentId": {
  8734. "description": "父角色ID",
  8735. "type": "integer"
  8736. },
  8737. "updatedAt": {
  8738. "description": "更新时间",
  8739. "type": "string"
  8740. }
  8741. }
  8742. },
  8743. "system.SysBaseMenu": {
  8744. "type": "object",
  8745. "properties": {
  8746. "ID": {
  8747. "description": "主键ID",
  8748. "type": "integer"
  8749. },
  8750. "authoritys": {
  8751. "type": "array",
  8752. "items": {
  8753. "$ref": "#/definitions/system.SysAuthority"
  8754. }
  8755. },
  8756. "children": {
  8757. "type": "array",
  8758. "items": {
  8759. "$ref": "#/definitions/system.SysBaseMenu"
  8760. }
  8761. },
  8762. "component": {
  8763. "description": "对应前端文件路径",
  8764. "type": "string"
  8765. },
  8766. "createdAt": {
  8767. "description": "创建时间",
  8768. "type": "string"
  8769. },
  8770. "hidden": {
  8771. "description": "是否在列表隐藏",
  8772. "type": "boolean"
  8773. },
  8774. "menuBtn": {
  8775. "type": "array",
  8776. "items": {
  8777. "$ref": "#/definitions/system.SysBaseMenuBtn"
  8778. }
  8779. },
  8780. "meta": {
  8781. "description": "附加属性",
  8782. "allOf": [
  8783. {
  8784. "$ref": "#/definitions/system.Meta"
  8785. }
  8786. ]
  8787. },
  8788. "name": {
  8789. "description": "路由name",
  8790. "type": "string"
  8791. },
  8792. "parameters": {
  8793. "type": "array",
  8794. "items": {
  8795. "$ref": "#/definitions/system.SysBaseMenuParameter"
  8796. }
  8797. },
  8798. "parentId": {
  8799. "description": "父菜单ID",
  8800. "type": "integer"
  8801. },
  8802. "path": {
  8803. "description": "路由path",
  8804. "type": "string"
  8805. },
  8806. "sort": {
  8807. "description": "排序标记",
  8808. "type": "integer"
  8809. },
  8810. "updatedAt": {
  8811. "description": "更新时间",
  8812. "type": "string"
  8813. }
  8814. }
  8815. },
  8816. "system.SysBaseMenuBtn": {
  8817. "type": "object",
  8818. "properties": {
  8819. "ID": {
  8820. "description": "主键ID",
  8821. "type": "integer"
  8822. },
  8823. "createdAt": {
  8824. "description": "创建时间",
  8825. "type": "string"
  8826. },
  8827. "desc": {
  8828. "type": "string"
  8829. },
  8830. "name": {
  8831. "type": "string"
  8832. },
  8833. "sysBaseMenuID": {
  8834. "type": "integer"
  8835. },
  8836. "updatedAt": {
  8837. "description": "更新时间",
  8838. "type": "string"
  8839. }
  8840. }
  8841. },
  8842. "system.SysBaseMenuParameter": {
  8843. "type": "object",
  8844. "properties": {
  8845. "ID": {
  8846. "description": "主键ID",
  8847. "type": "integer"
  8848. },
  8849. "createdAt": {
  8850. "description": "创建时间",
  8851. "type": "string"
  8852. },
  8853. "key": {
  8854. "description": "地址栏携带参数的key",
  8855. "type": "string"
  8856. },
  8857. "sysBaseMenuID": {
  8858. "type": "integer"
  8859. },
  8860. "type": {
  8861. "description": "地址栏携带参数为params还是query",
  8862. "type": "string"
  8863. },
  8864. "updatedAt": {
  8865. "description": "更新时间",
  8866. "type": "string"
  8867. },
  8868. "value": {
  8869. "description": "地址栏携带参数的值",
  8870. "type": "string"
  8871. }
  8872. }
  8873. },
  8874. "system.SysDictionary": {
  8875. "type": "object",
  8876. "properties": {
  8877. "ID": {
  8878. "description": "主键ID",
  8879. "type": "integer"
  8880. },
  8881. "createdAt": {
  8882. "description": "创建时间",
  8883. "type": "string"
  8884. },
  8885. "desc": {
  8886. "description": "描述",
  8887. "type": "string"
  8888. },
  8889. "name": {
  8890. "description": "字典名(中)",
  8891. "type": "string"
  8892. },
  8893. "status": {
  8894. "description": "状态",
  8895. "type": "boolean"
  8896. },
  8897. "sysDictionaryDetails": {
  8898. "type": "array",
  8899. "items": {
  8900. "$ref": "#/definitions/system.SysDictionaryDetail"
  8901. }
  8902. },
  8903. "type": {
  8904. "description": "字典名(英)",
  8905. "type": "string"
  8906. },
  8907. "updatedAt": {
  8908. "description": "更新时间",
  8909. "type": "string"
  8910. }
  8911. }
  8912. },
  8913. "system.SysDictionaryDetail": {
  8914. "type": "object",
  8915. "properties": {
  8916. "ID": {
  8917. "description": "主键ID",
  8918. "type": "integer"
  8919. },
  8920. "createdAt": {
  8921. "description": "创建时间",
  8922. "type": "string"
  8923. },
  8924. "extend": {
  8925. "description": "扩展值",
  8926. "type": "string"
  8927. },
  8928. "label": {
  8929. "description": "展示值",
  8930. "type": "string"
  8931. },
  8932. "sort": {
  8933. "description": "排序标记",
  8934. "type": "integer"
  8935. },
  8936. "status": {
  8937. "description": "启用状态",
  8938. "type": "boolean"
  8939. },
  8940. "sysDictionaryID": {
  8941. "description": "关联标记",
  8942. "type": "integer"
  8943. },
  8944. "updatedAt": {
  8945. "description": "更新时间",
  8946. "type": "string"
  8947. },
  8948. "value": {
  8949. "description": "字典值",
  8950. "type": "string"
  8951. }
  8952. }
  8953. },
  8954. "system.SysExportTemplate": {
  8955. "type": "object",
  8956. "properties": {
  8957. "ID": {
  8958. "description": "主键ID",
  8959. "type": "integer"
  8960. },
  8961. "conditions": {
  8962. "type": "array",
  8963. "items": {
  8964. "$ref": "#/definitions/system.Condition"
  8965. }
  8966. },
  8967. "createdAt": {
  8968. "description": "创建时间",
  8969. "type": "string"
  8970. },
  8971. "dbName": {
  8972. "description": "数据库名称",
  8973. "type": "string"
  8974. },
  8975. "joinTemplate": {
  8976. "type": "array",
  8977. "items": {
  8978. "$ref": "#/definitions/system.JoinTemplate"
  8979. }
  8980. },
  8981. "limit": {
  8982. "type": "integer"
  8983. },
  8984. "name": {
  8985. "description": "模板名称",
  8986. "type": "string"
  8987. },
  8988. "order": {
  8989. "type": "string"
  8990. },
  8991. "tableName": {
  8992. "description": "表名称",
  8993. "type": "string"
  8994. },
  8995. "templateID": {
  8996. "description": "模板标识",
  8997. "type": "string"
  8998. },
  8999. "templateInfo": {
  9000. "description": "模板信息",
  9001. "type": "string"
  9002. },
  9003. "updatedAt": {
  9004. "description": "更新时间",
  9005. "type": "string"
  9006. }
  9007. }
  9008. },
  9009. "system.SysMenu": {
  9010. "type": "object",
  9011. "properties": {
  9012. "ID": {
  9013. "description": "主键ID",
  9014. "type": "integer"
  9015. },
  9016. "authoritys": {
  9017. "type": "array",
  9018. "items": {
  9019. "$ref": "#/definitions/system.SysAuthority"
  9020. }
  9021. },
  9022. "btns": {
  9023. "type": "object",
  9024. "additionalProperties": {
  9025. "type": "integer"
  9026. }
  9027. },
  9028. "children": {
  9029. "type": "array",
  9030. "items": {
  9031. "$ref": "#/definitions/system.SysMenu"
  9032. }
  9033. },
  9034. "component": {
  9035. "description": "对应前端文件路径",
  9036. "type": "string"
  9037. },
  9038. "createdAt": {
  9039. "description": "创建时间",
  9040. "type": "string"
  9041. },
  9042. "hidden": {
  9043. "description": "是否在列表隐藏",
  9044. "type": "boolean"
  9045. },
  9046. "menuBtn": {
  9047. "type": "array",
  9048. "items": {
  9049. "$ref": "#/definitions/system.SysBaseMenuBtn"
  9050. }
  9051. },
  9052. "menuId": {
  9053. "type": "integer"
  9054. },
  9055. "meta": {
  9056. "description": "附加属性",
  9057. "allOf": [
  9058. {
  9059. "$ref": "#/definitions/system.Meta"
  9060. }
  9061. ]
  9062. },
  9063. "name": {
  9064. "description": "路由name",
  9065. "type": "string"
  9066. },
  9067. "parameters": {
  9068. "type": "array",
  9069. "items": {
  9070. "$ref": "#/definitions/system.SysBaseMenuParameter"
  9071. }
  9072. },
  9073. "parentId": {
  9074. "description": "父菜单ID",
  9075. "type": "integer"
  9076. },
  9077. "path": {
  9078. "description": "路由path",
  9079. "type": "string"
  9080. },
  9081. "sort": {
  9082. "description": "排序标记",
  9083. "type": "integer"
  9084. },
  9085. "updatedAt": {
  9086. "description": "更新时间",
  9087. "type": "string"
  9088. }
  9089. }
  9090. },
  9091. "system.SysOperationRecord": {
  9092. "type": "object",
  9093. "properties": {
  9094. "ID": {
  9095. "description": "主键ID",
  9096. "type": "integer"
  9097. },
  9098. "agent": {
  9099. "description": "代理",
  9100. "type": "string"
  9101. },
  9102. "body": {
  9103. "description": "请求Body",
  9104. "type": "string"
  9105. },
  9106. "createdAt": {
  9107. "description": "创建时间",
  9108. "type": "string"
  9109. },
  9110. "error_message": {
  9111. "description": "错误信息",
  9112. "type": "string"
  9113. },
  9114. "ip": {
  9115. "description": "请求ip",
  9116. "type": "string"
  9117. },
  9118. "latency": {
  9119. "description": "延迟",
  9120. "type": "string"
  9121. },
  9122. "method": {
  9123. "description": "请求方法",
  9124. "type": "string"
  9125. },
  9126. "path": {
  9127. "description": "请求路径",
  9128. "type": "string"
  9129. },
  9130. "resp": {
  9131. "description": "响应Body",
  9132. "type": "string"
  9133. },
  9134. "status": {
  9135. "description": "请求状态",
  9136. "type": "integer"
  9137. },
  9138. "updatedAt": {
  9139. "description": "更新时间",
  9140. "type": "string"
  9141. },
  9142. "user": {
  9143. "$ref": "#/definitions/system.SysUser"
  9144. },
  9145. "user_id": {
  9146. "description": "用户id",
  9147. "type": "integer"
  9148. }
  9149. }
  9150. },
  9151. "system.SysParams": {
  9152. "type": "object",
  9153. "required": [
  9154. "key",
  9155. "name",
  9156. "value"
  9157. ],
  9158. "properties": {
  9159. "ID": {
  9160. "description": "主键ID",
  9161. "type": "integer"
  9162. },
  9163. "createdAt": {
  9164. "description": "创建时间",
  9165. "type": "string"
  9166. },
  9167. "desc": {
  9168. "description": "参数说明",
  9169. "type": "string"
  9170. },
  9171. "key": {
  9172. "description": "参数键",
  9173. "type": "string"
  9174. },
  9175. "name": {
  9176. "description": "参数名称",
  9177. "type": "string"
  9178. },
  9179. "updatedAt": {
  9180. "description": "更新时间",
  9181. "type": "string"
  9182. },
  9183. "value": {
  9184. "description": "参数值",
  9185. "type": "string"
  9186. }
  9187. }
  9188. },
  9189. "system.SysUser": {
  9190. "type": "object",
  9191. "properties": {
  9192. "ID": {
  9193. "description": "主键ID",
  9194. "type": "integer"
  9195. },
  9196. "authorities": {
  9197. "description": "多用户角色",
  9198. "type": "array",
  9199. "items": {
  9200. "$ref": "#/definitions/system.SysAuthority"
  9201. }
  9202. },
  9203. "authority": {
  9204. "description": "用户角色",
  9205. "allOf": [
  9206. {
  9207. "$ref": "#/definitions/system.SysAuthority"
  9208. }
  9209. ]
  9210. },
  9211. "authorityId": {
  9212. "description": "用户角色ID",
  9213. "type": "integer"
  9214. },
  9215. "createdAt": {
  9216. "description": "创建时间",
  9217. "type": "string"
  9218. },
  9219. "email": {
  9220. "description": "用户邮箱",
  9221. "type": "string"
  9222. },
  9223. "enable": {
  9224. "description": "用户是否被冻结 1正常 2冻结",
  9225. "type": "integer"
  9226. },
  9227. "headerImg": {
  9228. "description": "用户头像",
  9229. "type": "string"
  9230. },
  9231. "nickName": {
  9232. "description": "用户昵称",
  9233. "type": "string"
  9234. },
  9235. "originSetting": {
  9236. "description": "配置",
  9237. "allOf": [
  9238. {
  9239. "$ref": "#/definitions/common.JSONMap"
  9240. }
  9241. ]
  9242. },
  9243. "phone": {
  9244. "description": "用户手机号",
  9245. "type": "string"
  9246. },
  9247. "updatedAt": {
  9248. "description": "更新时间",
  9249. "type": "string"
  9250. },
  9251. "userName": {
  9252. "description": "用户登录名",
  9253. "type": "string"
  9254. },
  9255. "uuid": {
  9256. "description": "用户UUID",
  9257. "type": "string"
  9258. }
  9259. }
  9260. },
  9261. "system.System": {
  9262. "type": "object",
  9263. "properties": {
  9264. "config": {
  9265. "$ref": "#/definitions/config.Server"
  9266. }
  9267. }
  9268. }
  9269. },
  9270. "securityDefinitions": {
  9271. "ApiKeyAuth": {
  9272. "type": "apiKey",
  9273. "name": "x-token",
  9274. "in": "header"
  9275. }
  9276. },
  9277. "tags": [
  9278. {
  9279. "name": "Base"
  9280. },
  9281. {
  9282. "description": "用户",
  9283. "name": "SysUser"
  9284. }
  9285. ]
  9286. }