swagger.json 248 KB

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