swagger.json 252 KB

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