swagger.json 234 KB

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