swagger.json 202 KB

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