swagger.json 200 KB

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