docs.go 203 KB

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