docs.go 192 KB

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