swagger.json 244 KB

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