swagger.json 226 KB

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