docs.go 260 KB

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