swagger.json 191 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加qq群: 521386980 进入技术交流群 请先star,谢谢!",
  5. "title": "go-admin API",
  6. "contact": {},
  7. "license": {
  8. "name": "MIT",
  9. "url": "https://github.com/go-admin-team/go-admin/blob/master/LICENSE.md"
  10. },
  11. "version": "2.0.0"
  12. },
  13. "paths": {
  14. "/api/v1/app-config": {
  15. "get": {
  16. "description": "获取系统配置信息,主要注意这里不在验证权限",
  17. "tags": [
  18. "配置管理"
  19. ],
  20. "summary": "获取系统前台配置信息,主要注意这里不在验证权限",
  21. "responses": {
  22. "200": {
  23. "description": "{\"code\": 200, \"data\": [...]}",
  24. "schema": {
  25. "allOf": [
  26. {
  27. "$ref": "#/definitions/response.Response"
  28. },
  29. {
  30. "type": "object",
  31. "properties": {
  32. "data": {
  33. "type": "object",
  34. "additionalProperties": {
  35. "type": "string"
  36. }
  37. }
  38. }
  39. }
  40. ]
  41. }
  42. }
  43. }
  44. }
  45. },
  46. "/api/v1/captcha": {
  47. "get": {
  48. "description": "获取验证码",
  49. "tags": [
  50. "登陆"
  51. ],
  52. "summary": "获取验证码",
  53. "responses": {
  54. "200": {
  55. "description": "{\"code\": 200, \"data\": [...]}",
  56. "schema": {
  57. "allOf": [
  58. {
  59. "$ref": "#/definitions/response.Response"
  60. },
  61. {
  62. "type": "object",
  63. "properties": {
  64. "data": {
  65. "type": "string"
  66. },
  67. "id": {
  68. "type": "string"
  69. },
  70. "msg": {
  71. "type": "string"
  72. }
  73. }
  74. }
  75. ]
  76. }
  77. }
  78. }
  79. }
  80. },
  81. "/api/v1/db/columns/page": {
  82. "get": {
  83. "description": "数据库表列分页列表 / database table column page list",
  84. "tags": [
  85. "工具 / 生成工具"
  86. ],
  87. "summary": "分页列表数据 / page list data",
  88. "parameters": [
  89. {
  90. "type": "string",
  91. "description": "tableName / 数据表名称",
  92. "name": "tableName",
  93. "in": "query"
  94. },
  95. {
  96. "type": "integer",
  97. "description": "pageSize / 页条数",
  98. "name": "pageSize",
  99. "in": "query"
  100. },
  101. {
  102. "type": "integer",
  103. "description": "pageIndex / 页码",
  104. "name": "pageIndex",
  105. "in": "query"
  106. }
  107. ],
  108. "responses": {
  109. "200": {
  110. "description": "{\"code\": 200, \"data\": [...]}",
  111. "schema": {
  112. "$ref": "#/definitions/response.Response"
  113. }
  114. }
  115. }
  116. }
  117. },
  118. "/api/v1/db/tables/page": {
  119. "get": {
  120. "description": "数据库表分页列表 / database table page list",
  121. "tags": [
  122. "工具 / 生成工具"
  123. ],
  124. "summary": "分页列表数据 / page list data",
  125. "parameters": [
  126. {
  127. "type": "string",
  128. "description": "tableName / 数据表名称",
  129. "name": "tableName",
  130. "in": "query"
  131. },
  132. {
  133. "type": "integer",
  134. "description": "pageSize / 页条数",
  135. "name": "pageSize",
  136. "in": "query"
  137. },
  138. {
  139. "type": "integer",
  140. "description": "pageIndex / 页码",
  141. "name": "pageIndex",
  142. "in": "query"
  143. }
  144. ],
  145. "responses": {
  146. "200": {
  147. "description": "{\"code\": 200, \"data\": [...]}",
  148. "schema": {
  149. "$ref": "#/definitions/response.Response"
  150. }
  151. }
  152. }
  153. }
  154. },
  155. "/api/v1/dept": {
  156. "get": {
  157. "security": [
  158. {
  159. "Bearer": []
  160. }
  161. ],
  162. "description": "分页列表",
  163. "tags": [
  164. "部门"
  165. ],
  166. "summary": "分页部门列表数据",
  167. "parameters": [
  168. {
  169. "type": "string",
  170. "description": "deptName",
  171. "name": "deptName",
  172. "in": "query"
  173. },
  174. {
  175. "type": "string",
  176. "description": "deptId",
  177. "name": "deptId",
  178. "in": "query"
  179. },
  180. {
  181. "type": "string",
  182. "description": "position",
  183. "name": "position",
  184. "in": "query"
  185. }
  186. ],
  187. "responses": {
  188. "200": {
  189. "description": "{\"code\": 200, \"data\": [...]}",
  190. "schema": {
  191. "$ref": "#/definitions/response.Response"
  192. }
  193. }
  194. }
  195. },
  196. "post": {
  197. "security": [
  198. {
  199. "Bearer": []
  200. }
  201. ],
  202. "description": "获取JSON",
  203. "consumes": [
  204. "application/json"
  205. ],
  206. "tags": [
  207. "部门"
  208. ],
  209. "summary": "添加部门",
  210. "parameters": [
  211. {
  212. "description": "data",
  213. "name": "data",
  214. "in": "body",
  215. "required": true,
  216. "schema": {
  217. "$ref": "#/definitions/dto.SysDeptInsertReq"
  218. }
  219. }
  220. ],
  221. "responses": {
  222. "200": {
  223. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  224. "schema": {
  225. "type": "string"
  226. }
  227. }
  228. }
  229. },
  230. "delete": {
  231. "security": [
  232. {
  233. "Bearer": []
  234. }
  235. ],
  236. "description": "删除数据",
  237. "tags": [
  238. "部门"
  239. ],
  240. "summary": "删除部门",
  241. "parameters": [
  242. {
  243. "description": "body",
  244. "name": "data",
  245. "in": "body",
  246. "required": true,
  247. "schema": {
  248. "$ref": "#/definitions/dto.SysDeptDeleteReq"
  249. }
  250. }
  251. ],
  252. "responses": {
  253. "200": {
  254. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  255. "schema": {
  256. "type": "string"
  257. }
  258. }
  259. }
  260. }
  261. },
  262. "/api/v1/dept/{deptId}": {
  263. "get": {
  264. "security": [
  265. {
  266. "Bearer": []
  267. }
  268. ],
  269. "description": "获取JSON",
  270. "tags": [
  271. "部门"
  272. ],
  273. "summary": "获取部门数据",
  274. "parameters": [
  275. {
  276. "type": "string",
  277. "description": "deptId",
  278. "name": "deptId",
  279. "in": "path"
  280. }
  281. ],
  282. "responses": {
  283. "200": {
  284. "description": "{\"code\": 200, \"data\": [...]}",
  285. "schema": {
  286. "$ref": "#/definitions/response.Response"
  287. }
  288. }
  289. }
  290. },
  291. "put": {
  292. "security": [
  293. {
  294. "Bearer": []
  295. }
  296. ],
  297. "description": "获取JSON",
  298. "consumes": [
  299. "application/json"
  300. ],
  301. "tags": [
  302. "部门"
  303. ],
  304. "summary": "修改部门",
  305. "parameters": [
  306. {
  307. "type": "integer",
  308. "description": "id",
  309. "name": "id",
  310. "in": "path",
  311. "required": true
  312. },
  313. {
  314. "description": "body",
  315. "name": "data",
  316. "in": "body",
  317. "required": true,
  318. "schema": {
  319. "$ref": "#/definitions/dto.SysDeptUpdateReq"
  320. }
  321. }
  322. ],
  323. "responses": {
  324. "200": {
  325. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  326. "schema": {
  327. "type": "string"
  328. }
  329. }
  330. }
  331. }
  332. },
  333. "/api/v1/dict-data/option-select": {
  334. "get": {
  335. "security": [
  336. {
  337. "Bearer": []
  338. }
  339. ],
  340. "description": "数据字典根据key获取",
  341. "tags": [
  342. "字典数据"
  343. ],
  344. "summary": "数据字典根据key获取",
  345. "parameters": [
  346. {
  347. "type": "integer",
  348. "description": "dictType",
  349. "name": "dictType",
  350. "in": "query",
  351. "required": true
  352. }
  353. ],
  354. "responses": {
  355. "200": {
  356. "description": "{\"code\": 200, \"data\": [...]}",
  357. "schema": {
  358. "allOf": [
  359. {
  360. "$ref": "#/definitions/response.Response"
  361. },
  362. {
  363. "type": "object",
  364. "properties": {
  365. "data": {
  366. "type": "array",
  367. "items": {
  368. "$ref": "#/definitions/dto.SysDictDataGetAllResp"
  369. }
  370. }
  371. }
  372. }
  373. ]
  374. }
  375. }
  376. }
  377. }
  378. },
  379. "/api/v1/dict/data": {
  380. "get": {
  381. "security": [
  382. {
  383. "Bearer": []
  384. }
  385. ],
  386. "description": "获取JSON",
  387. "tags": [
  388. "字典数据"
  389. ],
  390. "summary": "字典数据列表",
  391. "parameters": [
  392. {
  393. "type": "string",
  394. "description": "status",
  395. "name": "status",
  396. "in": "query"
  397. },
  398. {
  399. "type": "string",
  400. "description": "dictCode",
  401. "name": "dictCode",
  402. "in": "query"
  403. },
  404. {
  405. "type": "string",
  406. "description": "dictType",
  407. "name": "dictType",
  408. "in": "query"
  409. },
  410. {
  411. "type": "integer",
  412. "description": "页条数",
  413. "name": "pageSize",
  414. "in": "query"
  415. },
  416. {
  417. "type": "integer",
  418. "description": "页码",
  419. "name": "pageIndex",
  420. "in": "query"
  421. }
  422. ],
  423. "responses": {
  424. "200": {
  425. "description": "{\"code\": 200, \"data\": [...]}",
  426. "schema": {
  427. "$ref": "#/definitions/response.Response"
  428. }
  429. }
  430. }
  431. },
  432. "post": {
  433. "security": [
  434. {
  435. "Bearer": []
  436. }
  437. ],
  438. "description": "获取JSON",
  439. "consumes": [
  440. "application/json"
  441. ],
  442. "tags": [
  443. "字典数据"
  444. ],
  445. "summary": "添加字典数据",
  446. "parameters": [
  447. {
  448. "description": "data",
  449. "name": "data",
  450. "in": "body",
  451. "required": true,
  452. "schema": {
  453. "$ref": "#/definitions/dto.SysDictDataInsertReq"
  454. }
  455. }
  456. ],
  457. "responses": {
  458. "200": {
  459. "description": "{\"code\": 200, \"message\": \"添加成功\"}",
  460. "schema": {
  461. "$ref": "#/definitions/response.Response"
  462. }
  463. }
  464. }
  465. },
  466. "delete": {
  467. "security": [
  468. {
  469. "Bearer": []
  470. }
  471. ],
  472. "description": "删除数据",
  473. "tags": [
  474. "字典数据"
  475. ],
  476. "summary": "删除字典数据",
  477. "parameters": [
  478. {
  479. "description": "body",
  480. "name": "dictCode",
  481. "in": "body",
  482. "required": true,
  483. "schema": {
  484. "$ref": "#/definitions/dto.SysDictDataDeleteReq"
  485. }
  486. }
  487. ],
  488. "responses": {
  489. "200": {
  490. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  491. "schema": {
  492. "$ref": "#/definitions/response.Response"
  493. }
  494. }
  495. }
  496. }
  497. },
  498. "/api/v1/dict/data/{dictCode}": {
  499. "get": {
  500. "security": [
  501. {
  502. "Bearer": []
  503. }
  504. ],
  505. "description": "获取JSON",
  506. "tags": [
  507. "字典数据"
  508. ],
  509. "summary": "通过编码获取字典数据",
  510. "parameters": [
  511. {
  512. "type": "integer",
  513. "description": "字典编码",
  514. "name": "dictCode",
  515. "in": "path",
  516. "required": true
  517. }
  518. ],
  519. "responses": {
  520. "200": {
  521. "description": "{\"code\": 200, \"data\": [...]}",
  522. "schema": {
  523. "$ref": "#/definitions/response.Response"
  524. }
  525. }
  526. }
  527. },
  528. "put": {
  529. "security": [
  530. {
  531. "Bearer": []
  532. }
  533. ],
  534. "description": "获取JSON",
  535. "consumes": [
  536. "application/json"
  537. ],
  538. "tags": [
  539. "字典数据"
  540. ],
  541. "summary": "修改字典数据",
  542. "parameters": [
  543. {
  544. "description": "body",
  545. "name": "data",
  546. "in": "body",
  547. "required": true,
  548. "schema": {
  549. "$ref": "#/definitions/dto.SysDictDataUpdateReq"
  550. }
  551. }
  552. ],
  553. "responses": {
  554. "200": {
  555. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  556. "schema": {
  557. "$ref": "#/definitions/response.Response"
  558. }
  559. }
  560. }
  561. }
  562. },
  563. "/api/v1/dict/type": {
  564. "get": {
  565. "security": [
  566. {
  567. "Bearer": []
  568. }
  569. ],
  570. "description": "获取JSON",
  571. "tags": [
  572. "字典类型"
  573. ],
  574. "summary": "字典类型列表数据",
  575. "parameters": [
  576. {
  577. "type": "string",
  578. "description": "dictName",
  579. "name": "dictName",
  580. "in": "query"
  581. },
  582. {
  583. "type": "string",
  584. "description": "dictId",
  585. "name": "dictId",
  586. "in": "query"
  587. },
  588. {
  589. "type": "string",
  590. "description": "dictType",
  591. "name": "dictType",
  592. "in": "query"
  593. },
  594. {
  595. "type": "integer",
  596. "description": "页条数",
  597. "name": "pageSize",
  598. "in": "query"
  599. },
  600. {
  601. "type": "integer",
  602. "description": "页码",
  603. "name": "pageIndex",
  604. "in": "query"
  605. }
  606. ],
  607. "responses": {
  608. "200": {
  609. "description": "{\"code\": 200, \"data\": [...]}",
  610. "schema": {
  611. "$ref": "#/definitions/response.Response"
  612. }
  613. }
  614. }
  615. },
  616. "post": {
  617. "security": [
  618. {
  619. "Bearer": []
  620. }
  621. ],
  622. "description": "获取JSON",
  623. "consumes": [
  624. "application/json"
  625. ],
  626. "tags": [
  627. "字典类型"
  628. ],
  629. "summary": "添加字典类型",
  630. "parameters": [
  631. {
  632. "description": "data",
  633. "name": "data",
  634. "in": "body",
  635. "required": true,
  636. "schema": {
  637. "$ref": "#/definitions/dto.SysDictTypeInsertReq"
  638. }
  639. }
  640. ],
  641. "responses": {
  642. "200": {
  643. "description": "{\"code\": 200, \"data\": [...]}",
  644. "schema": {
  645. "$ref": "#/definitions/response.Response"
  646. }
  647. }
  648. }
  649. },
  650. "delete": {
  651. "security": [
  652. {
  653. "Bearer": []
  654. }
  655. ],
  656. "description": "删除数据",
  657. "tags": [
  658. "字典类型"
  659. ],
  660. "summary": "删除字典类型",
  661. "parameters": [
  662. {
  663. "description": "body",
  664. "name": "dictCode",
  665. "in": "body",
  666. "required": true,
  667. "schema": {
  668. "$ref": "#/definitions/dto.SysDictTypeDeleteReq"
  669. }
  670. }
  671. ],
  672. "responses": {
  673. "200": {
  674. "description": "{\"code\": 200, \"data\": [...]}",
  675. "schema": {
  676. "$ref": "#/definitions/response.Response"
  677. }
  678. }
  679. }
  680. }
  681. },
  682. "/api/v1/dict/type-option-select": {
  683. "get": {
  684. "security": [
  685. {
  686. "Bearer": []
  687. }
  688. ],
  689. "description": "获取JSON",
  690. "tags": [
  691. "字典类型"
  692. ],
  693. "summary": "字典类型全部数据 代码生成使用接口",
  694. "parameters": [
  695. {
  696. "type": "string",
  697. "description": "dictName",
  698. "name": "dictName",
  699. "in": "query"
  700. },
  701. {
  702. "type": "string",
  703. "description": "dictId",
  704. "name": "dictId",
  705. "in": "query"
  706. },
  707. {
  708. "type": "string",
  709. "description": "dictType",
  710. "name": "dictType",
  711. "in": "query"
  712. }
  713. ],
  714. "responses": {
  715. "200": {
  716. "description": "{\"code\": 200, \"data\": [...]}",
  717. "schema": {
  718. "$ref": "#/definitions/response.Response"
  719. }
  720. }
  721. }
  722. }
  723. },
  724. "/api/v1/dict/type/{dictId}": {
  725. "get": {
  726. "security": [
  727. {
  728. "Bearer": []
  729. }
  730. ],
  731. "description": "获取JSON",
  732. "tags": [
  733. "字典类型"
  734. ],
  735. "summary": "字典类型通过字典id获取",
  736. "parameters": [
  737. {
  738. "type": "integer",
  739. "description": "字典类型编码",
  740. "name": "dictId",
  741. "in": "path",
  742. "required": true
  743. }
  744. ],
  745. "responses": {
  746. "200": {
  747. "description": "{\"code\": 200, \"data\": [...]}",
  748. "schema": {
  749. "$ref": "#/definitions/response.Response"
  750. }
  751. }
  752. }
  753. },
  754. "put": {
  755. "security": [
  756. {
  757. "Bearer": []
  758. }
  759. ],
  760. "description": "获取JSON",
  761. "consumes": [
  762. "application/json"
  763. ],
  764. "tags": [
  765. "字典类型"
  766. ],
  767. "summary": "修改字典类型",
  768. "parameters": [
  769. {
  770. "description": "body",
  771. "name": "data",
  772. "in": "body",
  773. "required": true,
  774. "schema": {
  775. "$ref": "#/definitions/dto.SysDictTypeUpdateReq"
  776. }
  777. }
  778. ],
  779. "responses": {
  780. "200": {
  781. "description": "{\"code\": 200, \"data\": [...]}",
  782. "schema": {
  783. "$ref": "#/definitions/response.Response"
  784. }
  785. }
  786. }
  787. }
  788. },
  789. "/api/v1/getinfo": {
  790. "get": {
  791. "security": [
  792. {
  793. "Bearer": []
  794. }
  795. ],
  796. "description": "获取JSON",
  797. "tags": [
  798. "个人中心"
  799. ],
  800. "summary": "获取个人信息",
  801. "responses": {
  802. "200": {
  803. "description": "{\"code\": 200, \"data\": [...]}",
  804. "schema": {
  805. "$ref": "#/definitions/response.Response"
  806. }
  807. }
  808. }
  809. }
  810. },
  811. "/api/v1/login": {
  812. "post": {
  813. "description": "获取token\nLoginHandler can be used by clients to get a jwt token.\nPayload needs to be json in the form of {\"username\": \"USERNAME\", \"password\": \"PASSWORD\"}.\nReply will be of the form {\"token\": \"TOKEN\"}.\ndev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password\n注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值",
  814. "consumes": [
  815. "application/json"
  816. ],
  817. "tags": [
  818. "登陆"
  819. ],
  820. "summary": "登陆",
  821. "parameters": [
  822. {
  823. "description": "account",
  824. "name": "account",
  825. "in": "body",
  826. "required": true,
  827. "schema": {
  828. "$ref": "#/definitions/handler.Login"
  829. }
  830. }
  831. ],
  832. "responses": {
  833. "200": {
  834. "description": "{\"code\": 200, \"expire\": \"2019-08-07T12:45:48+08:00\", \"token\": \".eyJleHAiOjE1NjUxNTMxNDgsImlkIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTU2NTE0OTU0OH0.-zvzHvbg0A\" }",
  835. "schema": {
  836. "type": "string"
  837. }
  838. }
  839. }
  840. }
  841. },
  842. "/api/v1/menu": {
  843. "get": {
  844. "security": [
  845. {
  846. "Bearer": []
  847. }
  848. ],
  849. "description": "获取JSON",
  850. "tags": [
  851. "菜单"
  852. ],
  853. "summary": "Menu列表数据",
  854. "parameters": [
  855. {
  856. "type": "string",
  857. "description": "menuName",
  858. "name": "menuName",
  859. "in": "query"
  860. }
  861. ],
  862. "responses": {
  863. "200": {
  864. "description": "{\"code\": 200, \"data\": [...]}",
  865. "schema": {
  866. "$ref": "#/definitions/response.Response"
  867. }
  868. }
  869. }
  870. },
  871. "post": {
  872. "security": [
  873. {
  874. "Bearer": []
  875. }
  876. ],
  877. "description": "获取JSON",
  878. "consumes": [
  879. "application/json"
  880. ],
  881. "tags": [
  882. "菜单"
  883. ],
  884. "summary": "创建菜单",
  885. "parameters": [
  886. {
  887. "description": "data",
  888. "name": "data",
  889. "in": "body",
  890. "required": true,
  891. "schema": {
  892. "$ref": "#/definitions/dto.SysMenuInsertReq"
  893. }
  894. }
  895. ],
  896. "responses": {
  897. "200": {
  898. "description": "{\"code\": 200, \"data\": [...]}",
  899. "schema": {
  900. "$ref": "#/definitions/response.Response"
  901. }
  902. }
  903. }
  904. },
  905. "delete": {
  906. "security": [
  907. {
  908. "Bearer": []
  909. }
  910. ],
  911. "description": "删除数据",
  912. "tags": [
  913. "菜单"
  914. ],
  915. "summary": "删除菜单",
  916. "parameters": [
  917. {
  918. "description": "body",
  919. "name": "data",
  920. "in": "body",
  921. "required": true,
  922. "schema": {
  923. "$ref": "#/definitions/dto.SysMenuDeleteReq"
  924. }
  925. }
  926. ],
  927. "responses": {
  928. "200": {
  929. "description": "{\"code\": 200, \"data\": [...]}",
  930. "schema": {
  931. "$ref": "#/definitions/response.Response"
  932. }
  933. }
  934. }
  935. }
  936. },
  937. "/api/v1/menu/{id}": {
  938. "get": {
  939. "security": [
  940. {
  941. "Bearer": []
  942. }
  943. ],
  944. "description": "获取JSON",
  945. "tags": [
  946. "菜单"
  947. ],
  948. "summary": "Menu详情数据",
  949. "parameters": [
  950. {
  951. "type": "string",
  952. "description": "id",
  953. "name": "id",
  954. "in": "path"
  955. }
  956. ],
  957. "responses": {
  958. "200": {
  959. "description": "{\"code\": 200, \"data\": [...]}",
  960. "schema": {
  961. "$ref": "#/definitions/response.Response"
  962. }
  963. }
  964. }
  965. },
  966. "put": {
  967. "security": [
  968. {
  969. "Bearer": []
  970. }
  971. ],
  972. "description": "获取JSON",
  973. "consumes": [
  974. "application/json"
  975. ],
  976. "tags": [
  977. "菜单"
  978. ],
  979. "summary": "修改菜单",
  980. "parameters": [
  981. {
  982. "type": "integer",
  983. "description": "id",
  984. "name": "id",
  985. "in": "path",
  986. "required": true
  987. },
  988. {
  989. "description": "body",
  990. "name": "data",
  991. "in": "body",
  992. "required": true,
  993. "schema": {
  994. "$ref": "#/definitions/dto.SysMenuUpdateReq"
  995. }
  996. }
  997. ],
  998. "responses": {
  999. "200": {
  1000. "description": "{\"code\": 200, \"data\": [...]}",
  1001. "schema": {
  1002. "$ref": "#/definitions/response.Response"
  1003. }
  1004. }
  1005. }
  1006. }
  1007. },
  1008. "/api/v1/menuTreeselect/{roleId}": {
  1009. "get": {
  1010. "security": [
  1011. {
  1012. "Bearer": []
  1013. }
  1014. ],
  1015. "description": "获取JSON",
  1016. "consumes": [
  1017. "application/json"
  1018. ],
  1019. "tags": [
  1020. "菜单"
  1021. ],
  1022. "summary": "角色修改使用的菜单列表",
  1023. "parameters": [
  1024. {
  1025. "type": "integer",
  1026. "description": "roleId",
  1027. "name": "roleId",
  1028. "in": "path",
  1029. "required": true
  1030. }
  1031. ],
  1032. "responses": {
  1033. "200": {
  1034. "description": "{\"code\": 200, \"data\": [...]}",
  1035. "schema": {
  1036. "$ref": "#/definitions/response.Response"
  1037. }
  1038. }
  1039. }
  1040. }
  1041. },
  1042. "/api/v1/menurole": {
  1043. "get": {
  1044. "security": [
  1045. {
  1046. "Bearer": []
  1047. }
  1048. ],
  1049. "description": "获取JSON",
  1050. "tags": [
  1051. "菜单"
  1052. ],
  1053. "summary": "根据登录角色名称获取菜单列表数据(左菜单使用)",
  1054. "responses": {
  1055. "200": {
  1056. "description": "{\"code\": 200, \"data\": [...]}",
  1057. "schema": {
  1058. "$ref": "#/definitions/response.Response"
  1059. }
  1060. }
  1061. }
  1062. }
  1063. },
  1064. "/api/v1/post": {
  1065. "get": {
  1066. "security": [
  1067. {
  1068. "Bearer": []
  1069. }
  1070. ],
  1071. "description": "获取JSON",
  1072. "tags": [
  1073. "岗位"
  1074. ],
  1075. "summary": "岗位列表数据",
  1076. "parameters": [
  1077. {
  1078. "type": "string",
  1079. "description": "postName",
  1080. "name": "postName",
  1081. "in": "query"
  1082. },
  1083. {
  1084. "type": "string",
  1085. "description": "postCode",
  1086. "name": "postCode",
  1087. "in": "query"
  1088. },
  1089. {
  1090. "type": "string",
  1091. "description": "postId",
  1092. "name": "postId",
  1093. "in": "query"
  1094. },
  1095. {
  1096. "type": "string",
  1097. "description": "status",
  1098. "name": "status",
  1099. "in": "query"
  1100. }
  1101. ],
  1102. "responses": {
  1103. "200": {
  1104. "description": "{\"code\": 200, \"data\": [...]}",
  1105. "schema": {
  1106. "$ref": "#/definitions/response.Response"
  1107. }
  1108. }
  1109. }
  1110. },
  1111. "post": {
  1112. "security": [
  1113. {
  1114. "Bearer": []
  1115. }
  1116. ],
  1117. "description": "获取JSON",
  1118. "consumes": [
  1119. "application/json"
  1120. ],
  1121. "tags": [
  1122. "岗位"
  1123. ],
  1124. "summary": "添加岗位",
  1125. "parameters": [
  1126. {
  1127. "description": "data",
  1128. "name": "data",
  1129. "in": "body",
  1130. "required": true,
  1131. "schema": {
  1132. "$ref": "#/definitions/dto.SysPostInsertReq"
  1133. }
  1134. }
  1135. ],
  1136. "responses": {
  1137. "200": {
  1138. "description": "{\"code\": 200, \"data\": [...]}",
  1139. "schema": {
  1140. "$ref": "#/definitions/response.Response"
  1141. }
  1142. }
  1143. }
  1144. },
  1145. "delete": {
  1146. "security": [
  1147. {
  1148. "Bearer": []
  1149. }
  1150. ],
  1151. "description": "删除数据",
  1152. "tags": [
  1153. "岗位"
  1154. ],
  1155. "summary": "删除岗位",
  1156. "parameters": [
  1157. {
  1158. "description": "请求参数",
  1159. "name": "id",
  1160. "in": "body",
  1161. "required": true,
  1162. "schema": {
  1163. "$ref": "#/definitions/dto.SysPostDeleteReq"
  1164. }
  1165. }
  1166. ],
  1167. "responses": {
  1168. "200": {
  1169. "description": "{\"code\": 200, \"data\": [...]}",
  1170. "schema": {
  1171. "$ref": "#/definitions/response.Response"
  1172. }
  1173. }
  1174. }
  1175. }
  1176. },
  1177. "/api/v1/post/{id}": {
  1178. "put": {
  1179. "security": [
  1180. {
  1181. "Bearer": []
  1182. }
  1183. ],
  1184. "description": "获取JSON",
  1185. "consumes": [
  1186. "application/json"
  1187. ],
  1188. "tags": [
  1189. "岗位"
  1190. ],
  1191. "summary": "修改岗位",
  1192. "parameters": [
  1193. {
  1194. "description": "body",
  1195. "name": "data",
  1196. "in": "body",
  1197. "required": true,
  1198. "schema": {
  1199. "$ref": "#/definitions/dto.SysPostUpdateReq"
  1200. }
  1201. }
  1202. ],
  1203. "responses": {
  1204. "200": {
  1205. "description": "{\"code\": 200, \"data\": [...]}",
  1206. "schema": {
  1207. "$ref": "#/definitions/response.Response"
  1208. }
  1209. }
  1210. }
  1211. }
  1212. },
  1213. "/api/v1/post/{postId}": {
  1214. "get": {
  1215. "security": [
  1216. {
  1217. "Bearer": []
  1218. }
  1219. ],
  1220. "description": "获取JSON",
  1221. "tags": [
  1222. "岗位"
  1223. ],
  1224. "summary": "获取岗位信息",
  1225. "parameters": [
  1226. {
  1227. "type": "integer",
  1228. "description": "编码",
  1229. "name": "id",
  1230. "in": "path",
  1231. "required": true
  1232. }
  1233. ],
  1234. "responses": {
  1235. "200": {
  1236. "description": "{\"code\": 200, \"data\": [...]}",
  1237. "schema": {
  1238. "$ref": "#/definitions/response.Response"
  1239. }
  1240. }
  1241. }
  1242. }
  1243. },
  1244. "/api/v1/public/uploadFile": {
  1245. "post": {
  1246. "security": [
  1247. {
  1248. "Bearer": []
  1249. }
  1250. ],
  1251. "description": "获取JSON",
  1252. "consumes": [
  1253. "multipart/form-data"
  1254. ],
  1255. "tags": [
  1256. "公共接口"
  1257. ],
  1258. "summary": "上传图片",
  1259. "parameters": [
  1260. {
  1261. "type": "string",
  1262. "description": "type",
  1263. "name": "type",
  1264. "in": "query",
  1265. "required": true
  1266. },
  1267. {
  1268. "type": "file",
  1269. "description": "file",
  1270. "name": "file",
  1271. "in": "formData",
  1272. "required": true
  1273. }
  1274. ],
  1275. "responses": {
  1276. "200": {
  1277. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1278. "schema": {
  1279. "type": "string"
  1280. }
  1281. }
  1282. }
  1283. }
  1284. },
  1285. "/api/v1/role": {
  1286. "get": {
  1287. "security": [
  1288. {
  1289. "Bearer": []
  1290. }
  1291. ],
  1292. "description": "Get JSON",
  1293. "tags": [
  1294. "角色/Role"
  1295. ],
  1296. "summary": "角色列表数据",
  1297. "parameters": [
  1298. {
  1299. "type": "string",
  1300. "description": "roleName",
  1301. "name": "roleName",
  1302. "in": "query"
  1303. },
  1304. {
  1305. "type": "string",
  1306. "description": "status",
  1307. "name": "status",
  1308. "in": "query"
  1309. },
  1310. {
  1311. "type": "string",
  1312. "description": "roleKey",
  1313. "name": "roleKey",
  1314. "in": "query"
  1315. },
  1316. {
  1317. "type": "integer",
  1318. "description": "页条数",
  1319. "name": "pageSize",
  1320. "in": "query"
  1321. },
  1322. {
  1323. "type": "integer",
  1324. "description": "页码",
  1325. "name": "pageIndex",
  1326. "in": "query"
  1327. }
  1328. ],
  1329. "responses": {
  1330. "200": {
  1331. "description": "{\"code\": 200, \"data\": [...]}",
  1332. "schema": {
  1333. "$ref": "#/definitions/response.Response"
  1334. }
  1335. }
  1336. }
  1337. },
  1338. "post": {
  1339. "security": [
  1340. {
  1341. "Bearer": []
  1342. }
  1343. ],
  1344. "description": "获取JSON",
  1345. "consumes": [
  1346. "application/json"
  1347. ],
  1348. "tags": [
  1349. "角色/Role"
  1350. ],
  1351. "summary": "创建角色",
  1352. "parameters": [
  1353. {
  1354. "description": "data",
  1355. "name": "data",
  1356. "in": "body",
  1357. "required": true,
  1358. "schema": {
  1359. "$ref": "#/definitions/dto.SysRoleInsertReq"
  1360. }
  1361. }
  1362. ],
  1363. "responses": {
  1364. "200": {
  1365. "description": "{\"code\": 200, \"data\": [...]}",
  1366. "schema": {
  1367. "$ref": "#/definitions/response.Response"
  1368. }
  1369. }
  1370. }
  1371. },
  1372. "delete": {
  1373. "security": [
  1374. {
  1375. "Bearer": []
  1376. }
  1377. ],
  1378. "description": "删除数据",
  1379. "tags": [
  1380. "角色/Role"
  1381. ],
  1382. "summary": "删除用户角色",
  1383. "parameters": [
  1384. {
  1385. "description": "body",
  1386. "name": "data",
  1387. "in": "body",
  1388. "required": true,
  1389. "schema": {
  1390. "$ref": "#/definitions/dto.SysRoleDeleteReq"
  1391. }
  1392. }
  1393. ],
  1394. "responses": {
  1395. "200": {
  1396. "description": "{\"code\": 200, \"data\": [...]}",
  1397. "schema": {
  1398. "$ref": "#/definitions/response.Response"
  1399. }
  1400. }
  1401. }
  1402. }
  1403. },
  1404. "/api/v1/role-status/{id}": {
  1405. "put": {
  1406. "security": [
  1407. {
  1408. "Bearer": []
  1409. }
  1410. ],
  1411. "description": "获取JSON",
  1412. "consumes": [
  1413. "application/json"
  1414. ],
  1415. "tags": [
  1416. "角色/Role"
  1417. ],
  1418. "summary": "更新角色数据权限",
  1419. "parameters": [
  1420. {
  1421. "description": "body",
  1422. "name": "data",
  1423. "in": "body",
  1424. "required": true,
  1425. "schema": {
  1426. "$ref": "#/definitions/dto.RoleDataScopeReq"
  1427. }
  1428. }
  1429. ],
  1430. "responses": {
  1431. "200": {
  1432. "description": "{\"code\": 200, \"data\": [...]}",
  1433. "schema": {
  1434. "$ref": "#/definitions/response.Response"
  1435. }
  1436. }
  1437. }
  1438. }
  1439. },
  1440. "/api/v1/role/{id}": {
  1441. "get": {
  1442. "security": [
  1443. {
  1444. "Bearer": []
  1445. }
  1446. ],
  1447. "description": "获取JSON",
  1448. "tags": [
  1449. "角色/Role"
  1450. ],
  1451. "summary": "获取Role数据",
  1452. "parameters": [
  1453. {
  1454. "type": "string",
  1455. "description": "roleId",
  1456. "name": "roleId",
  1457. "in": "path"
  1458. }
  1459. ],
  1460. "responses": {
  1461. "200": {
  1462. "description": "{\"code\": 200, \"data\": [...]}",
  1463. "schema": {
  1464. "$ref": "#/definitions/response.Response"
  1465. }
  1466. }
  1467. }
  1468. },
  1469. "put": {
  1470. "security": [
  1471. {
  1472. "Bearer": []
  1473. }
  1474. ],
  1475. "description": "获取JSON",
  1476. "consumes": [
  1477. "application/json"
  1478. ],
  1479. "tags": [
  1480. "角色/Role"
  1481. ],
  1482. "summary": "修改用户角色",
  1483. "parameters": [
  1484. {
  1485. "description": "body",
  1486. "name": "data",
  1487. "in": "body",
  1488. "required": true,
  1489. "schema": {
  1490. "$ref": "#/definitions/dto.SysRoleUpdateReq"
  1491. }
  1492. }
  1493. ],
  1494. "responses": {
  1495. "200": {
  1496. "description": "{\"code\": 200, \"data\": [...]}",
  1497. "schema": {
  1498. "$ref": "#/definitions/response.Response"
  1499. }
  1500. }
  1501. }
  1502. }
  1503. },
  1504. "/api/v1/server-monitor": {
  1505. "get": {
  1506. "security": [
  1507. {
  1508. "Bearer": []
  1509. }
  1510. ],
  1511. "description": "获取JSON",
  1512. "tags": [
  1513. "系统信息"
  1514. ],
  1515. "summary": "系统信息",
  1516. "responses": {
  1517. "200": {
  1518. "description": "{\"code\": 200, \"data\": [...]}",
  1519. "schema": {
  1520. "$ref": "#/definitions/response.Response"
  1521. }
  1522. }
  1523. }
  1524. }
  1525. },
  1526. "/api/v1/set-config": {
  1527. "get": {
  1528. "security": [
  1529. {
  1530. "Bearer": []
  1531. }
  1532. ],
  1533. "description": "界面操作设置配置值的获取",
  1534. "consumes": [
  1535. "application/json"
  1536. ],
  1537. "tags": [
  1538. "配置管理"
  1539. ],
  1540. "summary": "获取配置",
  1541. "responses": {
  1542. "200": {
  1543. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  1544. "schema": {
  1545. "allOf": [
  1546. {
  1547. "$ref": "#/definitions/response.Response"
  1548. },
  1549. {
  1550. "type": "object",
  1551. "properties": {
  1552. "data": {
  1553. "type": "object",
  1554. "additionalProperties": true
  1555. }
  1556. }
  1557. }
  1558. ]
  1559. }
  1560. }
  1561. }
  1562. },
  1563. "put": {
  1564. "security": [
  1565. {
  1566. "Bearer": []
  1567. }
  1568. ],
  1569. "description": "界面操作设置配置值",
  1570. "consumes": [
  1571. "application/json"
  1572. ],
  1573. "tags": [
  1574. "配置管理"
  1575. ],
  1576. "summary": "设置配置",
  1577. "parameters": [
  1578. {
  1579. "description": "body",
  1580. "name": "data",
  1581. "in": "body",
  1582. "required": true,
  1583. "schema": {
  1584. "type": "array",
  1585. "items": {
  1586. "$ref": "#/definitions/dto.GetSetSysConfigReq"
  1587. }
  1588. }
  1589. }
  1590. ],
  1591. "responses": {
  1592. "200": {
  1593. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  1594. "schema": {
  1595. "$ref": "#/definitions/response.Response"
  1596. }
  1597. }
  1598. }
  1599. }
  1600. },
  1601. "/api/v1/sys-api": {
  1602. "get": {
  1603. "security": [
  1604. {
  1605. "Bearer": []
  1606. }
  1607. ],
  1608. "description": "获取接口管理列表",
  1609. "tags": [
  1610. "接口管理"
  1611. ],
  1612. "summary": "获取接口管理列表",
  1613. "parameters": [
  1614. {
  1615. "type": "string",
  1616. "description": "名称",
  1617. "name": "name",
  1618. "in": "query"
  1619. },
  1620. {
  1621. "type": "string",
  1622. "description": "标题",
  1623. "name": "title",
  1624. "in": "query"
  1625. },
  1626. {
  1627. "type": "string",
  1628. "description": "地址",
  1629. "name": "path",
  1630. "in": "query"
  1631. },
  1632. {
  1633. "type": "string",
  1634. "description": "类型",
  1635. "name": "action",
  1636. "in": "query"
  1637. },
  1638. {
  1639. "type": "integer",
  1640. "description": "页条数",
  1641. "name": "pageSize",
  1642. "in": "query"
  1643. },
  1644. {
  1645. "type": "integer",
  1646. "description": "页码",
  1647. "name": "pageIndex",
  1648. "in": "query"
  1649. }
  1650. ],
  1651. "responses": {
  1652. "200": {
  1653. "description": "{\"code\": 200, \"data\": [...]}",
  1654. "schema": {
  1655. "allOf": [
  1656. {
  1657. "$ref": "#/definitions/response.Response"
  1658. },
  1659. {
  1660. "type": "object",
  1661. "properties": {
  1662. "data": {
  1663. "allOf": [
  1664. {
  1665. "$ref": "#/definitions/response.Page"
  1666. },
  1667. {
  1668. "type": "object",
  1669. "properties": {
  1670. "list": {
  1671. "type": "array",
  1672. "items": {
  1673. "$ref": "#/definitions/models.SysApi"
  1674. }
  1675. }
  1676. }
  1677. }
  1678. ]
  1679. }
  1680. }
  1681. }
  1682. ]
  1683. }
  1684. }
  1685. }
  1686. },
  1687. "delete": {
  1688. "security": [
  1689. {
  1690. "Bearer": []
  1691. }
  1692. ],
  1693. "description": "删除接口管理",
  1694. "tags": [
  1695. "接口管理"
  1696. ],
  1697. "summary": "删除接口管理",
  1698. "parameters": [
  1699. {
  1700. "description": "body",
  1701. "name": "data",
  1702. "in": "body",
  1703. "required": true,
  1704. "schema": {
  1705. "$ref": "#/definitions/dto.SysApiDeleteReq"
  1706. }
  1707. }
  1708. ],
  1709. "responses": {
  1710. "200": {
  1711. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  1712. "schema": {
  1713. "$ref": "#/definitions/response.Response"
  1714. }
  1715. }
  1716. }
  1717. }
  1718. },
  1719. "/api/v1/sys-api/{id}": {
  1720. "get": {
  1721. "security": [
  1722. {
  1723. "Bearer": []
  1724. }
  1725. ],
  1726. "description": "获取接口管理",
  1727. "tags": [
  1728. "接口管理"
  1729. ],
  1730. "summary": "获取接口管理",
  1731. "parameters": [
  1732. {
  1733. "type": "string",
  1734. "description": "id",
  1735. "name": "id",
  1736. "in": "path"
  1737. }
  1738. ],
  1739. "responses": {
  1740. "200": {
  1741. "description": "{\"code\": 200, \"data\": [...]}",
  1742. "schema": {
  1743. "allOf": [
  1744. {
  1745. "$ref": "#/definitions/response.Response"
  1746. },
  1747. {
  1748. "type": "object",
  1749. "properties": {
  1750. "data": {
  1751. "$ref": "#/definitions/models.SysApi"
  1752. }
  1753. }
  1754. }
  1755. ]
  1756. }
  1757. }
  1758. }
  1759. },
  1760. "put": {
  1761. "security": [
  1762. {
  1763. "Bearer": []
  1764. }
  1765. ],
  1766. "description": "修改接口管理",
  1767. "consumes": [
  1768. "application/json"
  1769. ],
  1770. "tags": [
  1771. "接口管理"
  1772. ],
  1773. "summary": "修改接口管理",
  1774. "parameters": [
  1775. {
  1776. "description": "body",
  1777. "name": "data",
  1778. "in": "body",
  1779. "required": true,
  1780. "schema": {
  1781. "$ref": "#/definitions/dto.SysApiUpdateReq"
  1782. }
  1783. }
  1784. ],
  1785. "responses": {
  1786. "200": {
  1787. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  1788. "schema": {
  1789. "$ref": "#/definitions/response.Response"
  1790. }
  1791. }
  1792. }
  1793. }
  1794. },
  1795. "/api/v1/sys-config": {
  1796. "get": {
  1797. "security": [
  1798. {
  1799. "Bearer": []
  1800. }
  1801. ],
  1802. "description": "获取配置管理列表",
  1803. "tags": [
  1804. "配置管理"
  1805. ],
  1806. "summary": "获取配置管理列表",
  1807. "parameters": [
  1808. {
  1809. "type": "string",
  1810. "description": "名称",
  1811. "name": "configName",
  1812. "in": "query"
  1813. },
  1814. {
  1815. "type": "string",
  1816. "description": "key",
  1817. "name": "configKey",
  1818. "in": "query"
  1819. },
  1820. {
  1821. "type": "string",
  1822. "description": "类型",
  1823. "name": "configType",
  1824. "in": "query"
  1825. },
  1826. {
  1827. "type": "integer",
  1828. "description": "是否前端",
  1829. "name": "isFrontend",
  1830. "in": "query"
  1831. },
  1832. {
  1833. "type": "integer",
  1834. "description": "页条数",
  1835. "name": "pageSize",
  1836. "in": "query"
  1837. },
  1838. {
  1839. "type": "integer",
  1840. "description": "页码",
  1841. "name": "pageIndex",
  1842. "in": "query"
  1843. }
  1844. ],
  1845. "responses": {
  1846. "200": {
  1847. "description": "{\"code\": 200, \"data\": [...]}",
  1848. "schema": {
  1849. "allOf": [
  1850. {
  1851. "$ref": "#/definitions/response.Response"
  1852. },
  1853. {
  1854. "type": "object",
  1855. "properties": {
  1856. "data": {
  1857. "allOf": [
  1858. {
  1859. "$ref": "#/definitions/response.Page"
  1860. },
  1861. {
  1862. "type": "object",
  1863. "properties": {
  1864. "list": {
  1865. "type": "array",
  1866. "items": {
  1867. "$ref": "#/definitions/models.SysApi"
  1868. }
  1869. }
  1870. }
  1871. }
  1872. ]
  1873. }
  1874. }
  1875. }
  1876. ]
  1877. }
  1878. }
  1879. }
  1880. },
  1881. "post": {
  1882. "security": [
  1883. {
  1884. "Bearer": []
  1885. }
  1886. ],
  1887. "description": "创建配置管理",
  1888. "consumes": [
  1889. "application/json"
  1890. ],
  1891. "tags": [
  1892. "配置管理"
  1893. ],
  1894. "summary": "创建配置管理",
  1895. "parameters": [
  1896. {
  1897. "description": "body",
  1898. "name": "data",
  1899. "in": "body",
  1900. "required": true,
  1901. "schema": {
  1902. "$ref": "#/definitions/dto.SysConfigControl"
  1903. }
  1904. }
  1905. ],
  1906. "responses": {
  1907. "200": {
  1908. "description": "{\"code\": 200, \"message\": \"创建成功\"}",
  1909. "schema": {
  1910. "$ref": "#/definitions/response.Response"
  1911. }
  1912. }
  1913. }
  1914. },
  1915. "delete": {
  1916. "security": [
  1917. {
  1918. "Bearer": []
  1919. }
  1920. ],
  1921. "description": "删除配置管理",
  1922. "tags": [
  1923. "配置管理"
  1924. ],
  1925. "summary": "删除配置管理",
  1926. "parameters": [
  1927. {
  1928. "description": "ids",
  1929. "name": "ids",
  1930. "in": "body",
  1931. "schema": {
  1932. "type": "array",
  1933. "items": {
  1934. "type": "integer"
  1935. }
  1936. }
  1937. }
  1938. ],
  1939. "responses": {
  1940. "200": {
  1941. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  1942. "schema": {
  1943. "$ref": "#/definitions/response.Response"
  1944. }
  1945. }
  1946. }
  1947. }
  1948. },
  1949. "/api/v1/sys-config/{id}": {
  1950. "get": {
  1951. "security": [
  1952. {
  1953. "Bearer": []
  1954. }
  1955. ],
  1956. "description": "根据Key获取SysConfig的Service",
  1957. "tags": [
  1958. "配置管理"
  1959. ],
  1960. "summary": "根据Key获取SysConfig的Service",
  1961. "parameters": [
  1962. {
  1963. "type": "string",
  1964. "description": "configKey",
  1965. "name": "configKey",
  1966. "in": "path"
  1967. }
  1968. ],
  1969. "responses": {
  1970. "200": {
  1971. "description": "{\"code\": 200, \"data\": [...]}",
  1972. "schema": {
  1973. "allOf": [
  1974. {
  1975. "$ref": "#/definitions/response.Response"
  1976. },
  1977. {
  1978. "type": "object",
  1979. "properties": {
  1980. "data": {
  1981. "$ref": "#/definitions/dto.SysConfigByKeyReq"
  1982. }
  1983. }
  1984. }
  1985. ]
  1986. }
  1987. }
  1988. }
  1989. },
  1990. "put": {
  1991. "security": [
  1992. {
  1993. "Bearer": []
  1994. }
  1995. ],
  1996. "description": "修改配置管理",
  1997. "consumes": [
  1998. "application/json"
  1999. ],
  2000. "tags": [
  2001. "配置管理"
  2002. ],
  2003. "summary": "修改配置管理",
  2004. "parameters": [
  2005. {
  2006. "description": "body",
  2007. "name": "data",
  2008. "in": "body",
  2009. "required": true,
  2010. "schema": {
  2011. "$ref": "#/definitions/dto.SysConfigControl"
  2012. }
  2013. }
  2014. ],
  2015. "responses": {
  2016. "200": {
  2017. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  2018. "schema": {
  2019. "$ref": "#/definitions/response.Response"
  2020. }
  2021. }
  2022. }
  2023. }
  2024. },
  2025. "/api/v1/sys-login-log": {
  2026. "get": {
  2027. "security": [
  2028. {
  2029. "Bearer": []
  2030. }
  2031. ],
  2032. "description": "获取JSON",
  2033. "tags": [
  2034. "登录日志"
  2035. ],
  2036. "summary": "登录日志列表",
  2037. "parameters": [
  2038. {
  2039. "type": "string",
  2040. "description": "用户名",
  2041. "name": "username",
  2042. "in": "query"
  2043. },
  2044. {
  2045. "type": "string",
  2046. "description": "ip地址",
  2047. "name": "ipaddr",
  2048. "in": "query"
  2049. },
  2050. {
  2051. "type": "string",
  2052. "description": "归属地",
  2053. "name": "loginLocation",
  2054. "in": "query"
  2055. },
  2056. {
  2057. "type": "string",
  2058. "description": "状态",
  2059. "name": "status",
  2060. "in": "query"
  2061. },
  2062. {
  2063. "type": "string",
  2064. "description": "开始时间",
  2065. "name": "beginTime",
  2066. "in": "query"
  2067. },
  2068. {
  2069. "type": "string",
  2070. "description": "结束时间",
  2071. "name": "endTime",
  2072. "in": "query"
  2073. }
  2074. ],
  2075. "responses": {
  2076. "200": {
  2077. "description": "{\"code\": 200, \"data\": [...]}",
  2078. "schema": {
  2079. "$ref": "#/definitions/response.Response"
  2080. }
  2081. }
  2082. }
  2083. },
  2084. "delete": {
  2085. "security": [
  2086. {
  2087. "Bearer": []
  2088. }
  2089. ],
  2090. "description": "登录日志删除",
  2091. "tags": [
  2092. "登录日志"
  2093. ],
  2094. "summary": "登录日志删除",
  2095. "parameters": [
  2096. {
  2097. "description": "body",
  2098. "name": "data",
  2099. "in": "body",
  2100. "required": true,
  2101. "schema": {
  2102. "$ref": "#/definitions/dto.SysLoginLogDeleteReq"
  2103. }
  2104. }
  2105. ],
  2106. "responses": {
  2107. "200": {
  2108. "description": "{\"code\": 200, \"data\": [...]}",
  2109. "schema": {
  2110. "$ref": "#/definitions/response.Response"
  2111. }
  2112. }
  2113. }
  2114. }
  2115. },
  2116. "/api/v1/sys-login-log/{id}": {
  2117. "get": {
  2118. "security": [
  2119. {
  2120. "Bearer": []
  2121. }
  2122. ],
  2123. "description": "获取JSON",
  2124. "tags": [
  2125. "登录日志"
  2126. ],
  2127. "summary": "登录日志通过id获取",
  2128. "parameters": [
  2129. {
  2130. "type": "string",
  2131. "description": "id",
  2132. "name": "id",
  2133. "in": "path"
  2134. }
  2135. ],
  2136. "responses": {
  2137. "200": {
  2138. "description": "{\"code\": 200, \"data\": [...]}",
  2139. "schema": {
  2140. "$ref": "#/definitions/response.Response"
  2141. }
  2142. }
  2143. }
  2144. }
  2145. },
  2146. "/api/v1/sys-opera-log": {
  2147. "get": {
  2148. "security": [
  2149. {
  2150. "Bearer": []
  2151. }
  2152. ],
  2153. "description": "获取JSON",
  2154. "tags": [
  2155. "操作日志"
  2156. ],
  2157. "summary": "操作日志列表",
  2158. "parameters": [
  2159. {
  2160. "type": "string",
  2161. "description": "title",
  2162. "name": "title",
  2163. "in": "query"
  2164. },
  2165. {
  2166. "type": "string",
  2167. "description": "method",
  2168. "name": "method",
  2169. "in": "query"
  2170. },
  2171. {
  2172. "type": "string",
  2173. "description": "requestMethod",
  2174. "name": "requestMethod",
  2175. "in": "query"
  2176. },
  2177. {
  2178. "type": "string",
  2179. "description": "operUrl",
  2180. "name": "operUrl",
  2181. "in": "query"
  2182. },
  2183. {
  2184. "type": "string",
  2185. "description": "operIp",
  2186. "name": "operIp",
  2187. "in": "query"
  2188. },
  2189. {
  2190. "type": "string",
  2191. "description": "status",
  2192. "name": "status",
  2193. "in": "query"
  2194. },
  2195. {
  2196. "type": "string",
  2197. "description": "beginTime",
  2198. "name": "beginTime",
  2199. "in": "query"
  2200. },
  2201. {
  2202. "type": "string",
  2203. "description": "endTime",
  2204. "name": "endTime",
  2205. "in": "query"
  2206. }
  2207. ],
  2208. "responses": {
  2209. "200": {
  2210. "description": "{\"code\": 200, \"data\": [...]}",
  2211. "schema": {
  2212. "$ref": "#/definitions/response.Response"
  2213. }
  2214. }
  2215. }
  2216. },
  2217. "delete": {
  2218. "security": [
  2219. {
  2220. "Bearer": []
  2221. }
  2222. ],
  2223. "description": "删除数据",
  2224. "tags": [
  2225. "操作日志"
  2226. ],
  2227. "summary": "删除操作日志",
  2228. "parameters": [
  2229. {
  2230. "description": "body",
  2231. "name": "data",
  2232. "in": "body",
  2233. "required": true,
  2234. "schema": {
  2235. "$ref": "#/definitions/dto.SysOperaLogDeleteReq"
  2236. }
  2237. }
  2238. ],
  2239. "responses": {
  2240. "200": {
  2241. "description": "{\"code\": 200, \"data\": [...]}",
  2242. "schema": {
  2243. "$ref": "#/definitions/response.Response"
  2244. }
  2245. }
  2246. }
  2247. }
  2248. },
  2249. "/api/v1/sys-opera-log/{id}": {
  2250. "get": {
  2251. "security": [
  2252. {
  2253. "Bearer": []
  2254. }
  2255. ],
  2256. "description": "获取JSON",
  2257. "tags": [
  2258. "操作日志"
  2259. ],
  2260. "summary": "操作日志通过id获取",
  2261. "parameters": [
  2262. {
  2263. "type": "string",
  2264. "description": "id",
  2265. "name": "id",
  2266. "in": "path"
  2267. }
  2268. ],
  2269. "responses": {
  2270. "200": {
  2271. "description": "{\"code\": 200, \"data\": [...]}",
  2272. "schema": {
  2273. "$ref": "#/definitions/response.Response"
  2274. }
  2275. }
  2276. }
  2277. }
  2278. },
  2279. "/api/v1/sys-user": {
  2280. "get": {
  2281. "security": [
  2282. {
  2283. "Bearer": []
  2284. }
  2285. ],
  2286. "description": "获取JSON",
  2287. "tags": [
  2288. "用户"
  2289. ],
  2290. "summary": "列表用户信息数据",
  2291. "parameters": [
  2292. {
  2293. "type": "string",
  2294. "description": "username",
  2295. "name": "username",
  2296. "in": "query"
  2297. }
  2298. ],
  2299. "responses": {
  2300. "200": {
  2301. "description": "{\"code\": 200, \"data\": [...]}",
  2302. "schema": {
  2303. "type": "string"
  2304. }
  2305. }
  2306. }
  2307. },
  2308. "post": {
  2309. "security": [
  2310. {
  2311. "Bearer": []
  2312. }
  2313. ],
  2314. "description": "获取JSON",
  2315. "consumes": [
  2316. "application/json"
  2317. ],
  2318. "tags": [
  2319. "用户"
  2320. ],
  2321. "summary": "创建用户",
  2322. "parameters": [
  2323. {
  2324. "description": "用户数据",
  2325. "name": "data",
  2326. "in": "body",
  2327. "required": true,
  2328. "schema": {
  2329. "$ref": "#/definitions/dto.SysUserInsertReq"
  2330. }
  2331. }
  2332. ],
  2333. "responses": {
  2334. "200": {
  2335. "description": "{\"code\": 200, \"data\": [...]}",
  2336. "schema": {
  2337. "$ref": "#/definitions/response.Response"
  2338. }
  2339. }
  2340. }
  2341. }
  2342. },
  2343. "/api/v1/sys-user/{userId}": {
  2344. "get": {
  2345. "security": [
  2346. {
  2347. "Bearer": []
  2348. }
  2349. ],
  2350. "description": "获取JSON",
  2351. "tags": [
  2352. "用户"
  2353. ],
  2354. "summary": "获取用户",
  2355. "parameters": [
  2356. {
  2357. "type": "integer",
  2358. "description": "用户编码",
  2359. "name": "userId",
  2360. "in": "path",
  2361. "required": true
  2362. }
  2363. ],
  2364. "responses": {
  2365. "200": {
  2366. "description": "{\"code\": 200, \"data\": [...]}",
  2367. "schema": {
  2368. "$ref": "#/definitions/response.Response"
  2369. }
  2370. }
  2371. }
  2372. },
  2373. "put": {
  2374. "security": [
  2375. {
  2376. "Bearer": []
  2377. }
  2378. ],
  2379. "description": "获取JSON",
  2380. "consumes": [
  2381. "application/json"
  2382. ],
  2383. "tags": [
  2384. "用户"
  2385. ],
  2386. "summary": "修改用户数据",
  2387. "parameters": [
  2388. {
  2389. "description": "body",
  2390. "name": "data",
  2391. "in": "body",
  2392. "required": true,
  2393. "schema": {
  2394. "$ref": "#/definitions/dto.SysUserUpdateReq"
  2395. }
  2396. }
  2397. ],
  2398. "responses": {
  2399. "200": {
  2400. "description": "{\"code\": 200, \"data\": [...]}",
  2401. "schema": {
  2402. "$ref": "#/definitions/response.Response"
  2403. }
  2404. }
  2405. }
  2406. },
  2407. "delete": {
  2408. "security": [
  2409. {
  2410. "Bearer": []
  2411. }
  2412. ],
  2413. "description": "删除数据",
  2414. "tags": [
  2415. "用户"
  2416. ],
  2417. "summary": "删除用户数据",
  2418. "parameters": [
  2419. {
  2420. "type": "integer",
  2421. "description": "userId",
  2422. "name": "userId",
  2423. "in": "path",
  2424. "required": true
  2425. }
  2426. ],
  2427. "responses": {
  2428. "200": {
  2429. "description": "{\"code\": 200, \"data\": [...]}",
  2430. "schema": {
  2431. "$ref": "#/definitions/response.Response"
  2432. }
  2433. }
  2434. }
  2435. }
  2436. },
  2437. "/api/v1/sys/tables/info": {
  2438. "put": {
  2439. "security": [
  2440. {
  2441. "Bearer": []
  2442. }
  2443. ],
  2444. "description": "修改表结构",
  2445. "consumes": [
  2446. "application/json"
  2447. ],
  2448. "tags": [
  2449. "工具 / 生成工具"
  2450. ],
  2451. "summary": "修改表结构",
  2452. "parameters": [
  2453. {
  2454. "description": "body",
  2455. "name": "data",
  2456. "in": "body",
  2457. "required": true,
  2458. "schema": {
  2459. "$ref": "#/definitions/tools.SysTables"
  2460. }
  2461. }
  2462. ],
  2463. "responses": {
  2464. "200": {
  2465. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2466. "schema": {
  2467. "type": "string"
  2468. }
  2469. }
  2470. }
  2471. },
  2472. "post": {
  2473. "security": [
  2474. {
  2475. "Bearer": []
  2476. }
  2477. ],
  2478. "description": "添加表结构",
  2479. "consumes": [
  2480. "application/json"
  2481. ],
  2482. "tags": [
  2483. "工具 / 生成工具"
  2484. ],
  2485. "summary": "添加表结构",
  2486. "parameters": [
  2487. {
  2488. "type": "string",
  2489. "description": "tableName / 数据表名称",
  2490. "name": "tables",
  2491. "in": "query"
  2492. }
  2493. ],
  2494. "responses": {
  2495. "200": {
  2496. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2497. "schema": {
  2498. "type": "string"
  2499. }
  2500. }
  2501. }
  2502. }
  2503. },
  2504. "/api/v1/sys/tables/info/{tableId}": {
  2505. "get": {
  2506. "security": [
  2507. {
  2508. "Bearer": []
  2509. }
  2510. ],
  2511. "description": "获取JSON",
  2512. "tags": [
  2513. "工具 / 生成工具"
  2514. ],
  2515. "summary": "获取配置",
  2516. "parameters": [
  2517. {
  2518. "type": "integer",
  2519. "description": "configKey",
  2520. "name": "configKey",
  2521. "in": "path",
  2522. "required": true
  2523. }
  2524. ],
  2525. "responses": {
  2526. "200": {
  2527. "description": "{\"code\": 200, \"data\": [...]}",
  2528. "schema": {
  2529. "$ref": "#/definitions/response.Response"
  2530. }
  2531. }
  2532. }
  2533. },
  2534. "delete": {
  2535. "description": "删除表结构",
  2536. "tags": [
  2537. "工具 / 生成工具"
  2538. ],
  2539. "summary": "删除表结构",
  2540. "parameters": [
  2541. {
  2542. "type": "integer",
  2543. "description": "tableId",
  2544. "name": "tableId",
  2545. "in": "path",
  2546. "required": true
  2547. }
  2548. ],
  2549. "responses": {
  2550. "200": {
  2551. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  2552. "schema": {
  2553. "type": "string"
  2554. }
  2555. }
  2556. }
  2557. }
  2558. },
  2559. "/api/v1/sys/tables/page": {
  2560. "get": {
  2561. "description": "生成表分页列表",
  2562. "tags": [
  2563. "工具 / 生成工具"
  2564. ],
  2565. "summary": "分页列表数据",
  2566. "parameters": [
  2567. {
  2568. "type": "string",
  2569. "description": "tableName / 数据表名称",
  2570. "name": "tableName",
  2571. "in": "query"
  2572. },
  2573. {
  2574. "type": "integer",
  2575. "description": "pageSize / 页条数",
  2576. "name": "pageSize",
  2577. "in": "query"
  2578. },
  2579. {
  2580. "type": "integer",
  2581. "description": "pageIndex / 页码",
  2582. "name": "pageIndex",
  2583. "in": "query"
  2584. }
  2585. ],
  2586. "responses": {
  2587. "200": {
  2588. "description": "{\"code\": 200, \"data\": [...]}",
  2589. "schema": {
  2590. "$ref": "#/definitions/response.Response"
  2591. }
  2592. }
  2593. }
  2594. }
  2595. },
  2596. "/api/v1/user/avatar": {
  2597. "post": {
  2598. "security": [
  2599. {
  2600. "Bearer": []
  2601. }
  2602. ],
  2603. "description": "获取JSON",
  2604. "consumes": [
  2605. "multipart/form-data"
  2606. ],
  2607. "tags": [
  2608. "个人中心"
  2609. ],
  2610. "summary": "修改头像",
  2611. "parameters": [
  2612. {
  2613. "type": "file",
  2614. "description": "file",
  2615. "name": "file",
  2616. "in": "formData",
  2617. "required": true
  2618. }
  2619. ],
  2620. "responses": {
  2621. "200": {
  2622. "description": "{\"code\": 200, \"data\": [...]}",
  2623. "schema": {
  2624. "$ref": "#/definitions/response.Response"
  2625. }
  2626. }
  2627. }
  2628. }
  2629. },
  2630. "/api/v1/user/profile": {
  2631. "get": {
  2632. "security": [
  2633. {
  2634. "Bearer": []
  2635. }
  2636. ],
  2637. "description": "获取JSON",
  2638. "tags": [
  2639. "个人中心"
  2640. ],
  2641. "summary": "获取个人中心用户",
  2642. "responses": {
  2643. "200": {
  2644. "description": "{\"code\": 200, \"data\": [...]}",
  2645. "schema": {
  2646. "$ref": "#/definitions/response.Response"
  2647. }
  2648. }
  2649. }
  2650. }
  2651. },
  2652. "/api/v1/user/pwd/reset": {
  2653. "put": {
  2654. "security": [
  2655. {
  2656. "Bearer": []
  2657. }
  2658. ],
  2659. "description": "获取JSON",
  2660. "consumes": [
  2661. "application/json"
  2662. ],
  2663. "tags": [
  2664. "用户"
  2665. ],
  2666. "summary": "重置用户密码",
  2667. "parameters": [
  2668. {
  2669. "description": "body",
  2670. "name": "data",
  2671. "in": "body",
  2672. "required": true,
  2673. "schema": {
  2674. "$ref": "#/definitions/dto.ResetSysUserPwdReq"
  2675. }
  2676. }
  2677. ],
  2678. "responses": {
  2679. "200": {
  2680. "description": "{\"code\": 200, \"data\": [...]}",
  2681. "schema": {
  2682. "$ref": "#/definitions/response.Response"
  2683. }
  2684. }
  2685. }
  2686. }
  2687. },
  2688. "/api/v1/user/pwd/set": {
  2689. "put": {
  2690. "security": [
  2691. {
  2692. "Bearer": []
  2693. }
  2694. ],
  2695. "description": "获取JSON",
  2696. "consumes": [
  2697. "application/json"
  2698. ],
  2699. "tags": [
  2700. "用户"
  2701. ],
  2702. "summary": "重置密码",
  2703. "parameters": [
  2704. {
  2705. "description": "body",
  2706. "name": "data",
  2707. "in": "body",
  2708. "required": true,
  2709. "schema": {
  2710. "$ref": "#/definitions/dto.PassWord"
  2711. }
  2712. }
  2713. ],
  2714. "responses": {
  2715. "200": {
  2716. "description": "{\"code\": 200, \"data\": [...]}",
  2717. "schema": {
  2718. "$ref": "#/definitions/response.Response"
  2719. }
  2720. }
  2721. }
  2722. }
  2723. },
  2724. "/api/v1/user/status": {
  2725. "put": {
  2726. "security": [
  2727. {
  2728. "Bearer": []
  2729. }
  2730. ],
  2731. "description": "获取JSON",
  2732. "consumes": [
  2733. "application/json"
  2734. ],
  2735. "tags": [
  2736. "用户"
  2737. ],
  2738. "summary": "修改用户状态",
  2739. "parameters": [
  2740. {
  2741. "description": "body",
  2742. "name": "data",
  2743. "in": "body",
  2744. "required": true,
  2745. "schema": {
  2746. "$ref": "#/definitions/dto.UpdateSysUserStatusReq"
  2747. }
  2748. }
  2749. ],
  2750. "responses": {
  2751. "200": {
  2752. "description": "{\"code\": 200, \"data\": [...]}",
  2753. "schema": {
  2754. "$ref": "#/definitions/response.Response"
  2755. }
  2756. }
  2757. }
  2758. }
  2759. },
  2760. "/api/v3/departments": {
  2761. "get": {
  2762. "description": "权限:只能查询到登录员工具有权限的组织",
  2763. "produces": [
  2764. "application/json"
  2765. ],
  2766. "tags": [
  2767. "部门"
  2768. ],
  2769. "summary": "查询部门列表",
  2770. "responses": {
  2771. "200": {
  2772. "description": "OK",
  2773. "schema": {
  2774. "$ref": "#/definitions/controller.DepartmentItemVO"
  2775. }
  2776. }
  2777. }
  2778. }
  2779. },
  2780. "/api/v3/departments/employees": {
  2781. "get": {
  2782. "description": "返回中必然包含参数中提供的deptID的项,即使没有人员与该部门关联。除非该deptID并不存在",
  2783. "produces": [
  2784. "application/json"
  2785. ],
  2786. "tags": [
  2787. "部门"
  2788. ],
  2789. "summary": "查询多个部门下的员工列表",
  2790. "parameters": [
  2791. {
  2792. "type": "array",
  2793. "items": {
  2794. "type": "integer"
  2795. },
  2796. "description": "部门id,支持多个. http://domain/path?deptID=1\u0026deptID=2",
  2797. "name": "deptID",
  2798. "in": "query",
  2799. "required": true
  2800. }
  2801. ],
  2802. "responses": {
  2803. "200": {
  2804. "description": "OK",
  2805. "schema": {
  2806. "$ref": "#/definitions/controller.ListUsersOfDepartmentsRespVO"
  2807. }
  2808. }
  2809. }
  2810. }
  2811. },
  2812. "/api/v3/departments/{deptID}": {
  2813. "put": {
  2814. "consumes": [
  2815. "application/json"
  2816. ],
  2817. "produces": [
  2818. "application/json"
  2819. ],
  2820. "tags": [
  2821. "部门"
  2822. ],
  2823. "summary": "修改某部门信息",
  2824. "parameters": [
  2825. {
  2826. "type": "integer",
  2827. "description": "部门ID",
  2828. "name": "deptID",
  2829. "in": "path",
  2830. "required": true
  2831. },
  2832. {
  2833. "description": "请求体",
  2834. "name": "req-body",
  2835. "in": "body",
  2836. "required": true,
  2837. "schema": {
  2838. "$ref": "#/definitions/controller.UpdateDepartmentReqVO"
  2839. }
  2840. }
  2841. ],
  2842. "responses": {
  2843. "200": {
  2844. "description": "OK",
  2845. "schema": {
  2846. "$ref": "#/definitions/controller.UpdateDepartmentRespVO"
  2847. }
  2848. },
  2849. "400": {
  2850. "description": "缺少必要的参数",
  2851. "schema": {
  2852. "$ref": "#/definitions/controller.ErrVO"
  2853. }
  2854. },
  2855. "404": {
  2856. "description": "没有找到该部门/parentID/adminID",
  2857. "schema": {
  2858. "$ref": "#/definitions/controller.ErrVO"
  2859. }
  2860. }
  2861. }
  2862. },
  2863. "delete": {
  2864. "produces": [
  2865. "application/json"
  2866. ],
  2867. "tags": [
  2868. "部门"
  2869. ],
  2870. "summary": "删除部门",
  2871. "parameters": [
  2872. {
  2873. "type": "integer",
  2874. "description": "部门ID",
  2875. "name": "deptID",
  2876. "in": "path",
  2877. "required": true
  2878. }
  2879. ],
  2880. "responses": {
  2881. "200": {
  2882. "description": "OK",
  2883. "schema": {
  2884. "$ref": "#/definitions/controller.ErrVO"
  2885. }
  2886. },
  2887. "400": {
  2888. "description": "有关联员工,不允许删除",
  2889. "schema": {
  2890. "$ref": "#/definitions/controller.ErrVO"
  2891. }
  2892. },
  2893. "404": {
  2894. "description": "没有找到部门",
  2895. "schema": {
  2896. "$ref": "#/definitions/controller.ErrVO"
  2897. }
  2898. }
  2899. }
  2900. }
  2901. },
  2902. "/api/v3/departments/{deptID}/children/batch": {
  2903. "post": {
  2904. "consumes": [
  2905. "application/json"
  2906. ],
  2907. "produces": [
  2908. "application/json"
  2909. ],
  2910. "tags": [
  2911. "部门"
  2912. ],
  2913. "summary": "批量增加下级组织到某组织",
  2914. "parameters": [
  2915. {
  2916. "type": "integer",
  2917. "description": "上级部门id, 一级目录用0",
  2918. "name": "deptID",
  2919. "in": "path",
  2920. "required": true
  2921. },
  2922. {
  2923. "description": "批量添加请求体",
  2924. "name": "req-body",
  2925. "in": "body",
  2926. "required": true,
  2927. "schema": {
  2928. "$ref": "#/definitions/controller.BatchAddDepartmentItemReqVO"
  2929. }
  2930. }
  2931. ],
  2932. "responses": {
  2933. "200": {
  2934. "description": "OK",
  2935. "schema": {
  2936. "$ref": "#/definitions/controller.BatchAddDepartmentItemRespVO"
  2937. }
  2938. },
  2939. "400": {
  2940. "description": "相同部门名已存在",
  2941. "schema": {
  2942. "$ref": "#/definitions/controller.ErrVO"
  2943. }
  2944. },
  2945. "401": {
  2946. "description": "没有权限",
  2947. "schema": {
  2948. "$ref": "#/definitions/controller.ErrVO"
  2949. }
  2950. },
  2951. "404": {
  2952. "description": "没有找到对应的管理员",
  2953. "schema": {
  2954. "$ref": "#/definitions/controller.ErrVO"
  2955. }
  2956. }
  2957. }
  2958. }
  2959. },
  2960. "/api/v3/departments/{deptID}/users": {
  2961. "post": {
  2962. "consumes": [
  2963. "application/json"
  2964. ],
  2965. "produces": [
  2966. "application/json"
  2967. ],
  2968. "tags": [
  2969. "部门"
  2970. ],
  2971. "summary": "用户尝试加入组织, 手机号匹配",
  2972. "parameters": [
  2973. {
  2974. "description": "req",
  2975. "name": "req",
  2976. "in": "body",
  2977. "required": true,
  2978. "schema": {
  2979. "$ref": "#/definitions/controller.AttachUserToDepartmentReqVO"
  2980. }
  2981. },
  2982. {
  2983. "type": "integer",
  2984. "description": "部门ID",
  2985. "name": "deptID",
  2986. "in": "path",
  2987. "required": true
  2988. }
  2989. ],
  2990. "responses": {
  2991. "200": {
  2992. "description": "OK",
  2993. "schema": {
  2994. "$ref": "#/definitions/controller.AttachUserToDepartmentRespVO"
  2995. }
  2996. },
  2997. "404": {
  2998. "description": "没有找到导入记录",
  2999. "schema": {
  3000. "$ref": "#/definitions/controller.ErrVO"
  3001. }
  3002. }
  3003. }
  3004. }
  3005. },
  3006. "/api/v3/employee": {
  3007. "get": {
  3008. "produces": [
  3009. "application/json"
  3010. ],
  3011. "tags": [
  3012. "员工"
  3013. ],
  3014. "summary": "查询员工列表",
  3015. "parameters": [
  3016. {
  3017. "type": "array",
  3018. "items": {
  3019. "type": "integer"
  3020. },
  3021. "description": "部门ID列表, deptID=1\u0026deptID=2",
  3022. "name": "deptID",
  3023. "in": "query"
  3024. },
  3025. {
  3026. "type": "array",
  3027. "items": {
  3028. "type": "integer"
  3029. },
  3030. "description": "岗位ID列表, occID=1\u0026occID=2",
  3031. "name": "occID",
  3032. "in": "query"
  3033. },
  3034. {
  3035. "type": "string",
  3036. "description": "过滤关键字",
  3037. "name": "filter",
  3038. "in": "query"
  3039. },
  3040. {
  3041. "type": "string",
  3042. "default": "id",
  3043. "description": "排序依据, createdTime/id",
  3044. "name": "orderBy",
  3045. "in": "query"
  3046. },
  3047. {
  3048. "type": "string",
  3049. "default": "desc",
  3050. "description": "排序顺序, asc/desc",
  3051. "name": "order",
  3052. "in": "query"
  3053. },
  3054. {
  3055. "type": "integer",
  3056. "default": 0,
  3057. "description": "分页偏移量",
  3058. "name": "offset",
  3059. "in": "query"
  3060. },
  3061. {
  3062. "maximum": 50,
  3063. "type": "integer",
  3064. "default": 10,
  3065. "description": "分页个数",
  3066. "name": "limit",
  3067. "in": "query"
  3068. }
  3069. ],
  3070. "responses": {
  3071. "200": {
  3072. "description": "OK",
  3073. "schema": {
  3074. "$ref": "#/definitions/controller.ListEmployeeRespVO"
  3075. }
  3076. }
  3077. }
  3078. }
  3079. },
  3080. "/api/v3/employee/batch": {
  3081. "post": {
  3082. "consumes": [
  3083. "application/json"
  3084. ],
  3085. "produces": [
  3086. "application/json"
  3087. ],
  3088. "tags": [
  3089. "员工"
  3090. ],
  3091. "summary": "批量添加员工",
  3092. "parameters": [
  3093. {
  3094. "description": "最多一次50个",
  3095. "name": "req",
  3096. "in": "body",
  3097. "required": true,
  3098. "schema": {
  3099. "$ref": "#/definitions/controller.BatchAddEmployeeReqVO"
  3100. }
  3101. }
  3102. ],
  3103. "responses": {
  3104. "200": {
  3105. "description": "OK",
  3106. "schema": {
  3107. "$ref": "#/definitions/controller.ListEmployeeRespVO"
  3108. }
  3109. },
  3110. "400": {
  3111. "description": "员工信息已存在",
  3112. "schema": {
  3113. "$ref": "#/definitions/controller.ErrVO"
  3114. }
  3115. },
  3116. "451": {
  3117. "description": "超过一次添加的个数",
  3118. "schema": {
  3119. "$ref": "#/definitions/controller.ErrVO"
  3120. }
  3121. }
  3122. }
  3123. },
  3124. "delete": {
  3125. "produces": [
  3126. "application/json"
  3127. ],
  3128. "tags": [
  3129. "员工"
  3130. ],
  3131. "summary": "批量删除员工",
  3132. "parameters": [
  3133. {
  3134. "maximum": 50,
  3135. "type": "array",
  3136. "items": {
  3137. "type": "integer"
  3138. },
  3139. "description": "员工ID, 允许多个 employeeID=1\u0026employeeID=2",
  3140. "name": "employeeID",
  3141. "in": "query",
  3142. "required": true
  3143. }
  3144. ],
  3145. "responses": {
  3146. "200": {
  3147. "description": "OK",
  3148. "schema": {
  3149. "$ref": "#/definitions/controller.ErrVO"
  3150. }
  3151. },
  3152. "400": {
  3153. "description": "一次性删除过多",
  3154. "schema": {
  3155. "$ref": "#/definitions/controller.ErrVO"
  3156. }
  3157. },
  3158. "404": {
  3159. "description": "未找到某员工",
  3160. "schema": {
  3161. "$ref": "#/definitions/controller.ErrVO"
  3162. }
  3163. }
  3164. }
  3165. }
  3166. },
  3167. "/api/v3/employee/batch/import": {
  3168. "post": {
  3169. "consumes": [
  3170. "application/x-www-form-urlencoded"
  3171. ],
  3172. "produces": [
  3173. "application/json"
  3174. ],
  3175. "tags": [
  3176. "员工"
  3177. ],
  3178. "summary": "批量导入员工",
  3179. "parameters": [
  3180. {
  3181. "type": "string",
  3182. "description": "formData中对应文件的字段",
  3183. "name": "file",
  3184. "in": "formData",
  3185. "required": true
  3186. }
  3187. ],
  3188. "responses": {
  3189. "200": {
  3190. "description": "OK",
  3191. "schema": {
  3192. "$ref": "#/definitions/controller.ListEmployeeRespVO"
  3193. }
  3194. },
  3195. "400": {
  3196. "description": "员工信息已存在",
  3197. "schema": {
  3198. "$ref": "#/definitions/controller.ErrVO"
  3199. }
  3200. },
  3201. "451": {
  3202. "description": "超过一次添加的个数",
  3203. "schema": {
  3204. "$ref": "#/definitions/controller.ErrVO"
  3205. }
  3206. }
  3207. }
  3208. }
  3209. },
  3210. "/api/v3/employee/batch/template": {
  3211. "get": {
  3212. "produces": [
  3213. "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
  3214. ],
  3215. "tags": [
  3216. "员工"
  3217. ],
  3218. "summary": "获取批量导入的模板文件",
  3219. "responses": {
  3220. "200": {
  3221. "description": "xlsx文件",
  3222. "schema": {
  3223. "type": "string"
  3224. }
  3225. }
  3226. }
  3227. }
  3228. },
  3229. "/api/v3/employee/tag/batch": {
  3230. "post": {
  3231. "consumes": [
  3232. "application/json"
  3233. ],
  3234. "produces": [
  3235. "application/json"
  3236. ],
  3237. "tags": [
  3238. "员工"
  3239. ],
  3240. "summary": "批量设置员工的部门和岗位",
  3241. "parameters": [
  3242. {
  3243. "description": "单次最多50个",
  3244. "name": "req",
  3245. "in": "body",
  3246. "required": true,
  3247. "schema": {
  3248. "$ref": "#/definitions/controller.BatchTagWithDepartmentAndOccupationReqVO"
  3249. }
  3250. }
  3251. ],
  3252. "responses": {
  3253. "200": {
  3254. "description": "OK",
  3255. "schema": {
  3256. "$ref": "#/definitions/controller.ErrVO"
  3257. }
  3258. },
  3259. "400": {
  3260. "description": "单次操作数目过大",
  3261. "schema": {
  3262. "$ref": "#/definitions/controller.ErrVO"
  3263. }
  3264. },
  3265. "404": {
  3266. "description": "未找到员工",
  3267. "schema": {
  3268. "$ref": "#/definitions/controller.ErrVO"
  3269. }
  3270. },
  3271. "454": {
  3272. "description": "未找到部门",
  3273. "schema": {
  3274. "$ref": "#/definitions/controller.ErrVO"
  3275. }
  3276. },
  3277. "464": {
  3278. "description": "未找到岗位",
  3279. "schema": {
  3280. "$ref": "#/definitions/controller.ErrVO"
  3281. }
  3282. }
  3283. }
  3284. }
  3285. },
  3286. "/api/v3/employee/{employeeID}": {
  3287. "put": {
  3288. "consumes": [
  3289. "application/json"
  3290. ],
  3291. "produces": [
  3292. "application/json"
  3293. ],
  3294. "tags": [
  3295. "员工"
  3296. ],
  3297. "summary": "编辑员工信息",
  3298. "parameters": [
  3299. {
  3300. "type": "integer",
  3301. "description": "员工ID",
  3302. "name": "employeeID",
  3303. "in": "path",
  3304. "required": true
  3305. },
  3306. {
  3307. "description": "允许省略字段, 至少一个字段",
  3308. "name": "req",
  3309. "in": "body",
  3310. "required": true,
  3311. "schema": {
  3312. "$ref": "#/definitions/controller.UpdateEmployeeItemVO"
  3313. }
  3314. }
  3315. ],
  3316. "responses": {
  3317. "200": {
  3318. "description": "OK",
  3319. "schema": {
  3320. "$ref": "#/definitions/controller.ErrVO"
  3321. }
  3322. },
  3323. "400": {
  3324. "description": "参数错误",
  3325. "schema": {
  3326. "$ref": "#/definitions/controller.ErrVO"
  3327. }
  3328. },
  3329. "404": {
  3330. "description": "员工未找到",
  3331. "schema": {
  3332. "$ref": "#/definitions/controller.ErrVO"
  3333. }
  3334. }
  3335. }
  3336. },
  3337. "delete": {
  3338. "produces": [
  3339. "application/json"
  3340. ],
  3341. "tags": [
  3342. "员工"
  3343. ],
  3344. "summary": "删除单个员工",
  3345. "parameters": [
  3346. {
  3347. "type": "integer",
  3348. "description": "员工ID",
  3349. "name": "employeeID",
  3350. "in": "path",
  3351. "required": true
  3352. }
  3353. ],
  3354. "responses": {
  3355. "200": {
  3356. "description": "OK",
  3357. "schema": {
  3358. "$ref": "#/definitions/controller.ErrVO"
  3359. }
  3360. },
  3361. "404": {
  3362. "description": "未找到该员工",
  3363. "schema": {
  3364. "$ref": "#/definitions/controller.ErrVO"
  3365. }
  3366. }
  3367. }
  3368. }
  3369. },
  3370. "/api/v3/occupations": {
  3371. "get": {
  3372. "produces": [
  3373. "application/json"
  3374. ],
  3375. "tags": [
  3376. "岗位"
  3377. ],
  3378. "summary": "查询岗位列表",
  3379. "parameters": [
  3380. {
  3381. "type": "string",
  3382. "default": "id",
  3383. "description": "排序标准,关联员工数量userCnt/创建时间createdTime/id",
  3384. "name": "orderBy",
  3385. "in": "query"
  3386. },
  3387. {
  3388. "type": "string",
  3389. "default": "desc",
  3390. "description": "排序顺序,顺序asc/倒序desc",
  3391. "name": "order",
  3392. "in": "query"
  3393. },
  3394. {
  3395. "type": "integer",
  3396. "default": 0,
  3397. "description": "从第几个开始查询",
  3398. "name": "offset",
  3399. "in": "query"
  3400. },
  3401. {
  3402. "maximum": 50,
  3403. "type": "integer",
  3404. "default": 10,
  3405. "description": "本次查询个数",
  3406. "name": "limit",
  3407. "in": "query"
  3408. },
  3409. {
  3410. "type": "string",
  3411. "description": "过滤关键词",
  3412. "name": "filter",
  3413. "in": "query"
  3414. }
  3415. ],
  3416. "responses": {
  3417. "200": {
  3418. "description": "OK",
  3419. "schema": {
  3420. "$ref": "#/definitions/controller.ListOccupationVO"
  3421. }
  3422. }
  3423. }
  3424. }
  3425. },
  3426. "/api/v3/occupations/batch": {
  3427. "post": {
  3428. "consumes": [
  3429. "application/json"
  3430. ],
  3431. "produces": [
  3432. "application/json"
  3433. ],
  3434. "tags": [
  3435. "岗位"
  3436. ],
  3437. "summary": "批量添加岗位",
  3438. "parameters": [
  3439. {
  3440. "description": "单次最多50个",
  3441. "name": "req",
  3442. "in": "body",
  3443. "required": true,
  3444. "schema": {
  3445. "$ref": "#/definitions/controller.BatchAddOccupationReqVO"
  3446. }
  3447. }
  3448. ],
  3449. "responses": {
  3450. "200": {
  3451. "description": "OK",
  3452. "schema": {
  3453. "$ref": "#/definitions/controller.BatchAddOccupationRespVO"
  3454. }
  3455. },
  3456. "400": {
  3457. "description": "岗位已经存在",
  3458. "schema": {
  3459. "$ref": "#/definitions/controller.ErrVO"
  3460. }
  3461. },
  3462. "451": {
  3463. "description": "单次添加个数过大",
  3464. "schema": {
  3465. "$ref": "#/definitions/controller.ErrVO"
  3466. }
  3467. }
  3468. }
  3469. }
  3470. },
  3471. "/api/v3/occupations/{occID}": {
  3472. "put": {
  3473. "produces": [
  3474. "application/json"
  3475. ],
  3476. "tags": [
  3477. "岗位"
  3478. ],
  3479. "summary": "编辑岗位",
  3480. "parameters": [
  3481. {
  3482. "type": "integer",
  3483. "description": "岗位ID",
  3484. "name": "occID",
  3485. "in": "path",
  3486. "required": true
  3487. },
  3488. {
  3489. "description": "允许省略字段,至少一个字段",
  3490. "name": "req",
  3491. "in": "body",
  3492. "required": true,
  3493. "schema": {
  3494. "$ref": "#/definitions/controller.UpdateOccupationReqVO"
  3495. }
  3496. }
  3497. ],
  3498. "responses": {
  3499. "200": {
  3500. "description": "OK",
  3501. "schema": {
  3502. "$ref": "#/definitions/controller.ErrVO"
  3503. }
  3504. },
  3505. "400": {
  3506. "description": "参数错误",
  3507. "schema": {
  3508. "$ref": "#/definitions/controller.ErrVO"
  3509. }
  3510. },
  3511. "404": {
  3512. "description": "未找到该岗位",
  3513. "schema": {
  3514. "$ref": "#/definitions/controller.ErrVO"
  3515. }
  3516. }
  3517. }
  3518. },
  3519. "delete": {
  3520. "produces": [
  3521. "application/json"
  3522. ],
  3523. "tags": [
  3524. "岗位"
  3525. ],
  3526. "summary": "删除岗位",
  3527. "parameters": [
  3528. {
  3529. "type": "integer",
  3530. "description": "岗位ID",
  3531. "name": "occID",
  3532. "in": "path",
  3533. "required": true
  3534. }
  3535. ],
  3536. "responses": {
  3537. "200": {
  3538. "description": "OK",
  3539. "schema": {
  3540. "$ref": "#/definitions/controller.ErrVO"
  3541. }
  3542. },
  3543. "400": {
  3544. "description": "有关联员工,不允许删除",
  3545. "schema": {
  3546. "$ref": "#/definitions/controller.ErrVO"
  3547. }
  3548. },
  3549. "404": {
  3550. "description": "未找到该岗位",
  3551. "schema": {
  3552. "$ref": "#/definitions/controller.ErrVO"
  3553. }
  3554. }
  3555. }
  3556. }
  3557. },
  3558. "/api/v3/occupations/{occID}/employees": {
  3559. "get": {
  3560. "produces": [
  3561. "application/json"
  3562. ],
  3563. "tags": [
  3564. "岗位"
  3565. ],
  3566. "summary": "获取某岗位下关联的员工",
  3567. "parameters": [
  3568. {
  3569. "type": "integer",
  3570. "description": "岗位ID",
  3571. "name": "occID",
  3572. "in": "path",
  3573. "required": true
  3574. },
  3575. {
  3576. "type": "string",
  3577. "description": "过滤关键词",
  3578. "name": "filter",
  3579. "in": "query"
  3580. },
  3581. {
  3582. "type": "integer",
  3583. "default": 0,
  3584. "description": "从第几个开始查询",
  3585. "name": "offset",
  3586. "in": "query"
  3587. },
  3588. {
  3589. "maximum": 50,
  3590. "type": "integer",
  3591. "default": 10,
  3592. "description": "查询个数",
  3593. "name": "limit",
  3594. "in": "query"
  3595. },
  3596. {
  3597. "type": "string",
  3598. "default": "id",
  3599. "description": "排序标准, 关联时间linkedTime/id",
  3600. "name": "order_by",
  3601. "in": "query"
  3602. },
  3603. {
  3604. "type": "string",
  3605. "default": "desc",
  3606. "description": "排序顺序,顺序asc/倒序desc",
  3607. "name": "order",
  3608. "in": "query"
  3609. }
  3610. ],
  3611. "responses": {
  3612. "200": {
  3613. "description": "OK",
  3614. "schema": {
  3615. "$ref": "#/definitions/controller.ListOccupationUsersRespVO"
  3616. }
  3617. }
  3618. }
  3619. }
  3620. },
  3621. "/api/v3/occupations/{occID}/users": {
  3622. "post": {
  3623. "consumes": [
  3624. "application/json"
  3625. ],
  3626. "produces": [
  3627. "application/json"
  3628. ],
  3629. "tags": [
  3630. "岗位"
  3631. ],
  3632. "summary": "批量关联员工到某岗位",
  3633. "parameters": [
  3634. {
  3635. "type": "integer",
  3636. "description": "岗位ID",
  3637. "name": "occID",
  3638. "in": "path",
  3639. "required": true
  3640. },
  3641. {
  3642. "description": "请求体",
  3643. "name": "req",
  3644. "in": "body",
  3645. "required": true,
  3646. "schema": {
  3647. "$ref": "#/definitions/controller.BatchLinkUsersToOccupationReqVO"
  3648. }
  3649. }
  3650. ],
  3651. "responses": {
  3652. "200": {
  3653. "description": "OK",
  3654. "schema": {
  3655. "$ref": "#/definitions/controller.ErrVO"
  3656. }
  3657. },
  3658. "404": {
  3659. "description": "未找到该岗位",
  3660. "schema": {
  3661. "$ref": "#/definitions/controller.ErrVO"
  3662. }
  3663. },
  3664. "454": {
  3665. "description": "未找到某员工",
  3666. "schema": {
  3667. "$ref": "#/definitions/controller.ErrVO"
  3668. }
  3669. }
  3670. }
  3671. }
  3672. },
  3673. "/api/v3/users/department": {
  3674. "put": {
  3675. "consumes": [
  3676. "application/json"
  3677. ],
  3678. "produces": [
  3679. "application/json"
  3680. ],
  3681. "tags": [
  3682. "用户"
  3683. ],
  3684. "summary": "用户申请加入某组织",
  3685. "parameters": [
  3686. {
  3687. "description": "req",
  3688. "name": "req",
  3689. "in": "body",
  3690. "required": true,
  3691. "schema": {
  3692. "$ref": "#/definitions/controller.UserUpdateDepartmentReqVO"
  3693. }
  3694. }
  3695. ],
  3696. "responses": {
  3697. "200": {
  3698. "description": "OK",
  3699. "schema": {
  3700. "$ref": "#/definitions/controller.UserUpdateDepartmentRespVO"
  3701. }
  3702. },
  3703. "400": {
  3704. "description": "该组织导入名单中不包括该员工,加入失败",
  3705. "schema": {
  3706. "$ref": "#/definitions/controller.ErrVO"
  3707. }
  3708. },
  3709. "404": {
  3710. "description": "未找到该组织",
  3711. "schema": {
  3712. "$ref": "#/definitions/controller.ErrVO"
  3713. }
  3714. }
  3715. }
  3716. }
  3717. },
  3718. "/api/v3/users/login": {
  3719. "post": {
  3720. "description": "手机号登录",
  3721. "consumes": [
  3722. "application/json"
  3723. ],
  3724. "produces": [
  3725. "application/json"
  3726. ],
  3727. "tags": [
  3728. "用户"
  3729. ],
  3730. "summary": "用户登录",
  3731. "parameters": [
  3732. {
  3733. "description": "请求body",
  3734. "name": "req",
  3735. "in": "body",
  3736. "required": true,
  3737. "schema": {
  3738. "$ref": "#/definitions/controller.UserLoginReqVO"
  3739. }
  3740. }
  3741. ],
  3742. "responses": {
  3743. "200": {
  3744. "description": "OK",
  3745. "schema": {
  3746. "$ref": "#/definitions/controller.UserLoginRespVO"
  3747. }
  3748. },
  3749. "400": {
  3750. "description": "用户名密码未找到或不匹配",
  3751. "schema": {
  3752. "$ref": "#/definitions/controller.ErrVO"
  3753. }
  3754. },
  3755. "403": {
  3756. "description": "用户已禁用",
  3757. "schema": {
  3758. "$ref": "#/definitions/controller.ErrVO"
  3759. }
  3760. }
  3761. }
  3762. }
  3763. },
  3764. "/api/v3/users/register": {
  3765. "post": {
  3766. "description": "手机号注册. 有组织有匹配-加入组织,否则不加入任何组织",
  3767. "consumes": [
  3768. "application/json"
  3769. ],
  3770. "produces": [
  3771. "application/json"
  3772. ],
  3773. "tags": [
  3774. "用户"
  3775. ],
  3776. "summary": "用户注册",
  3777. "parameters": [
  3778. {
  3779. "description": "请求body",
  3780. "name": "req",
  3781. "in": "body",
  3782. "required": true,
  3783. "schema": {
  3784. "$ref": "#/definitions/controller.UserRegisterReqVO"
  3785. }
  3786. }
  3787. ],
  3788. "responses": {
  3789. "200": {
  3790. "description": "OK",
  3791. "schema": {
  3792. "$ref": "#/definitions/controller.UserRegisterRespVO"
  3793. }
  3794. },
  3795. "400": {
  3796. "description": "重复注册",
  3797. "schema": {
  3798. "$ref": "#/definitions/controller.ErrVO"
  3799. }
  3800. },
  3801. "451": {
  3802. "description": "验证码错误",
  3803. "schema": {
  3804. "$ref": "#/definitions/controller.ErrVO"
  3805. }
  3806. },
  3807. "452": {
  3808. "description": "手机号格式错误",
  3809. "schema": {
  3810. "$ref": "#/definitions/controller.ErrVO"
  3811. }
  3812. },
  3813. "453": {
  3814. "description": "密码不符合标准",
  3815. "schema": {
  3816. "$ref": "#/definitions/controller.ErrVO"
  3817. }
  3818. },
  3819. "454": {
  3820. "description": "注册成功,加入组织失败",
  3821. "schema": {
  3822. "$ref": "#/definitions/controller.ErrVO"
  3823. }
  3824. }
  3825. }
  3826. }
  3827. },
  3828. "/logout": {
  3829. "post": {
  3830. "security": [
  3831. {
  3832. "Bearer": []
  3833. }
  3834. ],
  3835. "description": "获取token",
  3836. "consumes": [
  3837. "application/json"
  3838. ],
  3839. "summary": "退出登录",
  3840. "responses": {
  3841. "200": {
  3842. "description": "{\"code\": 200, \"msg\": \"成功退出系统\" }",
  3843. "schema": {
  3844. "type": "string"
  3845. }
  3846. }
  3847. }
  3848. }
  3849. }
  3850. },
  3851. "definitions": {
  3852. "controller.AddDepartmentItemReqVO": {
  3853. "type": "object",
  3854. "properties": {
  3855. "managerAdminIDList": {
  3856. "type": "array",
  3857. "items": {
  3858. "type": "integer"
  3859. },
  3860. "example": [
  3861. 1
  3862. ]
  3863. },
  3864. "name": {
  3865. "type": "string",
  3866. "example": "研发部"
  3867. }
  3868. }
  3869. },
  3870. "controller.AddDepartmentItemRespVO": {
  3871. "type": "object",
  3872. "properties": {
  3873. "id": {
  3874. "type": "integer"
  3875. },
  3876. "managerAdminIDList": {
  3877. "type": "array",
  3878. "items": {
  3879. "type": "integer"
  3880. },
  3881. "example": [
  3882. 1
  3883. ]
  3884. },
  3885. "name": {
  3886. "type": "string",
  3887. "example": "研发部"
  3888. }
  3889. }
  3890. },
  3891. "controller.AddEmployeeItemVO": {
  3892. "type": "object",
  3893. "properties": {
  3894. "deptIDList": {
  3895. "type": "array",
  3896. "items": {
  3897. "type": "integer"
  3898. }
  3899. },
  3900. "email": {
  3901. "type": "string"
  3902. },
  3903. "occIDList": {
  3904. "type": "array",
  3905. "items": {
  3906. "type": "integer"
  3907. }
  3908. },
  3909. "password": {
  3910. "type": "string"
  3911. },
  3912. "phone": {
  3913. "type": "string"
  3914. },
  3915. "realName": {
  3916. "type": "string"
  3917. }
  3918. }
  3919. },
  3920. "controller.AddOccupationReqVO": {
  3921. "type": "object",
  3922. "properties": {
  3923. "name": {
  3924. "type": "string"
  3925. }
  3926. }
  3927. },
  3928. "controller.AddOccupationRespVO": {
  3929. "type": "object",
  3930. "properties": {
  3931. "id": {
  3932. "type": "integer"
  3933. },
  3934. "name": {
  3935. "type": "string"
  3936. }
  3937. }
  3938. },
  3939. "controller.AttachUserToDepartmentReqVO": {
  3940. "type": "object",
  3941. "properties": {
  3942. "phone": {
  3943. "type": "string"
  3944. }
  3945. }
  3946. },
  3947. "controller.AttachUserToDepartmentRespVO": {
  3948. "type": "object",
  3949. "properties": {
  3950. "deptID": {
  3951. "type": "integer"
  3952. }
  3953. }
  3954. },
  3955. "controller.BatchAddDepartmentItemReqVO": {
  3956. "type": "object",
  3957. "properties": {
  3958. "departmentItemList": {
  3959. "type": "array",
  3960. "items": {
  3961. "$ref": "#/definitions/controller.AddDepartmentItemReqVO"
  3962. }
  3963. }
  3964. }
  3965. },
  3966. "controller.BatchAddDepartmentItemRespVO": {
  3967. "type": "object",
  3968. "properties": {
  3969. "departmentCreated": {
  3970. "type": "array",
  3971. "items": {
  3972. "$ref": "#/definitions/controller.AddDepartmentItemRespVO"
  3973. }
  3974. }
  3975. }
  3976. },
  3977. "controller.BatchAddEmployeeReqVO": {
  3978. "type": "object",
  3979. "properties": {
  3980. "employees": {
  3981. "type": "array",
  3982. "items": {
  3983. "$ref": "#/definitions/controller.AddEmployeeItemVO"
  3984. }
  3985. }
  3986. }
  3987. },
  3988. "controller.BatchAddOccupationReqVO": {
  3989. "type": "object",
  3990. "properties": {
  3991. "occupationList": {
  3992. "type": "array",
  3993. "items": {
  3994. "$ref": "#/definitions/controller.AddOccupationReqVO"
  3995. }
  3996. }
  3997. }
  3998. },
  3999. "controller.BatchAddOccupationRespVO": {
  4000. "type": "object",
  4001. "properties": {
  4002. "occupationCreated": {
  4003. "type": "array",
  4004. "items": {
  4005. "$ref": "#/definitions/controller.AddOccupationRespVO"
  4006. }
  4007. }
  4008. }
  4009. },
  4010. "controller.BatchLinkUsersToOccupationReqVO": {
  4011. "type": "object",
  4012. "properties": {
  4013. "users": {
  4014. "type": "array",
  4015. "items": {
  4016. "type": "integer"
  4017. }
  4018. }
  4019. }
  4020. },
  4021. "controller.BatchTagWithDepartmentAndOccupationReqVO": {
  4022. "type": "object",
  4023. "properties": {
  4024. "deptIDList": {
  4025. "type": "array",
  4026. "items": {
  4027. "type": "integer"
  4028. }
  4029. },
  4030. "employeeIDList": {
  4031. "type": "array",
  4032. "items": {
  4033. "type": "integer"
  4034. }
  4035. },
  4036. "occupationIDList": {
  4037. "type": "array",
  4038. "items": {
  4039. "type": "integer"
  4040. }
  4041. }
  4042. }
  4043. },
  4044. "controller.DepartmentItemVO": {
  4045. "type": "object",
  4046. "properties": {
  4047. "children": {
  4048. "type": "array",
  4049. "items": {
  4050. "$ref": "#/definitions/controller.DepartmentItemVO"
  4051. }
  4052. },
  4053. "id": {
  4054. "type": "integer"
  4055. },
  4056. "managerList": {
  4057. "type": "array",
  4058. "items": {
  4059. "type": "object",
  4060. "properties": {
  4061. "adminId": {
  4062. "type": "integer"
  4063. },
  4064. "name": {
  4065. "type": "string"
  4066. }
  4067. }
  4068. }
  4069. },
  4070. "name": {
  4071. "type": "string",
  4072. "example": "研发部"
  4073. },
  4074. "parentId": {
  4075. "type": "integer"
  4076. }
  4077. }
  4078. },
  4079. "controller.ErrVO": {
  4080. "type": "object",
  4081. "properties": {
  4082. "code": {
  4083. "type": "integer"
  4084. },
  4085. "msg": {
  4086. "type": "string"
  4087. }
  4088. }
  4089. },
  4090. "controller.ListEmployeeItemVO": {
  4091. "type": "object",
  4092. "properties": {
  4093. "deptNames": {
  4094. "type": "array",
  4095. "items": {
  4096. "type": "string"
  4097. }
  4098. },
  4099. "id": {
  4100. "type": "integer"
  4101. },
  4102. "name": {
  4103. "type": "string"
  4104. },
  4105. "occNames": {
  4106. "type": "array",
  4107. "items": {
  4108. "type": "string"
  4109. }
  4110. },
  4111. "phone": {
  4112. "type": "string"
  4113. }
  4114. }
  4115. },
  4116. "controller.ListEmployeeRespVO": {
  4117. "type": "object",
  4118. "properties": {
  4119. "employees": {
  4120. "type": "array",
  4121. "items": {
  4122. "$ref": "#/definitions/controller.ListEmployeeItemVO"
  4123. }
  4124. },
  4125. "total": {
  4126. "type": "integer"
  4127. }
  4128. }
  4129. },
  4130. "controller.ListOccupationItemVO": {
  4131. "type": "object",
  4132. "properties": {
  4133. "createdTime": {
  4134. "type": "string",
  4135. "example": "2006-01-02T15:04:05Z07:00"
  4136. },
  4137. "id": {
  4138. "type": "integer"
  4139. },
  4140. "name": {
  4141. "type": "string"
  4142. },
  4143. "userCnt": {
  4144. "type": "integer"
  4145. }
  4146. }
  4147. },
  4148. "controller.ListOccupationUsersRespVO": {
  4149. "type": "object",
  4150. "properties": {
  4151. "occID": {
  4152. "type": "integer"
  4153. },
  4154. "users": {
  4155. "type": "array",
  4156. "items": {
  4157. "$ref": "#/definitions/controller.OccupationLinkedUserVO"
  4158. }
  4159. }
  4160. }
  4161. },
  4162. "controller.ListOccupationVO": {
  4163. "type": "object",
  4164. "properties": {
  4165. "occupationItems": {
  4166. "type": "array",
  4167. "items": {
  4168. "$ref": "#/definitions/controller.ListOccupationItemVO"
  4169. }
  4170. },
  4171. "total": {
  4172. "type": "integer"
  4173. }
  4174. }
  4175. },
  4176. "controller.ListUsersOfDepartmentsRespVO": {
  4177. "type": "object",
  4178. "properties": {
  4179. "departments": {
  4180. "type": "array",
  4181. "items": {
  4182. "$ref": "#/definitions/controller.UsersOfDepartmentVO"
  4183. }
  4184. }
  4185. }
  4186. },
  4187. "controller.OccupationLinkedUserVO": {
  4188. "type": "object",
  4189. "properties": {
  4190. "deptNameList": {
  4191. "type": "array",
  4192. "items": {
  4193. "type": "string"
  4194. }
  4195. },
  4196. "id": {
  4197. "type": "integer"
  4198. },
  4199. "name": {
  4200. "type": "string"
  4201. },
  4202. "occNameList": {
  4203. "type": "array",
  4204. "items": {
  4205. "type": "string"
  4206. }
  4207. },
  4208. "phone": {
  4209. "type": "string",
  4210. "example": "17744533458"
  4211. }
  4212. }
  4213. },
  4214. "controller.UpdateDepartmentReqVO": {
  4215. "type": "object",
  4216. "properties": {
  4217. "adminIDList": {
  4218. "type": "array",
  4219. "items": {
  4220. "type": "integer"
  4221. }
  4222. },
  4223. "name": {
  4224. "type": "string",
  4225. "example": "研发部"
  4226. },
  4227. "parentID": {
  4228. "type": "integer"
  4229. }
  4230. }
  4231. },
  4232. "controller.UpdateDepartmentRespVO": {
  4233. "type": "object",
  4234. "properties": {
  4235. "adminIDList": {
  4236. "type": "array",
  4237. "items": {
  4238. "type": "integer"
  4239. }
  4240. },
  4241. "id": {
  4242. "type": "integer"
  4243. },
  4244. "name": {
  4245. "type": "string",
  4246. "example": "研发部"
  4247. },
  4248. "parentID": {
  4249. "type": "integer"
  4250. }
  4251. }
  4252. },
  4253. "controller.UpdateEmployeeItemVO": {
  4254. "type": "object",
  4255. "properties": {
  4256. "deptIDList": {
  4257. "type": "array",
  4258. "items": {
  4259. "type": "integer"
  4260. }
  4261. },
  4262. "email": {
  4263. "type": "string"
  4264. },
  4265. "occIDList": {
  4266. "type": "array",
  4267. "items": {
  4268. "type": "integer"
  4269. }
  4270. },
  4271. "password": {
  4272. "type": "string"
  4273. },
  4274. "phone": {
  4275. "type": "string"
  4276. },
  4277. "realName": {
  4278. "type": "string"
  4279. }
  4280. }
  4281. },
  4282. "controller.UpdateOccupationReqVO": {
  4283. "type": "object",
  4284. "properties": {
  4285. "name": {
  4286. "type": "string"
  4287. }
  4288. }
  4289. },
  4290. "controller.UserLoginReqVO": {
  4291. "type": "object",
  4292. "properties": {
  4293. "fromFlag": {
  4294. "type": "string"
  4295. },
  4296. "passwd": {
  4297. "type": "string"
  4298. },
  4299. "phone": {
  4300. "type": "string"
  4301. }
  4302. }
  4303. },
  4304. "controller.UserLoginRespVO": {
  4305. "type": "object",
  4306. "properties": {
  4307. "token": {
  4308. "description": "Token 认证字段",
  4309. "type": "string"
  4310. }
  4311. }
  4312. },
  4313. "controller.UserOfDepartmentItemVO": {
  4314. "type": "object",
  4315. "properties": {
  4316. "id": {
  4317. "type": "integer"
  4318. },
  4319. "name": {
  4320. "type": "string"
  4321. },
  4322. "phone": {
  4323. "type": "string"
  4324. }
  4325. }
  4326. },
  4327. "controller.UserRegisterReqVO": {
  4328. "type": "object",
  4329. "properties": {
  4330. "fromFlag": {
  4331. "description": "从哪里获得,分析租户或组织用",
  4332. "type": "string"
  4333. },
  4334. "passwd": {
  4335. "type": "string"
  4336. },
  4337. "phone": {
  4338. "type": "string",
  4339. "example": "17744533454"
  4340. },
  4341. "verifyCode": {
  4342. "type": "string"
  4343. }
  4344. }
  4345. },
  4346. "controller.UserRegisterRespVO": {
  4347. "type": "object",
  4348. "properties": {
  4349. "token": {
  4350. "description": "Token 认证字段",
  4351. "type": "string"
  4352. }
  4353. }
  4354. },
  4355. "controller.UserUpdateDepartmentReqVO": {
  4356. "type": "object",
  4357. "properties": {
  4358. "orgCode": {
  4359. "type": "string"
  4360. }
  4361. }
  4362. },
  4363. "controller.UserUpdateDepartmentRespVO": {
  4364. "type": "object",
  4365. "properties": {
  4366. "orgID": {
  4367. "type": "integer"
  4368. },
  4369. "redirectBaseUrl": {
  4370. "type": "string"
  4371. }
  4372. }
  4373. },
  4374. "controller.UsersOfDepartmentVO": {
  4375. "type": "object",
  4376. "properties": {
  4377. "deptID": {
  4378. "type": "integer"
  4379. },
  4380. "users": {
  4381. "type": "array",
  4382. "items": {
  4383. "$ref": "#/definitions/controller.UserOfDepartmentItemVO"
  4384. }
  4385. }
  4386. }
  4387. },
  4388. "dto.GetSetSysConfigReq": {
  4389. "type": "object",
  4390. "properties": {
  4391. "configKey": {
  4392. "type": "string"
  4393. },
  4394. "configValue": {
  4395. "type": "string"
  4396. }
  4397. }
  4398. },
  4399. "dto.PassWord": {
  4400. "type": "object",
  4401. "properties": {
  4402. "newPassword": {
  4403. "type": "string"
  4404. },
  4405. "oldPassword": {
  4406. "type": "string"
  4407. }
  4408. }
  4409. },
  4410. "dto.ResetSysUserPwdReq": {
  4411. "type": "object",
  4412. "properties": {
  4413. "createBy": {
  4414. "type": "integer"
  4415. },
  4416. "password": {
  4417. "type": "string"
  4418. },
  4419. "updateBy": {
  4420. "type": "integer"
  4421. },
  4422. "userId": {
  4423. "description": "用户ID",
  4424. "type": "integer"
  4425. }
  4426. }
  4427. },
  4428. "dto.RoleDataScopeReq": {
  4429. "type": "object",
  4430. "required": [
  4431. "dataScope",
  4432. "roleId"
  4433. ],
  4434. "properties": {
  4435. "dataScope": {
  4436. "type": "string"
  4437. },
  4438. "deptIds": {
  4439. "type": "array",
  4440. "items": {
  4441. "type": "integer"
  4442. }
  4443. },
  4444. "roleId": {
  4445. "type": "integer"
  4446. }
  4447. }
  4448. },
  4449. "dto.SysApiDeleteReq": {
  4450. "type": "object",
  4451. "properties": {
  4452. "ids": {
  4453. "type": "array",
  4454. "items": {
  4455. "type": "integer"
  4456. }
  4457. }
  4458. }
  4459. },
  4460. "dto.SysApiUpdateReq": {
  4461. "type": "object",
  4462. "properties": {
  4463. "action": {
  4464. "type": "string"
  4465. },
  4466. "createBy": {
  4467. "type": "integer"
  4468. },
  4469. "handle": {
  4470. "type": "string"
  4471. },
  4472. "id": {
  4473. "description": "编码",
  4474. "type": "integer"
  4475. },
  4476. "path": {
  4477. "type": "string"
  4478. },
  4479. "title": {
  4480. "type": "string"
  4481. },
  4482. "type": {
  4483. "type": "string"
  4484. },
  4485. "updateBy": {
  4486. "type": "integer"
  4487. }
  4488. }
  4489. },
  4490. "dto.SysConfigByKeyReq": {
  4491. "type": "object",
  4492. "properties": {
  4493. "configKey": {
  4494. "type": "string"
  4495. }
  4496. }
  4497. },
  4498. "dto.SysConfigControl": {
  4499. "type": "object",
  4500. "properties": {
  4501. "configKey": {
  4502. "type": "string"
  4503. },
  4504. "configName": {
  4505. "type": "string"
  4506. },
  4507. "configType": {
  4508. "type": "string"
  4509. },
  4510. "configValue": {
  4511. "type": "string"
  4512. },
  4513. "createBy": {
  4514. "type": "integer"
  4515. },
  4516. "id": {
  4517. "description": "编码",
  4518. "type": "integer"
  4519. },
  4520. "isFrontend": {
  4521. "type": "integer"
  4522. },
  4523. "remark": {
  4524. "type": "string"
  4525. },
  4526. "updateBy": {
  4527. "type": "integer"
  4528. }
  4529. }
  4530. },
  4531. "dto.SysDeptDeleteReq": {
  4532. "type": "object",
  4533. "properties": {
  4534. "ids": {
  4535. "type": "array",
  4536. "items": {
  4537. "type": "integer"
  4538. }
  4539. }
  4540. }
  4541. },
  4542. "dto.SysDeptInsertReq": {
  4543. "type": "object",
  4544. "properties": {
  4545. "createBy": {
  4546. "type": "integer"
  4547. },
  4548. "deptId": {
  4549. "description": "编码",
  4550. "type": "integer"
  4551. },
  4552. "deptName": {
  4553. "description": "部门名称",
  4554. "type": "string"
  4555. },
  4556. "deptPath": {
  4557. "description": "路径",
  4558. "type": "string"
  4559. },
  4560. "email": {
  4561. "description": "邮箱",
  4562. "type": "string"
  4563. },
  4564. "leader": {
  4565. "description": "负责人",
  4566. "type": "string"
  4567. },
  4568. "parentId": {
  4569. "description": "上级部门",
  4570. "type": "integer"
  4571. },
  4572. "phone": {
  4573. "description": "手机",
  4574. "type": "string"
  4575. },
  4576. "sort": {
  4577. "description": "排序",
  4578. "type": "integer"
  4579. },
  4580. "status": {
  4581. "description": "状态",
  4582. "type": "integer"
  4583. },
  4584. "updateBy": {
  4585. "type": "integer"
  4586. }
  4587. }
  4588. },
  4589. "dto.SysDeptUpdateReq": {
  4590. "type": "object",
  4591. "properties": {
  4592. "createBy": {
  4593. "type": "integer"
  4594. },
  4595. "deptId": {
  4596. "description": "编码",
  4597. "type": "integer"
  4598. },
  4599. "deptName": {
  4600. "description": "部门名称",
  4601. "type": "string"
  4602. },
  4603. "deptPath": {
  4604. "description": "路径",
  4605. "type": "string"
  4606. },
  4607. "email": {
  4608. "description": "邮箱",
  4609. "type": "string"
  4610. },
  4611. "leader": {
  4612. "description": "负责人",
  4613. "type": "string"
  4614. },
  4615. "parentId": {
  4616. "description": "上级部门",
  4617. "type": "integer"
  4618. },
  4619. "phone": {
  4620. "description": "手机",
  4621. "type": "string"
  4622. },
  4623. "sort": {
  4624. "description": "排序",
  4625. "type": "integer"
  4626. },
  4627. "status": {
  4628. "description": "状态",
  4629. "type": "integer"
  4630. },
  4631. "updateBy": {
  4632. "type": "integer"
  4633. }
  4634. }
  4635. },
  4636. "dto.SysDictDataDeleteReq": {
  4637. "type": "object",
  4638. "properties": {
  4639. "createBy": {
  4640. "type": "integer"
  4641. },
  4642. "ids": {
  4643. "type": "array",
  4644. "items": {
  4645. "type": "integer"
  4646. }
  4647. },
  4648. "updateBy": {
  4649. "type": "integer"
  4650. }
  4651. }
  4652. },
  4653. "dto.SysDictDataGetAllResp": {
  4654. "type": "object",
  4655. "properties": {
  4656. "label": {
  4657. "type": "string"
  4658. },
  4659. "value": {
  4660. "type": "string"
  4661. }
  4662. }
  4663. },
  4664. "dto.SysDictDataInsertReq": {
  4665. "type": "object",
  4666. "properties": {
  4667. "createBy": {
  4668. "type": "integer"
  4669. },
  4670. "cssClass": {
  4671. "type": "string"
  4672. },
  4673. "default": {
  4674. "type": "string"
  4675. },
  4676. "dictLabel": {
  4677. "type": "string"
  4678. },
  4679. "dictSort": {
  4680. "type": "integer"
  4681. },
  4682. "dictType": {
  4683. "type": "string"
  4684. },
  4685. "dictValue": {
  4686. "type": "string"
  4687. },
  4688. "isDefault": {
  4689. "type": "string"
  4690. },
  4691. "listClass": {
  4692. "type": "string"
  4693. },
  4694. "remark": {
  4695. "type": "string"
  4696. },
  4697. "status": {
  4698. "type": "integer"
  4699. },
  4700. "updateBy": {
  4701. "type": "integer"
  4702. }
  4703. }
  4704. },
  4705. "dto.SysDictDataUpdateReq": {
  4706. "type": "object",
  4707. "properties": {
  4708. "createBy": {
  4709. "type": "integer"
  4710. },
  4711. "cssClass": {
  4712. "type": "string"
  4713. },
  4714. "default": {
  4715. "type": "string"
  4716. },
  4717. "dictLabel": {
  4718. "type": "string"
  4719. },
  4720. "dictSort": {
  4721. "type": "integer"
  4722. },
  4723. "dictType": {
  4724. "type": "string"
  4725. },
  4726. "dictValue": {
  4727. "type": "string"
  4728. },
  4729. "id": {
  4730. "type": "integer"
  4731. },
  4732. "isDefault": {
  4733. "type": "string"
  4734. },
  4735. "listClass": {
  4736. "type": "string"
  4737. },
  4738. "remark": {
  4739. "type": "string"
  4740. },
  4741. "status": {
  4742. "type": "integer"
  4743. },
  4744. "updateBy": {
  4745. "type": "integer"
  4746. }
  4747. }
  4748. },
  4749. "dto.SysDictTypeDeleteReq": {
  4750. "type": "object",
  4751. "properties": {
  4752. "createBy": {
  4753. "type": "integer"
  4754. },
  4755. "ids": {
  4756. "type": "array",
  4757. "items": {
  4758. "type": "integer"
  4759. }
  4760. },
  4761. "updateBy": {
  4762. "type": "integer"
  4763. }
  4764. }
  4765. },
  4766. "dto.SysDictTypeInsertReq": {
  4767. "type": "object",
  4768. "properties": {
  4769. "createBy": {
  4770. "type": "integer"
  4771. },
  4772. "dictName": {
  4773. "type": "string"
  4774. },
  4775. "dictType": {
  4776. "type": "string"
  4777. },
  4778. "id": {
  4779. "type": "integer"
  4780. },
  4781. "remark": {
  4782. "type": "string"
  4783. },
  4784. "status": {
  4785. "type": "integer"
  4786. },
  4787. "updateBy": {
  4788. "type": "integer"
  4789. }
  4790. }
  4791. },
  4792. "dto.SysDictTypeUpdateReq": {
  4793. "type": "object",
  4794. "properties": {
  4795. "createBy": {
  4796. "type": "integer"
  4797. },
  4798. "dictName": {
  4799. "type": "string"
  4800. },
  4801. "dictType": {
  4802. "type": "string"
  4803. },
  4804. "id": {
  4805. "type": "integer"
  4806. },
  4807. "remark": {
  4808. "type": "string"
  4809. },
  4810. "status": {
  4811. "type": "integer"
  4812. },
  4813. "updateBy": {
  4814. "type": "integer"
  4815. }
  4816. }
  4817. },
  4818. "dto.SysLoginLogDeleteReq": {
  4819. "type": "object",
  4820. "properties": {
  4821. "ids": {
  4822. "type": "array",
  4823. "items": {
  4824. "type": "integer"
  4825. }
  4826. }
  4827. }
  4828. },
  4829. "dto.SysMenuDeleteReq": {
  4830. "type": "object",
  4831. "properties": {
  4832. "createBy": {
  4833. "type": "integer"
  4834. },
  4835. "ids": {
  4836. "type": "array",
  4837. "items": {
  4838. "type": "integer"
  4839. }
  4840. },
  4841. "updateBy": {
  4842. "type": "integer"
  4843. }
  4844. }
  4845. },
  4846. "dto.SysMenuInsertReq": {
  4847. "type": "object",
  4848. "properties": {
  4849. "action": {
  4850. "description": "请求方式",
  4851. "type": "string"
  4852. },
  4853. "apis": {
  4854. "type": "array",
  4855. "items": {
  4856. "type": "integer"
  4857. }
  4858. },
  4859. "breadcrumb": {
  4860. "description": "是否面包屑",
  4861. "type": "string"
  4862. },
  4863. "component": {
  4864. "description": "组件",
  4865. "type": "string"
  4866. },
  4867. "createBy": {
  4868. "type": "integer"
  4869. },
  4870. "icon": {
  4871. "description": "图标",
  4872. "type": "string"
  4873. },
  4874. "isFrame": {
  4875. "description": "是否frame",
  4876. "type": "string"
  4877. },
  4878. "menuId": {
  4879. "description": "编码",
  4880. "type": "integer"
  4881. },
  4882. "menuName": {
  4883. "description": "菜单name",
  4884. "type": "string"
  4885. },
  4886. "menuType": {
  4887. "description": "菜单类型",
  4888. "type": "string"
  4889. },
  4890. "noCache": {
  4891. "description": "是否缓存",
  4892. "type": "boolean"
  4893. },
  4894. "parentId": {
  4895. "description": "上级菜单",
  4896. "type": "integer"
  4897. },
  4898. "path": {
  4899. "description": "路径",
  4900. "type": "string"
  4901. },
  4902. "paths": {
  4903. "description": "id路径",
  4904. "type": "string"
  4905. },
  4906. "permission": {
  4907. "description": "权限编码",
  4908. "type": "string"
  4909. },
  4910. "sort": {
  4911. "description": "排序",
  4912. "type": "integer"
  4913. },
  4914. "sysApi": {
  4915. "type": "array",
  4916. "items": {
  4917. "$ref": "#/definitions/models.SysApi"
  4918. }
  4919. },
  4920. "title": {
  4921. "description": "显示名称",
  4922. "type": "string"
  4923. },
  4924. "updateBy": {
  4925. "type": "integer"
  4926. },
  4927. "visible": {
  4928. "description": "是否显示",
  4929. "type": "string"
  4930. }
  4931. }
  4932. },
  4933. "dto.SysMenuUpdateReq": {
  4934. "type": "object",
  4935. "properties": {
  4936. "action": {
  4937. "description": "请求方式",
  4938. "type": "string"
  4939. },
  4940. "apis": {
  4941. "type": "array",
  4942. "items": {
  4943. "type": "integer"
  4944. }
  4945. },
  4946. "breadcrumb": {
  4947. "description": "是否面包屑",
  4948. "type": "string"
  4949. },
  4950. "component": {
  4951. "description": "组件",
  4952. "type": "string"
  4953. },
  4954. "createBy": {
  4955. "type": "integer"
  4956. },
  4957. "icon": {
  4958. "description": "图标",
  4959. "type": "string"
  4960. },
  4961. "isFrame": {
  4962. "description": "是否frame",
  4963. "type": "string"
  4964. },
  4965. "menuId": {
  4966. "description": "编码",
  4967. "type": "integer"
  4968. },
  4969. "menuName": {
  4970. "description": "菜单name",
  4971. "type": "string"
  4972. },
  4973. "menuType": {
  4974. "description": "菜单类型",
  4975. "type": "string"
  4976. },
  4977. "noCache": {
  4978. "description": "是否缓存",
  4979. "type": "boolean"
  4980. },
  4981. "parentId": {
  4982. "description": "上级菜单",
  4983. "type": "integer"
  4984. },
  4985. "path": {
  4986. "description": "路径",
  4987. "type": "string"
  4988. },
  4989. "paths": {
  4990. "description": "id路径",
  4991. "type": "string"
  4992. },
  4993. "permission": {
  4994. "description": "权限编码",
  4995. "type": "string"
  4996. },
  4997. "sort": {
  4998. "description": "排序",
  4999. "type": "integer"
  5000. },
  5001. "sysApi": {
  5002. "type": "array",
  5003. "items": {
  5004. "$ref": "#/definitions/models.SysApi"
  5005. }
  5006. },
  5007. "title": {
  5008. "description": "显示名称",
  5009. "type": "string"
  5010. },
  5011. "updateBy": {
  5012. "type": "integer"
  5013. },
  5014. "visible": {
  5015. "description": "是否显示",
  5016. "type": "string"
  5017. }
  5018. }
  5019. },
  5020. "dto.SysOperaLogDeleteReq": {
  5021. "type": "object",
  5022. "properties": {
  5023. "ids": {
  5024. "type": "array",
  5025. "items": {
  5026. "type": "integer"
  5027. }
  5028. }
  5029. }
  5030. },
  5031. "dto.SysPostDeleteReq": {
  5032. "type": "object",
  5033. "properties": {
  5034. "createBy": {
  5035. "type": "integer"
  5036. },
  5037. "ids": {
  5038. "type": "array",
  5039. "items": {
  5040. "type": "integer"
  5041. }
  5042. },
  5043. "updateBy": {
  5044. "type": "integer"
  5045. }
  5046. }
  5047. },
  5048. "dto.SysPostInsertReq": {
  5049. "type": "object",
  5050. "properties": {
  5051. "createBy": {
  5052. "type": "integer"
  5053. },
  5054. "postCode": {
  5055. "type": "string"
  5056. },
  5057. "postId": {
  5058. "type": "integer"
  5059. },
  5060. "postName": {
  5061. "type": "string"
  5062. },
  5063. "remark": {
  5064. "type": "string"
  5065. },
  5066. "sort": {
  5067. "type": "integer"
  5068. },
  5069. "status": {
  5070. "type": "integer"
  5071. },
  5072. "updateBy": {
  5073. "type": "integer"
  5074. }
  5075. }
  5076. },
  5077. "dto.SysPostUpdateReq": {
  5078. "type": "object",
  5079. "properties": {
  5080. "createBy": {
  5081. "type": "integer"
  5082. },
  5083. "postCode": {
  5084. "type": "string"
  5085. },
  5086. "postId": {
  5087. "type": "integer"
  5088. },
  5089. "postName": {
  5090. "type": "string"
  5091. },
  5092. "remark": {
  5093. "type": "string"
  5094. },
  5095. "sort": {
  5096. "type": "integer"
  5097. },
  5098. "status": {
  5099. "type": "integer"
  5100. },
  5101. "updateBy": {
  5102. "type": "integer"
  5103. }
  5104. }
  5105. },
  5106. "dto.SysRoleDeleteReq": {
  5107. "type": "object",
  5108. "properties": {
  5109. "ids": {
  5110. "type": "array",
  5111. "items": {
  5112. "type": "integer"
  5113. }
  5114. }
  5115. }
  5116. },
  5117. "dto.SysRoleInsertReq": {
  5118. "type": "object",
  5119. "properties": {
  5120. "admin": {
  5121. "type": "boolean"
  5122. },
  5123. "createBy": {
  5124. "type": "integer"
  5125. },
  5126. "dataScope": {
  5127. "type": "string"
  5128. },
  5129. "deptIds": {
  5130. "type": "array",
  5131. "items": {
  5132. "type": "integer"
  5133. }
  5134. },
  5135. "flag": {
  5136. "description": "标记",
  5137. "type": "string"
  5138. },
  5139. "menuIds": {
  5140. "type": "array",
  5141. "items": {
  5142. "type": "integer"
  5143. }
  5144. },
  5145. "remark": {
  5146. "description": "备注",
  5147. "type": "string"
  5148. },
  5149. "roleId": {
  5150. "description": "角色编码",
  5151. "type": "integer"
  5152. },
  5153. "roleKey": {
  5154. "description": "角色代码",
  5155. "type": "string"
  5156. },
  5157. "roleName": {
  5158. "description": "角色名称",
  5159. "type": "string"
  5160. },
  5161. "roleSort": {
  5162. "description": "角色排序",
  5163. "type": "integer"
  5164. },
  5165. "status": {
  5166. "description": "状态",
  5167. "type": "string"
  5168. },
  5169. "sysDept": {
  5170. "type": "array",
  5171. "items": {
  5172. "$ref": "#/definitions/models.SysDept"
  5173. }
  5174. },
  5175. "sysMenu": {
  5176. "type": "array",
  5177. "items": {
  5178. "$ref": "#/definitions/models.SysMenu"
  5179. }
  5180. },
  5181. "updateBy": {
  5182. "type": "integer"
  5183. }
  5184. }
  5185. },
  5186. "dto.SysRoleUpdateReq": {
  5187. "type": "object",
  5188. "properties": {
  5189. "admin": {
  5190. "type": "boolean"
  5191. },
  5192. "createBy": {
  5193. "type": "integer"
  5194. },
  5195. "dataScope": {
  5196. "type": "string"
  5197. },
  5198. "deptIds": {
  5199. "type": "array",
  5200. "items": {
  5201. "type": "integer"
  5202. }
  5203. },
  5204. "flag": {
  5205. "description": "标记",
  5206. "type": "string"
  5207. },
  5208. "menuIds": {
  5209. "type": "array",
  5210. "items": {
  5211. "type": "integer"
  5212. }
  5213. },
  5214. "remark": {
  5215. "description": "备注",
  5216. "type": "string"
  5217. },
  5218. "roleId": {
  5219. "description": "角色编码",
  5220. "type": "integer"
  5221. },
  5222. "roleKey": {
  5223. "description": "角色代码",
  5224. "type": "string"
  5225. },
  5226. "roleName": {
  5227. "description": "角色名称",
  5228. "type": "string"
  5229. },
  5230. "roleSort": {
  5231. "description": "角色排序",
  5232. "type": "integer"
  5233. },
  5234. "status": {
  5235. "description": "状态",
  5236. "type": "string"
  5237. },
  5238. "sysDept": {
  5239. "type": "array",
  5240. "items": {
  5241. "$ref": "#/definitions/models.SysDept"
  5242. }
  5243. },
  5244. "sysMenu": {
  5245. "type": "array",
  5246. "items": {
  5247. "$ref": "#/definitions/models.SysMenu"
  5248. }
  5249. },
  5250. "updateBy": {
  5251. "type": "integer"
  5252. }
  5253. }
  5254. },
  5255. "dto.SysUserInsertReq": {
  5256. "type": "object",
  5257. "properties": {
  5258. "avatar": {
  5259. "type": "string"
  5260. },
  5261. "createBy": {
  5262. "type": "integer"
  5263. },
  5264. "deptId": {
  5265. "type": "integer"
  5266. },
  5267. "email": {
  5268. "type": "string"
  5269. },
  5270. "nickName": {
  5271. "type": "string"
  5272. },
  5273. "password": {
  5274. "type": "string"
  5275. },
  5276. "phone": {
  5277. "type": "string"
  5278. },
  5279. "postId": {
  5280. "type": "integer"
  5281. },
  5282. "remark": {
  5283. "type": "string"
  5284. },
  5285. "roleId": {
  5286. "type": "integer"
  5287. },
  5288. "sex": {
  5289. "type": "string"
  5290. },
  5291. "status": {
  5292. "type": "string",
  5293. "default": "1"
  5294. },
  5295. "updateBy": {
  5296. "type": "integer"
  5297. },
  5298. "userId": {
  5299. "description": "用户ID",
  5300. "type": "integer"
  5301. },
  5302. "username": {
  5303. "type": "string"
  5304. }
  5305. }
  5306. },
  5307. "dto.SysUserUpdateReq": {
  5308. "type": "object",
  5309. "properties": {
  5310. "avatar": {
  5311. "type": "string"
  5312. },
  5313. "createBy": {
  5314. "type": "integer"
  5315. },
  5316. "deptId": {
  5317. "type": "integer"
  5318. },
  5319. "email": {
  5320. "type": "string"
  5321. },
  5322. "nickName": {
  5323. "type": "string"
  5324. },
  5325. "phone": {
  5326. "type": "string"
  5327. },
  5328. "postId": {
  5329. "type": "integer"
  5330. },
  5331. "remark": {
  5332. "type": "string"
  5333. },
  5334. "roleId": {
  5335. "type": "integer"
  5336. },
  5337. "sex": {
  5338. "type": "string"
  5339. },
  5340. "status": {
  5341. "type": "string",
  5342. "default": "1"
  5343. },
  5344. "updateBy": {
  5345. "type": "integer"
  5346. },
  5347. "userId": {
  5348. "description": "用户ID",
  5349. "type": "integer"
  5350. },
  5351. "username": {
  5352. "type": "string"
  5353. }
  5354. }
  5355. },
  5356. "dto.UpdateStatusReq": {
  5357. "type": "object",
  5358. "properties": {
  5359. "createBy": {
  5360. "type": "integer"
  5361. },
  5362. "roleId": {
  5363. "description": "角色编码",
  5364. "type": "integer"
  5365. },
  5366. "status": {
  5367. "description": "状态",
  5368. "type": "string"
  5369. },
  5370. "updateBy": {
  5371. "type": "integer"
  5372. }
  5373. }
  5374. },
  5375. "dto.UpdateSysUserStatusReq": {
  5376. "type": "object",
  5377. "properties": {
  5378. "createBy": {
  5379. "type": "integer"
  5380. },
  5381. "status": {
  5382. "type": "string"
  5383. },
  5384. "updateBy": {
  5385. "type": "integer"
  5386. },
  5387. "userId": {
  5388. "description": "用户ID",
  5389. "type": "integer"
  5390. }
  5391. }
  5392. },
  5393. "handler.Login": {
  5394. "type": "object",
  5395. "required": [
  5396. "code",
  5397. "password",
  5398. "username",
  5399. "uuid"
  5400. ],
  5401. "properties": {
  5402. "code": {
  5403. "type": "string"
  5404. },
  5405. "password": {
  5406. "type": "string"
  5407. },
  5408. "username": {
  5409. "type": "string"
  5410. },
  5411. "uuid": {
  5412. "type": "string"
  5413. }
  5414. }
  5415. },
  5416. "models.SysApi": {
  5417. "type": "object",
  5418. "properties": {
  5419. "action": {
  5420. "type": "string"
  5421. },
  5422. "createBy": {
  5423. "type": "integer"
  5424. },
  5425. "createdAt": {
  5426. "type": "string"
  5427. },
  5428. "handle": {
  5429. "type": "string"
  5430. },
  5431. "id": {
  5432. "type": "integer"
  5433. },
  5434. "path": {
  5435. "type": "string"
  5436. },
  5437. "title": {
  5438. "type": "string"
  5439. },
  5440. "type": {
  5441. "type": "string"
  5442. },
  5443. "updateBy": {
  5444. "type": "integer"
  5445. },
  5446. "updatedAt": {
  5447. "type": "string"
  5448. }
  5449. }
  5450. },
  5451. "models.SysConfig": {
  5452. "type": "object",
  5453. "properties": {
  5454. "configKey": {
  5455. "type": "string"
  5456. },
  5457. "configName": {
  5458. "type": "string"
  5459. },
  5460. "configType": {
  5461. "type": "string"
  5462. },
  5463. "configValue": {
  5464. "type": "string"
  5465. },
  5466. "createBy": {
  5467. "type": "integer"
  5468. },
  5469. "createdAt": {
  5470. "type": "string"
  5471. },
  5472. "id": {
  5473. "type": "integer"
  5474. },
  5475. "isFrontend": {
  5476. "type": "integer"
  5477. },
  5478. "remark": {
  5479. "type": "string"
  5480. },
  5481. "updateBy": {
  5482. "type": "integer"
  5483. },
  5484. "updatedAt": {
  5485. "type": "string"
  5486. }
  5487. }
  5488. },
  5489. "models.SysDept": {
  5490. "type": "object",
  5491. "properties": {
  5492. "children": {
  5493. "type": "array",
  5494. "items": {
  5495. "$ref": "#/definitions/models.SysDept"
  5496. }
  5497. },
  5498. "createBy": {
  5499. "type": "integer"
  5500. },
  5501. "createdAt": {
  5502. "type": "string"
  5503. },
  5504. "dataScope": {
  5505. "type": "string"
  5506. },
  5507. "deptId": {
  5508. "description": "部门编码",
  5509. "type": "integer"
  5510. },
  5511. "deptName": {
  5512. "description": "部门名称",
  5513. "type": "string"
  5514. },
  5515. "deptPath": {
  5516. "type": "string"
  5517. },
  5518. "email": {
  5519. "description": "邮箱",
  5520. "type": "string"
  5521. },
  5522. "leader": {
  5523. "description": "负责人",
  5524. "type": "string"
  5525. },
  5526. "params": {
  5527. "type": "string"
  5528. },
  5529. "parentId": {
  5530. "description": "上级部门",
  5531. "type": "integer"
  5532. },
  5533. "phone": {
  5534. "description": "手机",
  5535. "type": "string"
  5536. },
  5537. "sort": {
  5538. "description": "排序",
  5539. "type": "integer"
  5540. },
  5541. "status": {
  5542. "description": "状态",
  5543. "type": "integer"
  5544. },
  5545. "updateBy": {
  5546. "type": "integer"
  5547. },
  5548. "updatedAt": {
  5549. "type": "string"
  5550. }
  5551. }
  5552. },
  5553. "models.SysMenu": {
  5554. "type": "object",
  5555. "properties": {
  5556. "action": {
  5557. "type": "string"
  5558. },
  5559. "apis": {
  5560. "type": "array",
  5561. "items": {
  5562. "type": "integer"
  5563. }
  5564. },
  5565. "breadcrumb": {
  5566. "type": "string"
  5567. },
  5568. "children": {
  5569. "type": "array",
  5570. "items": {
  5571. "$ref": "#/definitions/models.SysMenu"
  5572. }
  5573. },
  5574. "component": {
  5575. "type": "string"
  5576. },
  5577. "createBy": {
  5578. "type": "integer"
  5579. },
  5580. "createdAt": {
  5581. "type": "string"
  5582. },
  5583. "dataScope": {
  5584. "type": "string"
  5585. },
  5586. "icon": {
  5587. "type": "string"
  5588. },
  5589. "isFrame": {
  5590. "type": "string"
  5591. },
  5592. "is_select": {
  5593. "type": "boolean"
  5594. },
  5595. "menuId": {
  5596. "type": "integer"
  5597. },
  5598. "menuName": {
  5599. "type": "string"
  5600. },
  5601. "menuType": {
  5602. "type": "string"
  5603. },
  5604. "noCache": {
  5605. "type": "boolean"
  5606. },
  5607. "params": {
  5608. "type": "string"
  5609. },
  5610. "parentId": {
  5611. "type": "integer"
  5612. },
  5613. "path": {
  5614. "type": "string"
  5615. },
  5616. "paths": {
  5617. "type": "string"
  5618. },
  5619. "permission": {
  5620. "type": "string"
  5621. },
  5622. "roleId": {
  5623. "type": "integer"
  5624. },
  5625. "sort": {
  5626. "type": "integer"
  5627. },
  5628. "sysApi": {
  5629. "type": "array",
  5630. "items": {
  5631. "$ref": "#/definitions/models.SysApi"
  5632. }
  5633. },
  5634. "title": {
  5635. "type": "string"
  5636. },
  5637. "updateBy": {
  5638. "type": "integer"
  5639. },
  5640. "updatedAt": {
  5641. "type": "string"
  5642. },
  5643. "visible": {
  5644. "type": "string"
  5645. }
  5646. }
  5647. },
  5648. "response.Page": {
  5649. "type": "object",
  5650. "properties": {
  5651. "count": {
  5652. "type": "integer"
  5653. },
  5654. "pageIndex": {
  5655. "type": "integer"
  5656. },
  5657. "pageSize": {
  5658. "type": "integer"
  5659. }
  5660. }
  5661. },
  5662. "response.Response": {
  5663. "type": "object",
  5664. "properties": {
  5665. "code": {
  5666. "type": "integer"
  5667. },
  5668. "msg": {
  5669. "type": "string"
  5670. },
  5671. "requestId": {
  5672. "description": "数据集",
  5673. "type": "string"
  5674. },
  5675. "status": {
  5676. "type": "string"
  5677. }
  5678. }
  5679. },
  5680. "tools.Params": {
  5681. "type": "object",
  5682. "properties": {
  5683. "treeCode": {
  5684. "type": "string"
  5685. },
  5686. "treeName": {
  5687. "type": "string"
  5688. },
  5689. "treeParentCode": {
  5690. "type": "string"
  5691. }
  5692. }
  5693. },
  5694. "tools.SysColumns": {
  5695. "type": "object",
  5696. "properties": {
  5697. "columnComment": {
  5698. "type": "string"
  5699. },
  5700. "columnId": {
  5701. "type": "integer"
  5702. },
  5703. "columnName": {
  5704. "type": "string"
  5705. },
  5706. "columnType": {
  5707. "type": "string"
  5708. },
  5709. "createBy": {
  5710. "type": "integer"
  5711. },
  5712. "createdAt": {
  5713. "type": "string"
  5714. },
  5715. "deletedAt": {
  5716. "type": "string"
  5717. },
  5718. "dictType": {
  5719. "type": "string"
  5720. },
  5721. "edit": {
  5722. "type": "boolean"
  5723. },
  5724. "fkCol": {
  5725. "type": "array",
  5726. "items": {
  5727. "$ref": "#/definitions/tools.SysColumns"
  5728. }
  5729. },
  5730. "fkLabelId": {
  5731. "type": "string"
  5732. },
  5733. "fkLabelName": {
  5734. "type": "string"
  5735. },
  5736. "fkTableName": {
  5737. "type": "string"
  5738. },
  5739. "fkTableNameClass": {
  5740. "type": "string"
  5741. },
  5742. "fkTableNamePackage": {
  5743. "type": "string"
  5744. },
  5745. "goField": {
  5746. "type": "string"
  5747. },
  5748. "goType": {
  5749. "type": "string"
  5750. },
  5751. "htmlType": {
  5752. "type": "string"
  5753. },
  5754. "increment": {
  5755. "type": "boolean"
  5756. },
  5757. "insert": {
  5758. "type": "boolean"
  5759. },
  5760. "isEdit": {
  5761. "type": "string"
  5762. },
  5763. "isIncrement": {
  5764. "type": "string"
  5765. },
  5766. "isInsert": {
  5767. "type": "string"
  5768. },
  5769. "isList": {
  5770. "type": "string"
  5771. },
  5772. "isPk": {
  5773. "type": "string"
  5774. },
  5775. "isQuery": {
  5776. "type": "string"
  5777. },
  5778. "isRequired": {
  5779. "type": "string"
  5780. },
  5781. "jsonField": {
  5782. "type": "string"
  5783. },
  5784. "list": {
  5785. "type": "string"
  5786. },
  5787. "pk": {
  5788. "type": "boolean"
  5789. },
  5790. "query": {
  5791. "type": "boolean"
  5792. },
  5793. "queryType": {
  5794. "type": "string"
  5795. },
  5796. "remark": {
  5797. "type": "string"
  5798. },
  5799. "required": {
  5800. "type": "boolean"
  5801. },
  5802. "sort": {
  5803. "type": "integer"
  5804. },
  5805. "superColumn": {
  5806. "type": "boolean"
  5807. },
  5808. "tableId": {
  5809. "type": "integer"
  5810. },
  5811. "updateBy": {
  5812. "type": "integer"
  5813. },
  5814. "updatedAt": {
  5815. "type": "string"
  5816. },
  5817. "usableColumn": {
  5818. "type": "boolean"
  5819. }
  5820. }
  5821. },
  5822. "tools.SysTables": {
  5823. "type": "object",
  5824. "properties": {
  5825. "businessName": {
  5826. "type": "string"
  5827. },
  5828. "className": {
  5829. "description": "类名",
  5830. "type": "string"
  5831. },
  5832. "columns": {
  5833. "type": "array",
  5834. "items": {
  5835. "$ref": "#/definitions/tools.SysColumns"
  5836. }
  5837. },
  5838. "createBy": {
  5839. "type": "integer"
  5840. },
  5841. "createdAt": {
  5842. "type": "string"
  5843. },
  5844. "crud": {
  5845. "type": "boolean"
  5846. },
  5847. "dataScope": {
  5848. "type": "string"
  5849. },
  5850. "deletedAt": {
  5851. "type": "string"
  5852. },
  5853. "functionAuthor": {
  5854. "description": "功能作者",
  5855. "type": "string"
  5856. },
  5857. "functionName": {
  5858. "description": "功能名称",
  5859. "type": "string"
  5860. },
  5861. "isActions": {
  5862. "type": "integer"
  5863. },
  5864. "isAuth": {
  5865. "type": "integer"
  5866. },
  5867. "isDataScope": {
  5868. "type": "integer"
  5869. },
  5870. "isLogicalDelete": {
  5871. "type": "string"
  5872. },
  5873. "logicalDelete": {
  5874. "type": "boolean"
  5875. },
  5876. "logicalDeleteColumn": {
  5877. "type": "string"
  5878. },
  5879. "moduleFrontName": {
  5880. "description": "前端文件名",
  5881. "type": "string"
  5882. },
  5883. "moduleName": {
  5884. "description": "go文件名",
  5885. "type": "string"
  5886. },
  5887. "options": {
  5888. "type": "string"
  5889. },
  5890. "packageName": {
  5891. "description": "包名",
  5892. "type": "string"
  5893. },
  5894. "params": {
  5895. "$ref": "#/definitions/tools.Params"
  5896. },
  5897. "pkColumn": {
  5898. "type": "string"
  5899. },
  5900. "pkGoField": {
  5901. "type": "string"
  5902. },
  5903. "pkJsonField": {
  5904. "type": "string"
  5905. },
  5906. "remark": {
  5907. "type": "string"
  5908. },
  5909. "tableComment": {
  5910. "description": "表备注",
  5911. "type": "string"
  5912. },
  5913. "tableId": {
  5914. "description": "表编码",
  5915. "type": "integer"
  5916. },
  5917. "tableName": {
  5918. "description": "表名称",
  5919. "type": "string"
  5920. },
  5921. "tplCategory": {
  5922. "type": "string"
  5923. },
  5924. "tree": {
  5925. "type": "boolean"
  5926. },
  5927. "treeCode": {
  5928. "type": "string"
  5929. },
  5930. "treeName": {
  5931. "type": "string"
  5932. },
  5933. "treeParentCode": {
  5934. "type": "string"
  5935. },
  5936. "updateBy": {
  5937. "type": "integer"
  5938. },
  5939. "updatedAt": {
  5940. "type": "string"
  5941. }
  5942. }
  5943. }
  5944. },
  5945. "securityDefinitions": {
  5946. "Bearer": {
  5947. "type": "apiKey",
  5948. "name": "Authorization",
  5949. "in": "header"
  5950. }
  5951. }
  5952. }