swagger.yml 115 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216
  1. swagger: "2.0"
  2. info:
  3. title: SCD检测工具API
  4. description: <a href='/static/pc/Demo.html' target='_self'>本地窗口功能集成说明文档</a><br><br><hr><br><br>SCD检测工具接口文档。本文档仅用于本项目的前端接口说明<br><span
  5. style='color:red;font-size:16px;'>*****实际使用接口时,均需要将用户登录token通过header进行提交*****</span>
  6. version: 1.0.0
  7. contact:
  8. email: 3116246@qq.com
  9. basePath: api
  10. paths:
  11. /admin/get/check_area:
  12. get:
  13. tags:
  14. - scd_check_tools/controllersBusAdminController
  15. summary: 查询指定电压等级及接线方式下的检测间隔分析结果
  16. description: 查询指定电压等级及接线方式下的检测间隔分析结果
  17. parameters:
  18. - in: formData
  19. name: scd_id
  20. description: SCD文件ID
  21. required: true
  22. type: integer
  23. format: int64
  24. - in: formData
  25. name: vol_id
  26. description: 电压等级ID
  27. type: integer
  28. format: int64
  29. - in: formData
  30. name: link_style_id
  31. description: 接线方式ID
  32. type: integer
  33. format: int64
  34. responses:
  35. "200":
  36. description: 成功
  37. schema:
  38. $ref: '#/definitions/ResultOK'
  39. "500":
  40. description: '{object} ResultError 失败'
  41. /admin/get/check_area/ied:
  42. get:
  43. tags:
  44. - scd_check_tools/controllersBusAdminController
  45. summary: 查询指定检测间隔下的IED装置列表
  46. description: 查询指定检测间隔下的IED装置列表
  47. parameters:
  48. - in: formData
  49. name: scd_id
  50. description: SCD文件ID
  51. required: true
  52. type: integer
  53. format: int64
  54. - in: formData
  55. name: area_id
  56. description: 检测间隔ID
  57. required: true
  58. type: integer
  59. format: int64
  60. responses:
  61. "200":
  62. description: 成功
  63. schema:
  64. $ref: '#/definitions/ResultOK'
  65. "500":
  66. description: '{object} ResultError 失败'
  67. /admin/linkstyle-model/delete:
  68. post:
  69. tags:
  70. - scd_check_tools/controllersBusAdminController
  71. summary: 删除指定接线方式下属的模型
  72. description: 删除指定接线方式下属的模型
  73. parameters:
  74. - in: formData
  75. name: id
  76. description: 接线方式ID
  77. required: true
  78. type: integer
  79. format: int64
  80. - in: formData
  81. name: model_id
  82. description: 模型ID
  83. required: true
  84. type: integer
  85. format: int64
  86. responses:
  87. "200":
  88. description: 成功
  89. schema:
  90. $ref: '#/definitions/ResultOK'
  91. "500":
  92. description: '{object} ResultError 失败'
  93. /admin/linkstyle-model/list:
  94. get:
  95. tags:
  96. - scd_check_tools/controllersBusAdminController
  97. summary: 查询接线方式下模型列表
  98. description: 查询接线方式下模型列表
  99. parameters:
  100. - in: query
  101. name: pageno
  102. description: 当前页码。默认为1
  103. required: true
  104. type: integer
  105. format: int64
  106. - in: query
  107. name: pagesize
  108. description: 每页显示数据数。默认为20
  109. required: true
  110. type: integer
  111. format: int64
  112. - in: query
  113. name: id
  114. description: ID
  115. type: integer
  116. format: int64
  117. - in: query
  118. name: linkstyle_id
  119. description: 接线方式ID
  120. type: integer
  121. format: int64
  122. responses:
  123. "200":
  124. description: 成功
  125. schema:
  126. $ref: '#/definitions/ResultOK'
  127. "500":
  128. description: '{object} ResultError 失败'
  129. /admin/linkstyle-model/save:
  130. post:
  131. tags:
  132. - scd_check_tools/controllersBusAdminController
  133. summary: 添加接线方式的模型
  134. description: 添加接线方式的模型
  135. parameters:
  136. - in: formData
  137. name: id
  138. description: 数据ID。指定id值大于0时为编辑操作;否则为新增操作
  139. type: integer
  140. format: int64
  141. - in: formData
  142. name: linkstyle_id
  143. description: 接线方式ID
  144. required: true
  145. type: integer
  146. format: int64
  147. - in: formData
  148. name: model_id
  149. description: 内置模型id
  150. required: true
  151. type: integer
  152. format: int64
  153. responses:
  154. "200":
  155. description: 成功
  156. schema:
  157. $ref: '#/definitions/ResultOK'
  158. "500":
  159. description: '{object} ResultError 失败'
  160. /admin/linkstyle/delete:
  161. post:
  162. tags:
  163. - scd_check_tools/controllersBusAdminController
  164. summary: 删除指定的接线方式
  165. description: 删除指定的接线方式
  166. parameters:
  167. - in: formData
  168. name: id
  169. description: 接线方式ID
  170. required: true
  171. type: integer
  172. format: int64
  173. responses:
  174. "200":
  175. description: 成功
  176. schema:
  177. $ref: '#/definitions/ResultOK'
  178. "500":
  179. description: '{object} ResultError 失败'
  180. /admin/linkstyle/list:
  181. get:
  182. tags:
  183. - scd_check_tools/controllersBusAdminController
  184. summary: 查询接线方式
  185. description: 查询接线方式。支持名称、电压等级等过滤条件
  186. parameters:
  187. - in: query
  188. name: pageno
  189. description: 当前页码。默认为1
  190. required: true
  191. type: integer
  192. format: int64
  193. - in: query
  194. name: pagesize
  195. description: 每页显示数据数。默认为20
  196. required: true
  197. type: integer
  198. format: int64
  199. - in: query
  200. name: id
  201. description: ID
  202. type: integer
  203. format: int64
  204. - in: query
  205. name: vol_id
  206. description: 电压ID
  207. type: integer
  208. format: int64
  209. - in: query
  210. name: name
  211. description: 名称
  212. type: string
  213. responses:
  214. "200":
  215. description: 成功
  216. schema:
  217. $ref: '#/definitions/ResultOK'
  218. "500":
  219. description: '{object} ResultError 失败'
  220. /admin/linkstyle/save:
  221. post:
  222. tags:
  223. - scd_check_tools/controllersBusAdminController
  224. summary: 创建新的接线方式
  225. description: 创建新的接线方式
  226. parameters:
  227. - in: formData
  228. name: id
  229. description: 数据ID。指定id值大于0时为编辑操作;否则为新增操作
  230. type: integer
  231. format: int64
  232. - in: formData
  233. name: name
  234. description: 任务名称
  235. required: true
  236. type: string
  237. - in: formData
  238. name: vol_id
  239. description: 电压等级ID
  240. required: true
  241. type: integer
  242. format: int64
  243. - in: formData
  244. name: pic
  245. description: 接线图地址
  246. type: string
  247. responses:
  248. "200":
  249. description: 成功
  250. schema:
  251. $ref: '#/definitions/ResultOK'
  252. "500":
  253. description: '{object} ResultError 失败'
  254. /admin/model/function/fcda-ref/list:
  255. get:
  256. tags:
  257. - scd_check_tools/controllersBusAdminController
  258. summary: 获取模型装置端子已关联的接收端子
  259. description: 获取模型装置端子已关联的接收端子
  260. parameters:
  261. - in: formData
  262. name: model_id
  263. description: 模型ID
  264. required: true
  265. type: integer
  266. format: int64
  267. - in: formData
  268. name: from_fcda_id
  269. description: 输出装置端子ID
  270. required: true
  271. type: integer
  272. format: int64
  273. - in: formData
  274. name: to_ied_type
  275. description: 输入装置类型
  276. type: string
  277. - in: formData
  278. name: goosesv
  279. description: 信号类型。GOOSE|SV
  280. type: string
  281. responses:
  282. "200":
  283. description: 成功
  284. schema:
  285. $ref: '#/definitions/ResultOK'
  286. "500":
  287. description: '{object} ResultError 失败'
  288. /admin/model/function/fcda-ref/save:
  289. post:
  290. tags:
  291. - scd_check_tools/controllersBusAdminController
  292. summary: 保存模型装置端子间关联关系
  293. description: 保存模型装置端子间关联关系
  294. parameters:
  295. - in: formData
  296. name: model_id
  297. description: 模型ID
  298. required: true
  299. type: integer
  300. format: int64
  301. - in: formData
  302. name: from_ied_type
  303. description: 输出装置类型
  304. required: true
  305. type: string
  306. - in: formData
  307. name: to_ied_type
  308. description: 输入装置类型
  309. required: true
  310. type: string
  311. - in: formData
  312. name: from_fcda_id
  313. description: 输出装置端子ID
  314. required: true
  315. type: integer
  316. format: int64
  317. - in: formData
  318. name: to_fcda_ids
  319. description: 输入装置端子ID列表。多个ID间使用逗号分隔
  320. required: true
  321. type: string
  322. - in: formData
  323. name: goosesv
  324. description: 信号类型。值范围:GOOSE|SV
  325. required: true
  326. type: string
  327. responses:
  328. "200":
  329. description: 成功
  330. schema:
  331. $ref: '#/definitions/ResultOK'
  332. "500":
  333. description: '{object} ResultError 失败'
  334. /admin/model/function/fcda/del:
  335. post:
  336. tags:
  337. - scd_check_tools/controllersBusAdminController
  338. summary: 删除装置端子
  339. description: 删除装置端子
  340. parameters:
  341. - in: formData
  342. name: model_id
  343. description: 模型ID
  344. required: true
  345. type: integer
  346. format: int64
  347. - in: formData
  348. name: fcda_id
  349. description: 端子ID
  350. required: true
  351. type: integer
  352. format: int64
  353. responses:
  354. "200":
  355. description: 成功
  356. schema:
  357. $ref: '#/definitions/ResultOK'
  358. "500":
  359. description: '{object} ResultError 失败'
  360. /admin/model/function/fcda/list:
  361. get:
  362. tags:
  363. - scd_check_tools/controllersBusAdminController
  364. summary: 获取指定模型和装置类型的端子列表
  365. description: 获取指定模型和装置类型的端子列表
  366. parameters:
  367. - in: formData
  368. name: model_id
  369. description: 模型ID
  370. required: true
  371. type: integer
  372. format: int64
  373. - in: formData
  374. name: ied_type
  375. description: 装置类型
  376. required: true
  377. type: string
  378. responses:
  379. "200":
  380. description: 成功
  381. schema:
  382. $ref: '#/definitions/ResultOK'
  383. "500":
  384. description: '{object} ResultError 失败'
  385. /admin/model/function/fcda/save:
  386. post:
  387. tags:
  388. - scd_check_tools/controllersBusAdminController
  389. summary: 保存模型装置功能及端子信息
  390. description: 保存装置功能及端子信息
  391. parameters:
  392. - in: formData
  393. name: model_id
  394. description: 模型ID
  395. required: true
  396. type: integer
  397. format: int64
  398. - in: formData
  399. name: ied_type
  400. description: 装置类型代码
  401. required: true
  402. type: string
  403. - in: formData
  404. name: func_id
  405. description: 功能ID。编辑时必传。
  406. type: integer
  407. format: int64
  408. - in: formData
  409. name: func_name
  410. description: 功能名称。必传。
  411. required: true
  412. type: string
  413. - in: formData
  414. name: fcda_id
  415. description: 端子ID。编辑时必传。
  416. type: integer
  417. format: int64
  418. - in: formData
  419. name: fcda_name
  420. description: 端子名称。必传。
  421. required: true
  422. type: string
  423. - in: formData
  424. name: fcda_match_exp
  425. description: 端子匹配表达式。必传。
  426. required: true
  427. type: string
  428. responses:
  429. "200":
  430. description: 成功
  431. schema:
  432. $ref: '#/definitions/ResultOK'
  433. "500":
  434. description: '{object} ResultError 失败'
  435. /admin/model/function/list:
  436. get:
  437. tags:
  438. - scd_check_tools/controllersBusAdminController
  439. summary: 获取指定模型和装置类型的功能列表
  440. description: 获取指定模型和装置类型的功能列表
  441. parameters:
  442. - in: formData
  443. name: model_id
  444. description: 模型ID
  445. required: true
  446. type: integer
  447. format: int64
  448. - in: formData
  449. name: ied_type
  450. description: 装置类型
  451. required: true
  452. type: string
  453. responses:
  454. "200":
  455. description: 成功
  456. schema:
  457. $ref: '#/definitions/ResultOK'
  458. "500":
  459. description: '{object} ResultError 失败'
  460. /admin/parse/check_area:
  461. post:
  462. tags:
  463. - scd_check_tools/controllersBusAdminController
  464. summary: 重新分析指定的SCD检测模型间隔
  465. description: 重新分析指定的SCD检测模型间隔
  466. parameters:
  467. - in: formData
  468. name: scd_id
  469. description: SCD文件ID
  470. required: true
  471. type: integer
  472. format: int64
  473. responses:
  474. "200":
  475. description: 成功
  476. schema:
  477. $ref: '#/definitions/ResultOK'
  478. "500":
  479. description: '{object} ResultError 失败'
  480. /admin/sysmodel/delete:
  481. post:
  482. tags:
  483. - scd_check_tools/controllersBusAdminController
  484. summary: 删除指定的检测模型
  485. description: 删除指定的检测模型
  486. parameters:
  487. - in: formData
  488. name: id
  489. description: 模型ID
  490. required: true
  491. type: integer
  492. format: int64
  493. responses:
  494. "200":
  495. description: 成功
  496. schema:
  497. $ref: '#/definitions/ResultOK'
  498. "500":
  499. description: '{object} ResultError 失败'
  500. /admin/sysmodel/list:
  501. get:
  502. tags:
  503. - scd_check_tools/controllersBusAdminController
  504. summary: 查询检测模型列表
  505. description: 查询检测模型列表。支持名称、电压等级等过滤条件
  506. parameters:
  507. - in: query
  508. name: pageno
  509. description: 当前页码。默认为1
  510. required: true
  511. type: integer
  512. format: int64
  513. - in: query
  514. name: pagesize
  515. description: 每页显示数据数。默认为20
  516. required: true
  517. type: integer
  518. format: int64
  519. - in: query
  520. name: id
  521. description: ID
  522. type: integer
  523. format: int64
  524. - in: query
  525. name: vol_id
  526. description: 电压等级ID
  527. type: integer
  528. format: int64
  529. - in: query
  530. name: model_name
  531. description: 名称
  532. type: string
  533. - in: query
  534. name: line_link_style
  535. description: 接线方式
  536. type: integer
  537. format: int64
  538. - in: query
  539. name: area_type
  540. description: 间隔类型
  541. type: integer
  542. format: int64
  543. - in: query
  544. name: is_sys
  545. description: 模型类型。1 内置模型 2 自定义模型
  546. type: integer
  547. format: int64
  548. responses:
  549. "200":
  550. description: 成功
  551. schema:
  552. $ref: '#/definitions/ResultOK'
  553. "500":
  554. description: '{object} ResultError 失败'
  555. /admin/sysmodel/save:
  556. post:
  557. tags:
  558. - scd_check_tools/controllersBusAdminController
  559. summary: 创建或编辑新的内置模型
  560. description: 创建新的内置模型
  561. parameters:
  562. - in: formData
  563. name: id
  564. description: 数据ID。指定id值大于0时为编辑操作;否则为新增操作
  565. type: integer
  566. format: int64
  567. - in: formData
  568. name: model_name
  569. description: 模型名称
  570. required: true
  571. type: string
  572. - in: formData
  573. name: vol_id
  574. description: 电压等级ID
  575. required: true
  576. type: integer
  577. format: int64
  578. - in: formData
  579. name: line_link_style
  580. description: 接线方式ID
  581. required: true
  582. type: integer
  583. format: int64
  584. - in: formData
  585. name: ied_types
  586. description: 包含的装置类型,关联代码:ied_type。多个类型之间使用逗号分隔。
  587. type: string
  588. - in: formData
  589. name: relation_json
  590. description: 模型定义内容。svg源代码(xml格式)。
  591. type: string
  592. - in: formData
  593. name: area_type
  594. description: 间隔类型。关联代码:area_type
  595. type: string
  596. responses:
  597. "200":
  598. description: 成功
  599. schema:
  600. $ref: '#/definitions/ResultOK'
  601. "500":
  602. description: '{object} ResultError 失败'
  603. /admin/sysmodel/saveas:
  604. post:
  605. tags:
  606. - scd_check_tools/controllersBusAdminController
  607. summary: 复制并保存指定的内置检测模型为自定义模型
  608. description: 复制并保存指定的内置检测模型为自定义模型
  609. parameters:
  610. - in: formData
  611. name: id
  612. description: 模型ID
  613. required: true
  614. type: integer
  615. format: int64
  616. - in: formData
  617. name: newname
  618. description: 新模型名称
  619. required: true
  620. type: string
  621. responses:
  622. "200":
  623. description: 成功
  624. schema:
  625. $ref: '#/definitions/ResultOK'
  626. "500":
  627. description: '{object} ResultError 失败'
  628. /admin/update/check_area/ied:
  629. post:
  630. tags:
  631. - scd_check_tools/controllersBusAdminController
  632. summary: 修改并保存指定检测间隔下的IED装置列表
  633. description: 修改并保存指定检测间隔下的IED装置列表
  634. parameters:
  635. - in: formData
  636. name: scd_id
  637. description: SCD文件ID
  638. required: true
  639. type: integer
  640. format: int64
  641. - in: formData
  642. name: area_id
  643. description: 检测间隔ID
  644. required: true
  645. type: integer
  646. format: int64
  647. - in: formData
  648. name: ied_ids
  649. description: IED装置name列表,多个ied采用逗号分隔。如:PT1001,PL1001,...
  650. required: true
  651. type: string
  652. responses:
  653. "200":
  654. description: 成功
  655. schema:
  656. $ref: '#/definitions/ResultOK'
  657. "500":
  658. description: '{object} ResultError 失败'
  659. /area/children/list:
  660. get:
  661. tags:
  662. - scd_check_tools/controllersApiController
  663. summary: 获取指定获取的下级区域列表
  664. description: 获取指定获取的下级区域列表
  665. parameters:
  666. - in: query
  667. name: id
  668. description: 查询条件:区域ID
  669. required: true
  670. type: string
  671. - in: query
  672. name: all
  673. description: 查询条件:是否获取全部子区域。1表示是,反之表示否。默认为0
  674. type: integer
  675. format: int64
  676. responses:
  677. "200":
  678. description: 成功
  679. schema:
  680. $ref: '#/definitions/ResultOK'
  681. "500":
  682. description: '{object} ResultError 失败'
  683. /area/tree:
  684. get:
  685. tags:
  686. - scd_check_tools/controllersApiController
  687. summary: 获取区域列表
  688. description: 获取区域列表。以tree结构形式返回。
  689. responses:
  690. "200":
  691. description: 成功
  692. schema:
  693. $ref: '#/definitions/ResultOK'
  694. "500":
  695. description: '{object} ResultError 失败'
  696. /attachment/cfg/delete:
  697. post:
  698. tags:
  699. - scd_check_tools/controllersAttachmentController
  700. summary: 删除指定的数据及附件自动清理配置
  701. description: 删除指定的数据及附件自动清理配置
  702. parameters:
  703. - in: formData
  704. name: id
  705. description: 配置记录id
  706. required: true
  707. type: integer
  708. format: int64
  709. responses:
  710. "200":
  711. description: 成功
  712. schema:
  713. $ref: '#/definitions/ResultOK'
  714. "500":
  715. description: '{object} ResultError 失败'
  716. /attachment/cfg/list:
  717. get:
  718. tags:
  719. - scd_check_tools/controllersAttachmentController
  720. summary: 获取数据及附件自动清理配置列表
  721. description: 获取数据及附件自动清理配置列表
  722. responses:
  723. "200":
  724. description: 成功
  725. schema:
  726. $ref: '#/definitions/ResultOK'
  727. "500":
  728. description: '{object} ResultError 失败'
  729. /attachment/cfg/one:
  730. get:
  731. tags:
  732. - scd_check_tools/controllersAttachmentController
  733. summary: 获取指定的数据及附件自动清理配置
  734. description: 获取指定的数据及附件自动清理配置
  735. parameters:
  736. - in: query
  737. name: id
  738. description: 配置记录id。
  739. required: true
  740. type: integer
  741. format: int64
  742. responses:
  743. "200":
  744. description: 成功
  745. schema:
  746. $ref: '#/definitions/ResultOK'
  747. "500":
  748. description: '{object} ResultError 失败'
  749. /attachment/cfg/save:
  750. post:
  751. tags:
  752. - scd_check_tools/controllersAttachmentController
  753. summary: 保存数据及附件自动清理配置
  754. description: 保存数据及附件自动清理配置
  755. parameters:
  756. - in: formData
  757. name: id
  758. description: 配置记录id。不为0时表示编辑保存
  759. required: true
  760. type: integer
  761. format: int64
  762. - in: formData
  763. name: name
  764. description: 配置名称
  765. required: true
  766. type: string
  767. - in: formData
  768. name: skeepday
  769. description: 数据及附件保留的天数
  770. required: true
  771. type: integer
  772. format: int64
  773. - in: formData
  774. name: tablename
  775. description: 数据模型名称
  776. required: true
  777. type: string
  778. - in: formData
  779. name: colname
  780. description: 数据模型中的记录创建日期列名
  781. required: true
  782. type: string
  783. - in: formData
  784. name: filterwhere
  785. description: 数据过滤条件。支持SQL语法
  786. type: string
  787. - in: formData
  788. name: memo
  789. description: 配置说明
  790. type: string
  791. responses:
  792. "200":
  793. description: 成功
  794. schema:
  795. $ref: '#/definitions/ResultOK'
  796. "500":
  797. description: '{object} ResultError 失败'
  798. /attachment/delete:
  799. post:
  800. tags:
  801. - scd_check_tools/controllersAttachmentController
  802. summary: 删除附件
  803. description: 删除指定的附件
  804. parameters:
  805. - in: formData
  806. name: id
  807. description: 需要删除的附件id。
  808. required: true
  809. type: integer
  810. format: int64
  811. - in: formData
  812. name: ids
  813. description: 需要删除的附件id。多个附件id使用逗号分隔。
  814. required: true
  815. type: string
  816. - in: formData
  817. name: scd_id
  818. description: SCD文件ID。不为空时表示删除该SCD关联的文件
  819. type: integer
  820. format: int64
  821. - in: formData
  822. name: check_flag
  823. description: 是否是管控文件。1表示是,否则表示为否
  824. type: integer
  825. format: int64
  826. responses:
  827. "200":
  828. description: 成功
  829. schema:
  830. $ref: '#/definitions/ResultOK'
  831. "500":
  832. description: '{object} ResultError 失败'
  833. /attachment/download:
  834. post:
  835. tags:
  836. - scd_check_tools/controllersAttachmentController
  837. summary: 下载附件
  838. description: 查询附件列表
  839. parameters:
  840. - in: formData
  841. name: ids
  842. description: 需要下载的附件id。多个附件id使用逗号分隔。
  843. required: true
  844. type: string
  845. responses:
  846. "200":
  847. description: 成功
  848. schema:
  849. $ref: '#/definitions/ResultOK'
  850. "500":
  851. description: '{object} ResultError 失败'
  852. /attachment/download/rec:
  853. post:
  854. tags:
  855. - scd_check_tools/controllersAttachmentController
  856. summary: 查询指定附件下载历史记录
  857. description: 查询指定附件下载历史记录。(预留)
  858. parameters:
  859. - in: query
  860. name: id
  861. description: 附件id。
  862. required: true
  863. type: integer
  864. format: int64
  865. responses:
  866. "200":
  867. description: 成功
  868. schema:
  869. $ref: '#/definitions/ResultOK'
  870. "500":
  871. description: '{object} ResultError 失败'
  872. /attachment/list:
  873. get:
  874. tags:
  875. - scd_check_tools/controllersAttachmentController
  876. summary: 查询附件列表
  877. description: 查询附件列表
  878. parameters:
  879. - in: query
  880. name: pageindex
  881. description: 当前查询的分页页码,默认为1
  882. required: true
  883. type: integer
  884. format: int64
  885. - in: query
  886. name: pagesize
  887. description: 每页显示的数据条数,默认为20
  888. required: true
  889. type: integer
  890. format: int64
  891. - in: query
  892. name: station_id
  893. description: 变电站ID
  894. required: true
  895. type: integer
  896. format: int64
  897. - in: query
  898. name: scd_id
  899. description: SCD文件ID
  900. type: integer
  901. format: int64
  902. - in: query
  903. name: is_checkin
  904. description: 是否管控文档。0 其他文件 1 管控文件 2 裁剪文件
  905. type: integer
  906. format: int64
  907. - in: query
  908. name: name
  909. description: 附件名称
  910. type: string
  911. - in: query
  912. name: ied_name
  913. description: 装置名称
  914. type: string
  915. - in: query
  916. name: type
  917. description: 文件类别ID
  918. type: integer
  919. format: int64
  920. responses:
  921. "200":
  922. description: 成功
  923. schema:
  924. $ref: '#/definitions/ResultOK'
  925. "500":
  926. description: '{object} ResultError 失败'
  927. /attachment/one:
  928. get:
  929. tags:
  930. - scd_check_tools/controllersAttachmentController
  931. summary: 根据id获取附件信息
  932. description: 根据id获取附件信息
  933. parameters:
  934. - in: query
  935. name: id
  936. description: 附件ID
  937. required: true
  938. type: integer
  939. format: int64
  940. responses:
  941. "200":
  942. description: 成功
  943. schema:
  944. $ref: '#/definitions/ResultOK'
  945. "500":
  946. description: '{object} ResultError 失败'
  947. /attachment/scdparse/start:
  948. post:
  949. tags:
  950. - scd_check_tools/controllersAttachmentController
  951. summary: 重新解析指定的SCD文件
  952. description: 重新解析指定的SCD文件
  953. parameters:
  954. - in: formData
  955. name: station_id
  956. description: 变电站ID
  957. required: true
  958. type: integer
  959. format: int64
  960. - in: formData
  961. name: scd_name
  962. description: SCD文件名称
  963. required: true
  964. type: string
  965. - in: formData
  966. name: scd_path
  967. description: SCD附件路径
  968. required: true
  969. type: string
  970. responses:
  971. "200":
  972. description: 成功
  973. schema:
  974. $ref: '#/definitions/ResultOK'
  975. "500":
  976. description: '{object} ResultError 失败'
  977. /attachment/stat:
  978. get:
  979. tags:
  980. - scd_check_tools/controllersStatController
  981. summary: SCD文档分类统计
  982. description: SCD文档分类统计
  983. parameters:
  984. - in: query
  985. name: station_id
  986. description: 变电站ID
  987. type: integer
  988. format: int64
  989. responses:
  990. "200":
  991. description: 错误
  992. schema:
  993. $ref: '#/definitions/ResultError'
  994. "500":
  995. description: status 失败
  996. /basic_area/del:
  997. post:
  998. tags:
  999. - scd_check_tools/controllersApiController
  1000. summary: 删除指定区域信息
  1001. description: 删除指定区域信息
  1002. parameters:
  1003. - in: query
  1004. name: id
  1005. description: 区域ID。
  1006. required: true
  1007. type: integer
  1008. format: int64
  1009. - in: query
  1010. name: isall
  1011. description: 是否同时删除所有下级区域。1为是,反之为否。默认为否
  1012. type: integer
  1013. format: int64
  1014. responses:
  1015. "200":
  1016. description: 成功
  1017. schema:
  1018. $ref: '#/definitions/ResultOK'
  1019. "500":
  1020. description: '{object} ResultError 失败'
  1021. /basic_area/getchildrencount:
  1022. get:
  1023. tags:
  1024. - scd_check_tools/controllersApiController
  1025. summary: 查询指定区域的下级区域数量
  1026. description: 查询指定区域的下级区域数量
  1027. parameters:
  1028. - in: query
  1029. name: pid
  1030. description: 查询条件:父级区域ID
  1031. required: true
  1032. type: integer
  1033. format: int64
  1034. responses:
  1035. "200":
  1036. description: 成功
  1037. schema:
  1038. $ref: '#/definitions/ResultOK'
  1039. "500":
  1040. description: '{object} ResultError 失败'
  1041. /basic_area/list:
  1042. get:
  1043. tags:
  1044. - scd_check_tools/controllersApiController
  1045. summary: 根据查询条件搜索区域(变电站)列表
  1046. description: 根据查询条件搜索区域(变电站)列表
  1047. parameters:
  1048. - in: query
  1049. name: pageindex
  1050. description: 当前查询的分页页码,默认为1
  1051. type: integer
  1052. format: int64
  1053. - in: query
  1054. name: pagesize
  1055. description: 每页显示的数据条数,默认为20
  1056. type: integer
  1057. format: int64
  1058. - in: query
  1059. name: name
  1060. description: 查询条件:区域名称。模糊匹配
  1061. type: string
  1062. - in: query
  1063. name: id
  1064. description: 查询条件:区域ID
  1065. type: integer
  1066. format: int64
  1067. - in: query
  1068. name: pid
  1069. description: 查询条件:父级区域ID
  1070. type: integer
  1071. format: int64
  1072. responses:
  1073. "200":
  1074. description: 成功
  1075. schema:
  1076. $ref: '#/definitions/ResultOK'
  1077. "500":
  1078. description: '{object} ResultError 失败'
  1079. /basic_area/save:
  1080. post:
  1081. tags:
  1082. - scd_check_tools/controllersApiController
  1083. summary: 保存区域信息
  1084. description: 保存区域信息
  1085. parameters:
  1086. - in: query
  1087. name: id
  1088. description: 区域ID。编辑时必填。
  1089. required: true
  1090. type: integer
  1091. format: int64
  1092. - in: query
  1093. name: pid
  1094. description: 父级区域ID
  1095. required: true
  1096. type: integer
  1097. format: int64
  1098. - in: query
  1099. name: area_type
  1100. description: 区域类型
  1101. required: true
  1102. type: integer
  1103. format: int64
  1104. - in: query
  1105. name: area_name
  1106. description: 区域名称
  1107. required: true
  1108. type: string
  1109. - in: query
  1110. name: area_addr
  1111. description: 区域地址
  1112. type: string
  1113. responses:
  1114. "200":
  1115. description: 成功
  1116. schema:
  1117. $ref: '#/definitions/ResultOK'
  1118. "500":
  1119. description: '{object} ResultError 失败'
  1120. /code/tree:
  1121. get:
  1122. tags:
  1123. - scd_check_tools/controllersApiController
  1124. /createuser:
  1125. post:
  1126. tags:
  1127. - scd_check_tools/controllersApiController
  1128. summary: 创建用户
  1129. description: 查询用户信息
  1130. parameters:
  1131. - in: query
  1132. name: userid
  1133. description: 用户ID
  1134. required: true
  1135. type: integer
  1136. format: int64
  1137. - in: query
  1138. name: role
  1139. description: 角色ID
  1140. required: true
  1141. type: integer
  1142. format: int64
  1143. - in: query
  1144. name: username
  1145. description: 姓名
  1146. required: true
  1147. type: string
  1148. - in: query
  1149. name: account
  1150. description: 登录帐号
  1151. required: true
  1152. type: string
  1153. - in: query
  1154. name: password
  1155. description: 登录密码
  1156. required: true
  1157. type: string
  1158. - in: query
  1159. name: mobilephone
  1160. description: 手机号
  1161. type: string
  1162. - in: query
  1163. name: pwd_expire
  1164. description: 密码过期日期
  1165. type: string
  1166. - in: query
  1167. name: bind_ips
  1168. description: 允许登录的IP
  1169. type: string
  1170. - in: query
  1171. name: datelimit_start
  1172. description: 帐号有效期开始日期
  1173. type: string
  1174. - in: query
  1175. name: datelimit_end
  1176. description: 帐号有效期结束日期
  1177. type: string
  1178. - in: query
  1179. name: memo
  1180. description: 其他说明
  1181. type: string
  1182. responses:
  1183. "200":
  1184. description: 成功
  1185. schema:
  1186. $ref: '#/definitions/WarpOK'
  1187. "500":
  1188. description: '{object} WarpError 失败'
  1189. /db/backup/del:
  1190. post:
  1191. tags:
  1192. - scd_check_tools/controllersApiController
  1193. summary: 删除指定的数据备份
  1194. description: 删除指定的数据备份
  1195. parameters:
  1196. - in: query
  1197. name: id
  1198. description: 备份记录ID
  1199. type: integer
  1200. format: int64
  1201. responses:
  1202. "200":
  1203. description: 成功
  1204. schema:
  1205. $ref: '#/definitions/ResultOK'
  1206. "500":
  1207. description: '{object} ResultError 失败'
  1208. /db/backup/list:
  1209. get:
  1210. tags:
  1211. - scd_check_tools/controllersApiController
  1212. summary: 获取数据备份列表
  1213. description: 获取数据备份列表
  1214. parameters:
  1215. - in: query
  1216. name: pageindex
  1217. description: 当前查询的分页页码,默认为1
  1218. type: integer
  1219. format: int64
  1220. - in: query
  1221. name: pagesize
  1222. description: 每页显示的数据条数,默认为20
  1223. type: integer
  1224. format: int64
  1225. - in: query
  1226. name: enddate
  1227. description: 备份结束日期
  1228. type: string
  1229. - in: query
  1230. name: startdate
  1231. description: 备份开始日期
  1232. type: string
  1233. responses:
  1234. "200":
  1235. description: 成功
  1236. schema:
  1237. $ref: '#/definitions/ResultOK'
  1238. "500":
  1239. description: '{object} ResultError 失败'
  1240. /db/backup/new:
  1241. post:
  1242. tags:
  1243. - scd_check_tools/controllersApiController
  1244. summary: 创建新数据备份
  1245. description: 创建新数据备份
  1246. responses:
  1247. "200":
  1248. description: 成功
  1249. schema:
  1250. $ref: '#/definitions/ResultOK'
  1251. "500":
  1252. description: '{object} ResultError 失败'
  1253. /db/backup/recover:
  1254. post:
  1255. tags:
  1256. - scd_check_tools/controllersApiController
  1257. summary: 数据还原
  1258. description: 还原指定的数据备份
  1259. parameters:
  1260. - in: query
  1261. name: id
  1262. description: 备份记录ID
  1263. required: true
  1264. type: integer
  1265. format: int64
  1266. responses:
  1267. "200":
  1268. description: 成功
  1269. schema:
  1270. $ref: '#/definitions/ResultOK'
  1271. "500":
  1272. description: '{object} ResultError 失败'
  1273. /deleteGlobalcode:
  1274. post:
  1275. tags:
  1276. - scd_check_tools/controllersApiController
  1277. summary: 删除指定系统字典定义
  1278. description: 根据字典编码或ID删除指定系统字典定义
  1279. parameters:
  1280. - in: query
  1281. name: code
  1282. description: 系统字典编码
  1283. type: string
  1284. - in: query
  1285. name: id
  1286. description: 系统字典ID
  1287. type: string
  1288. responses:
  1289. "200":
  1290. description: 成功
  1291. schema:
  1292. $ref: '#/definitions/WarpOK'
  1293. "500":
  1294. description: '{object} WarpError 失败'
  1295. /doc/stat/1:
  1296. get:
  1297. tags:
  1298. - scd_check_tools/controllersStatController
  1299. summary: 资料完整度统计
  1300. description: 资料完整度统计
  1301. parameters:
  1302. - in: query
  1303. name: id
  1304. description: 区域ID
  1305. type: integer
  1306. format: int64
  1307. responses:
  1308. "200":
  1309. description: 错误
  1310. schema:
  1311. $ref: '#/definitions/ResultError'
  1312. "500":
  1313. description: status 失败
  1314. /flow/cnf/deleteuser:
  1315. post:
  1316. tags:
  1317. - scd_check_tools/controllersFlowController
  1318. summary: 删除指定流程的节点人员配置信息
  1319. description: 删除指定流程的节点人员配置信息
  1320. parameters:
  1321. - in: formData
  1322. name: user_id
  1323. description: 节点已分配的人员ID
  1324. required: true
  1325. type: string
  1326. - in: formData
  1327. name: node_inst_id
  1328. description: 节点与人员的分配记录ID
  1329. required: true
  1330. type: string
  1331. responses:
  1332. "200":
  1333. description: 成功
  1334. schema:
  1335. $ref: '#/definitions/ResultOK'
  1336. "500":
  1337. description: '{object} ResultError 失败'
  1338. /flow/cnf/getinfo:
  1339. get:
  1340. tags:
  1341. - scd_check_tools/controllersFlowController
  1342. summary: 获取流程配置信息
  1343. description: 获取流程配置信息
  1344. parameters:
  1345. - in: query
  1346. name: station_id
  1347. description: 变电站ID
  1348. required: true
  1349. type: string
  1350. - in: query
  1351. name: flow_type
  1352. description: 流程类型。值为:3(SCD签入)、4(SCD签出)之一
  1353. type: string
  1354. - in: query
  1355. name: userfilter
  1356. description: 是否需要根据当前登录人员进行节点过滤,为1表示需要,主要用于流转时获取节点列表;否则为获取全节点,主要用于后台配置
  1357. type: string
  1358. responses:
  1359. "200":
  1360. description: 成功
  1361. schema:
  1362. $ref: '#/definitions/ResultOK'
  1363. "500":
  1364. description: '{object} ResultError 失败'
  1365. /flow/getlastoutworkbook:
  1366. get:
  1367. tags:
  1368. - scd_check_tools/controllersFlowController
  1369. summary: 获取指定站最新签出流程详细信息
  1370. description: 获取指定站最新签出流程详细信息
  1371. parameters:
  1372. - in: query
  1373. name: station_id
  1374. description: 变电站ID
  1375. required: true
  1376. type: string
  1377. responses:
  1378. "200":
  1379. description: 成功
  1380. schema:
  1381. $ref: '#/definitions/ResultOK'
  1382. "500":
  1383. description: '{object} ResultError 失败'
  1384. /flow/lock/list:
  1385. get:
  1386. tags:
  1387. - scd_check_tools/controllersFlowController
  1388. summary: 获取指定站的锁定流程记录列表
  1389. description: 获取指定站的锁定流程记录列表
  1390. parameters:
  1391. - in: query
  1392. name: station_id
  1393. description: 变电站ID
  1394. required: true
  1395. type: string
  1396. responses:
  1397. "200":
  1398. description: 成功
  1399. schema:
  1400. $ref: '#/definitions/ResultOK'
  1401. "500":
  1402. description: '{object} ResultError 失败'
  1403. /flow/node/getdata:
  1404. get:
  1405. tags:
  1406. - scd_check_tools/controllersFlowController
  1407. summary: 获取指节点的详细数据
  1408. description: 获取指节点的详细数据
  1409. parameters:
  1410. - in: query
  1411. name: station_id
  1412. description: 变电站ID
  1413. required: true
  1414. type: string
  1415. - in: query
  1416. name: node_code
  1417. description: 节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend
  1418. 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一
  1419. required: true
  1420. type: string
  1421. - in: query
  1422. name: flow_run_id
  1423. description: 流程ID
  1424. required: true
  1425. type: integer
  1426. format: int64
  1427. - in: query
  1428. name: flow_type
  1429. description: 流程类型,值为:3(SCD签入)、4(SCD签出)之一
  1430. type: string
  1431. responses:
  1432. "200":
  1433. description: 成功
  1434. schema:
  1435. $ref: '#/definitions/ResultOK'
  1436. "500":
  1437. description: '{object} ResultError 失败'
  1438. /flow/node/refuser:
  1439. post:
  1440. tags:
  1441. - scd_check_tools/controllersFlowController
  1442. summary: 保存流程配置信息
  1443. description: 保存流程配置信息
  1444. parameters:
  1445. - in: formData
  1446. name: station_id
  1447. description: 变电站ID
  1448. required: true
  1449. type: string
  1450. - in: formData
  1451. name: node_id
  1452. description: 节点编号ID
  1453. required: true
  1454. type: string
  1455. - in: formData
  1456. name: user_ids
  1457. description: 有该节点权限的人员ID列表,多个ID之间用逗号分隔
  1458. required: true
  1459. type: string
  1460. - in: formData
  1461. name: node_inst_id
  1462. description: 节点与人员的分配记录ID
  1463. type: string
  1464. responses:
  1465. "200":
  1466. description: 成功
  1467. schema:
  1468. $ref: '#/definitions/ResultOK'
  1469. "500":
  1470. description: '{object} ResultError 失败'
  1471. /flow/run/list:
  1472. get:
  1473. tags:
  1474. - scd_check_tools/controllersFlowController
  1475. summary: 获取指定站的签入签出流程记录列表
  1476. description: 获取指定站的签入签出流程记录列表
  1477. parameters:
  1478. - in: query
  1479. name: station_id
  1480. description: 变电站ID
  1481. required: true
  1482. type: string
  1483. - in: query
  1484. name: pageno
  1485. description: 当前页码,默认为1
  1486. required: true
  1487. type: integer
  1488. format: int64
  1489. - in: query
  1490. name: pagesize
  1491. description: 每页记录条数,默认为20
  1492. required: true
  1493. type: integer
  1494. format: int64
  1495. - in: query
  1496. name: dt1
  1497. description: 查询条件:开始日期
  1498. type: string
  1499. - in: query
  1500. name: dt2
  1501. description: 查询条件:结束日期
  1502. type: string
  1503. - in: query
  1504. name: name
  1505. description: 查询条件:SCD名称。模糊匹配
  1506. type: string
  1507. - in: query
  1508. name: flowtype
  1509. description: 查询条件:流程类型,值为:3(SCD签入)、4(SCD签出)之一
  1510. type: string
  1511. - in: query
  1512. name: flowstate
  1513. description: 查询条件:流程状态,值为:0 处理中 1 结束 2 驳回之一
  1514. type: string
  1515. responses:
  1516. "200":
  1517. description: 成功
  1518. schema:
  1519. $ref: '#/definitions/ResultOK'
  1520. "500":
  1521. description: '{object} ResultError 失败'
  1522. /flow/run/nodedeal/save:
  1523. post:
  1524. tags:
  1525. - scd_check_tools/controllersFlowController
  1526. summary: 保存指定站的签入签出节点信息
  1527. description: 保存指定站的签入签出节点信息
  1528. parameters:
  1529. - in: formData
  1530. name: station_id
  1531. description: 变电站ID
  1532. required: true
  1533. type: string
  1534. - in: formData
  1535. name: node_code
  1536. description: 节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend
  1537. 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一
  1538. required: true
  1539. type: string
  1540. - in: formData
  1541. name: content
  1542. description: 节点填录的所有信息,为JSON对象序列化后的字符串。
  1543. required: true
  1544. type: string
  1545. - in: formData
  1546. name: flow_run_id
  1547. description: 流程ID
  1548. required: true
  1549. type: integer
  1550. format: int64
  1551. - in: formData
  1552. name: opt
  1553. description: 操作类型。1 通过 0 驳回
  1554. type: string
  1555. - in: formData
  1556. name: flow_type
  1557. description: 流程类型,值为:3(SCD签入)、4(SCD签出)之一
  1558. type: string
  1559. responses:
  1560. "200":
  1561. description: 成功
  1562. schema:
  1563. $ref: '#/definitions/ResultOK'
  1564. "500":
  1565. description: '{object} ResultError 失败'
  1566. /flow/stat/list:
  1567. get:
  1568. tags:
  1569. - scd_check_tools/controllersStatController
  1570. summary: SCD签入签出统计
  1571. description: SCD签入签出统计
  1572. parameters:
  1573. - in: query
  1574. name: station_id
  1575. description: 变电站ID
  1576. type: integer
  1577. format: int64
  1578. responses:
  1579. "200":
  1580. description: 错误
  1581. schema:
  1582. $ref: '#/definitions/ResultError'
  1583. "500":
  1584. description: status 失败
  1585. /get_menu_tree:
  1586. get:
  1587. tags:
  1588. - scd_check_tools/controllersApiController
  1589. summary: 获取角色的已分配资源ID列表
  1590. description: 获取角色的已分配资源ID列表
  1591. parameters:
  1592. - in: query
  1593. name: roleid
  1594. description: 角色ID
  1595. required: true
  1596. type: string
  1597. responses:
  1598. "200":
  1599. description: 成功
  1600. schema:
  1601. $ref: '#/definitions/ResultOK'
  1602. "500":
  1603. description: '{object} ResultError 失败'
  1604. /getGlobalChildrenCode:
  1605. get:
  1606. tags:
  1607. - scd_check_tools/controllersApiController
  1608. summary: 获取指定系统字典的下级字典码定义
  1609. description: 获取指定系统字典的下级字典码定义
  1610. parameters:
  1611. - in: query
  1612. name: code
  1613. description: 未指定code时,将返回根字典下的子字典定义列表。
  1614. type: string
  1615. responses:
  1616. "200":
  1617. description: 成功
  1618. schema:
  1619. $ref: '#/definitions/ResultOK'
  1620. "500":
  1621. description: '{object} ResultError 失败'
  1622. /getGlobalCode:
  1623. get:
  1624. tags:
  1625. - scd_check_tools/controllersApiController
  1626. summary: 查询系统字典列表
  1627. description: 查询系统字典列表
  1628. parameters:
  1629. - in: query
  1630. name: pageindex
  1631. description: 当前查询的页码。默认为1
  1632. type: integer
  1633. format: int64
  1634. - in: query
  1635. name: pagesize
  1636. description: 每页显示的数据记录数,默认为20
  1637. type: integer
  1638. format: int64
  1639. - in: query
  1640. name: pcode
  1641. description: 查询条件:指定的父级字典码
  1642. type: string
  1643. - in: query
  1644. name: code
  1645. description: 查询条件:指定的字典码
  1646. type: string
  1647. responses:
  1648. "200":
  1649. description: 成功
  1650. schema:
  1651. $ref: '#/definitions/ResultOK'
  1652. "500":
  1653. description: '{object} ResultError 失败'
  1654. /getGlobalCode/byid:
  1655. get:
  1656. tags:
  1657. - scd_check_tools/controllersApiController
  1658. summary: 根据id获取字典定义
  1659. description: 根据id获取字典定义
  1660. parameters:
  1661. - in: query
  1662. name: id
  1663. description: 系统字典码ID
  1664. type: string
  1665. responses:
  1666. "200":
  1667. description: 成功
  1668. schema:
  1669. $ref: '#/definitions/ResultOK'
  1670. "500":
  1671. description: '{object} ResultError 失败'
  1672. /getRoleFuncList:
  1673. get:
  1674. tags:
  1675. - scd_check_tools/controllersApiController
  1676. summary: 获取指定角色的功能点列表
  1677. description: 获取指定角色的功能点列表
  1678. parameters:
  1679. - in: query
  1680. name: roleid
  1681. description: 角色ID
  1682. required: true
  1683. type: integer
  1684. format: int64
  1685. responses:
  1686. "200":
  1687. description: 成功
  1688. schema:
  1689. $ref: '#/definitions/WarpOK'
  1690. "500":
  1691. description: '{object} WarpError 失败'
  1692. /getSysParamList:
  1693. get:
  1694. tags:
  1695. - scd_check_tools/controllersApiController
  1696. summary: 获取全部或者指定的系统参数列表
  1697. description: 获取全部或者指定的系统参数列表
  1698. parameters:
  1699. - in: query
  1700. name: param_name
  1701. description: 参数名
  1702. type: string
  1703. responses:
  1704. "200":
  1705. description: 成功
  1706. schema:
  1707. $ref: '#/definitions/ResultOK'
  1708. "500":
  1709. description: '{object} ResultError 失败'
  1710. /getSyslogList:
  1711. get:
  1712. tags:
  1713. - scd_check_tools/controllersApiController
  1714. summary: 查询操作日志列表
  1715. description: 查询操作日志列表
  1716. parameters:
  1717. - in: query
  1718. name: pageindex
  1719. description: 当前查询页码。默认为1
  1720. required: true
  1721. type: integer
  1722. format: int64
  1723. - in: query
  1724. name: pagesize
  1725. description: 每页显示数据条数。默认20
  1726. required: true
  1727. type: integer
  1728. format: int64
  1729. - in: query
  1730. name: enddate
  1731. description: 查询条件:结束日期
  1732. type: string
  1733. - in: query
  1734. name: startdate
  1735. description: 查询条件:开始日期
  1736. type: string
  1737. - in: query
  1738. name: description
  1739. description: 查询条件:日志内容。模糊匹配
  1740. type: string
  1741. - in: query
  1742. name: staff
  1743. description: 查询条件:操作人姓名。模糊匹配
  1744. type: string
  1745. - in: query
  1746. name: ip
  1747. description: 查询条件:操作IP地址。模糊匹配
  1748. type: string
  1749. - in: query
  1750. name: success
  1751. description: '查询条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功'
  1752. type: integer
  1753. format: int64
  1754. - in: query
  1755. name: opttype
  1756. description: 查询条件:操作类型。关联系统字典log_opttype。
  1757. type: integer
  1758. format: int64
  1759. - in: query
  1760. name: audittype
  1761. description: 查询条件:审计类型。关联系统字典log_audittype。
  1762. type: integer
  1763. format: int64
  1764. - in: query
  1765. name: eventtype
  1766. description: 查询条件:事件类型。关联系统字典log_eventtype。
  1767. type: integer
  1768. format: int64
  1769. - in: query
  1770. name: eventlevel
  1771. description: 查询条件:事件等级。关联系统字典log_eventlevel。
  1772. type: integer
  1773. format: int64
  1774. responses:
  1775. "200":
  1776. description: 成功
  1777. schema:
  1778. $ref: '#/definitions/ResultOK'
  1779. "500":
  1780. description: '{object} ResultError 失败'
  1781. /getUser:
  1782. get:
  1783. tags:
  1784. - scd_check_tools/controllersApiController
  1785. summary: 查询指定用户的详细信息
  1786. description: 查询用户信息
  1787. parameters:
  1788. - in: query
  1789. name: id
  1790. description: 用户ID
  1791. required: true
  1792. type: integer
  1793. format: int64
  1794. responses:
  1795. "200":
  1796. description: 成功
  1797. schema:
  1798. $ref: '#/definitions/WarpOK'
  1799. "500":
  1800. description: '{object} WarpError 失败'
  1801. /getUserAreaList:
  1802. get:
  1803. tags:
  1804. - scd_check_tools/controllersApiController
  1805. summary: 获取指定用户所管理的区域列表
  1806. description: 获取指定用户所管理的区域列表
  1807. parameters:
  1808. - in: query
  1809. name: userid
  1810. description: 用户ID
  1811. required: true
  1812. type: integer
  1813. format: int64
  1814. responses:
  1815. "200":
  1816. description: 成功
  1817. schema:
  1818. $ref: '#/definitions/ResultOK'
  1819. "500":
  1820. description: '{object} ResultError 失败'
  1821. /getUserPrivList:
  1822. get:
  1823. tags:
  1824. - scd_check_tools/controllersApiController
  1825. summary: 指定用户的功能列表
  1826. description: 指定用户的功能列表。非RBAC模式下有效
  1827. parameters:
  1828. - in: query
  1829. name: id
  1830. description: 用户ID
  1831. required: true
  1832. type: integer
  1833. format: int64
  1834. responses:
  1835. "200":
  1836. description: 成功
  1837. schema:
  1838. $ref: '#/definitions/WarpOK'
  1839. "500":
  1840. description: '{object} WarpError 失败'
  1841. /getVersion:
  1842. get:
  1843. tags:
  1844. - scd_check_tools/controllersApiController
  1845. summary: 获取当前程序版本
  1846. description: 获取当前程序版本
  1847. responses:
  1848. "200":
  1849. description: 成功
  1850. schema:
  1851. $ref: '#/definitions/WarpOK'
  1852. "500":
  1853. description: '{object} WarpError 失败'
  1854. /ied/stat:
  1855. get:
  1856. tags:
  1857. - scd_check_tools/controllersStatController
  1858. summary: SCD装置分类统计
  1859. description: SCD装置分类统计
  1860. parameters:
  1861. - in: query
  1862. name: station_id
  1863. description: 变电站ID
  1864. type: integer
  1865. format: int64
  1866. responses:
  1867. "200":
  1868. description: 错误
  1869. schema:
  1870. $ref: '#/definitions/ResultError'
  1871. "500":
  1872. description: status 失败
  1873. /keep-alive:
  1874. get:
  1875. tags:
  1876. - scd_check_tools/controllersApiController
  1877. summary: 客户端心跳
  1878. description: 客户端心跳保持,由浏览器或客户端发起请求,以表示其还处于使用中
  1879. responses:
  1880. "200":
  1881. description: status 成功
  1882. "500":
  1883. description: status 失败
  1884. /log/backup:
  1885. post:
  1886. tags:
  1887. - scd_check_tools/controllersApiController
  1888. summary: 操作日志备份
  1889. description: 操作日志备份
  1890. parameters:
  1891. - in: query
  1892. name: enddate
  1893. description: 备份结束日期
  1894. type: string
  1895. - in: query
  1896. name: startdate
  1897. description: 备份开始日期
  1898. type: string
  1899. responses:
  1900. "200":
  1901. description: 成功
  1902. schema:
  1903. $ref: '#/definitions/ResultOK'
  1904. "500":
  1905. description: '{object} ResultError 失败'
  1906. /log/backup/del:
  1907. post:
  1908. tags:
  1909. - scd_check_tools/controllersApiController
  1910. summary: 操作日志备份删除
  1911. description: 操作日志备份删除
  1912. parameters:
  1913. - in: query
  1914. name: id
  1915. description: 备份记录ID
  1916. required: true
  1917. type: integer
  1918. format: int64
  1919. responses:
  1920. "200":
  1921. description: 成功
  1922. schema:
  1923. $ref: '#/definitions/ResultOK'
  1924. "500":
  1925. description: '{object} ResultError 失败'
  1926. /log/backup/list:
  1927. get:
  1928. tags:
  1929. - scd_check_tools/controllersApiController
  1930. summary: 获取操作日志备份列表
  1931. description: 获取操作日志备份列表
  1932. parameters:
  1933. - in: query
  1934. name: pageindex
  1935. description: 当前查询的分页页码,默认为1
  1936. type: integer
  1937. format: int64
  1938. - in: query
  1939. name: pagesize
  1940. description: 每页显示的数据条数,默认为20
  1941. type: integer
  1942. format: int64
  1943. - in: query
  1944. name: enddate
  1945. description: 备份结束日期
  1946. type: string
  1947. - in: query
  1948. name: startdate
  1949. description: 备份开始日期
  1950. type: string
  1951. responses:
  1952. "200":
  1953. description: 成功
  1954. schema:
  1955. $ref: '#/definitions/ResultOK'
  1956. "500":
  1957. description: '{object} ResultError 失败'
  1958. /log/chartstat:
  1959. get:
  1960. tags:
  1961. - scd_check_tools/controllersApiController
  1962. summary: 操作日志分类(图形)统计
  1963. description: 操作日志分类(图形)统计
  1964. parameters:
  1965. - in: query
  1966. name: enddate
  1967. description: 统计条件:结束日期
  1968. type: string
  1969. - in: query
  1970. name: startdate
  1971. description: 统计条件:开始日期
  1972. type: string
  1973. - in: query
  1974. name: description
  1975. description: 统计条件:日志内容。模糊匹配
  1976. type: string
  1977. - in: query
  1978. name: staff
  1979. description: 统计条件:操作人姓名。模糊匹配
  1980. type: string
  1981. - in: query
  1982. name: ip
  1983. description: 统计条件:操作IP地址。模糊匹配
  1984. type: string
  1985. - in: query
  1986. name: success
  1987. description: '统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功'
  1988. type: integer
  1989. format: int64
  1990. - in: query
  1991. name: opttype
  1992. description: 统计条件:操作类型。关联系统字典log_opttype。
  1993. type: integer
  1994. format: int64
  1995. - in: query
  1996. name: audittype
  1997. description: 统计条件:审计类型。关联系统字典log_audittype。
  1998. type: integer
  1999. format: int64
  2000. - in: query
  2001. name: eventtype
  2002. description: 统计条件:事件类型。关联系统字典log_eventtype。
  2003. type: integer
  2004. format: int64
  2005. - in: query
  2006. name: eventlevel
  2007. description: 统计条件:事件等级。关联系统字典log_eventlevel。
  2008. type: integer
  2009. format: int64
  2010. - in: query
  2011. name: cycletype
  2012. description: 统计周期。值列表为:year,month,day,hour,week,默认为hour。
  2013. type: integer
  2014. format: int64
  2015. responses:
  2016. "200":
  2017. description: 成功
  2018. schema:
  2019. $ref: '#/definitions/ResultOK'
  2020. "500":
  2021. description: '{object} ResultError 失败'
  2022. /log/datastat:
  2023. get:
  2024. tags:
  2025. - scd_check_tools/controllersApiController
  2026. summary: 操作日志分类(数据列表)统计
  2027. description: 操作日志分类(数据列表)统计
  2028. parameters:
  2029. - in: query
  2030. name: enddate
  2031. description: 统计条件:结束日期
  2032. type: integer
  2033. format: int64
  2034. - in: query
  2035. name: startdate
  2036. description: 统计条件:开始日期
  2037. type: integer
  2038. format: int64
  2039. - in: query
  2040. name: description
  2041. description: 统计条件:日志内容。模糊匹配
  2042. type: integer
  2043. format: int64
  2044. - in: query
  2045. name: staff
  2046. description: 统计条件:操作人姓名。模糊匹配
  2047. type: string
  2048. - in: query
  2049. name: ip
  2050. description: 统计条件:操作IP地址。模糊匹配
  2051. type: string
  2052. - in: query
  2053. name: success
  2054. description: '统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功'
  2055. type: integer
  2056. format: int64
  2057. - in: query
  2058. name: opttype
  2059. description: 统计条件:操作类型。关联系统字典log_opttype。
  2060. type: integer
  2061. format: int64
  2062. - in: query
  2063. name: audittype
  2064. description: 统计条件:审计类型。关联系统字典log_audittype。
  2065. type: integer
  2066. format: int64
  2067. - in: query
  2068. name: eventtype
  2069. description: 统计条件:事件类型。关联系统字典log_eventtype。
  2070. type: integer
  2071. format: int64
  2072. - in: query
  2073. name: eventlevel
  2074. description: 统计条件:事件等级。关联系统字典log_eventlevel。
  2075. type: integer
  2076. format: int64
  2077. - in: query
  2078. name: stattype
  2079. description: 统计类型。值为:logtype或者空。
  2080. type: integer
  2081. format: int64
  2082. responses:
  2083. "200":
  2084. description: 成功
  2085. schema:
  2086. $ref: '#/definitions/ResultOK'
  2087. "500":
  2088. description: '{object} ResultError 失败'
  2089. /log/runtime_log:
  2090. get:
  2091. tags:
  2092. - scd_check_tools/controllersApiController
  2093. summary: 获取当前的服务器运行日志
  2094. description: 获取当前的服务器运行日志。每次获取10Kb的日志内容,第一次获取时默认为0,继续获取时需要将上次的最大位置传给offset参数。
  2095. parameters:
  2096. - in: query
  2097. name: offset
  2098. description: 获取的日志起始字节位置。
  2099. required: true
  2100. type: integer
  2101. format: int64
  2102. responses:
  2103. "200":
  2104. description: 成功
  2105. schema:
  2106. $ref: '#/definitions/ResultOK'
  2107. "500":
  2108. description: '{object} ResultError 失败'
  2109. /login:
  2110. post:
  2111. tags:
  2112. - scd_check_tools/controllersApiController
  2113. summary: 登录
  2114. description: 登录系统。系统会返回当前用户的相关信息,如基本信息、token等
  2115. parameters:
  2116. - in: query
  2117. name: login_account
  2118. description: 用户帐号
  2119. required: true
  2120. type: string
  2121. - in: query
  2122. name: pwd
  2123. description: 用户密码
  2124. required: true
  2125. type: string
  2126. responses:
  2127. "200":
  2128. description: 成功
  2129. schema:
  2130. $ref: '#/definitions/WarpOK'
  2131. "500":
  2132. description: '{object} WarpError 失败'
  2133. /logout:
  2134. post:
  2135. tags:
  2136. - scd_check_tools/controllersApiController
  2137. summary: 登出
  2138. description: 登出系统。系统会自动清理当前用户的相关信息,如缓存、token等
  2139. parameters:
  2140. - in: query
  2141. name: sessionid
  2142. description: 用户token码
  2143. required: true
  2144. type: string
  2145. responses:
  2146. "200":
  2147. description: 成功
  2148. schema:
  2149. $ref: '#/definitions/WarpOK'
  2150. "500":
  2151. description: '{object} WarpError 失败'
  2152. /net/video/play:
  2153. post:
  2154. tags:
  2155. - scd_check_tools/controllersApiController
  2156. summary: 视频播放
  2157. /notice/info:
  2158. get:
  2159. tags:
  2160. - scd_check_tools/controllersNoticeController
  2161. summary: 获取指定通知提醒详细信息
  2162. description: 获取指定通知提醒详细信息
  2163. parameters:
  2164. - in: query
  2165. name: id
  2166. description: 通知提醒记录ID
  2167. required: true
  2168. type: integer
  2169. format: int64
  2170. responses:
  2171. "200":
  2172. description: 成功
  2173. schema:
  2174. $ref: '#/definitions/ResultOK'
  2175. "500":
  2176. description: '{object} ResultError 失败'
  2177. /notice/list:
  2178. get:
  2179. tags:
  2180. - scd_check_tools/controllersNoticeController
  2181. summary: 获取指定站的通知提醒列表
  2182. description: 获取指定站的通知提醒列表
  2183. parameters:
  2184. - in: query
  2185. name: station_id
  2186. description: 变电站ID
  2187. required: true
  2188. type: string
  2189. - in: query
  2190. name: pageno
  2191. description: 当前页码。默认为1
  2192. type: integer
  2193. format: int64
  2194. - in: query
  2195. name: pagesize
  2196. description: 每页显示记录数。默认为20
  2197. type: integer
  2198. format: int64
  2199. - in: query
  2200. name: isread
  2201. description: 是否已读。0 未读或1 已读
  2202. type: integer
  2203. format: int64
  2204. responses:
  2205. "200":
  2206. description: 成功
  2207. schema:
  2208. $ref: '#/definitions/ResultOK'
  2209. "500":
  2210. description: '{object} ResultError 失败'
  2211. /notice/read:
  2212. post:
  2213. tags:
  2214. - scd_check_tools/controllersNoticeController
  2215. summary: 设置指定通知提醒为已读
  2216. description: 设置指定通知提醒为已读
  2217. parameters:
  2218. - in: formData
  2219. name: id
  2220. description: 通知提醒记录ID
  2221. required: true
  2222. type: integer
  2223. format: int64
  2224. responses:
  2225. "200":
  2226. description: 成功
  2227. schema:
  2228. $ref: '#/definitions/ResultOK'
  2229. "500":
  2230. description: '{object} ResultError 失败'
  2231. /playWav:
  2232. post:
  2233. tags:
  2234. - scd_check_tools/controllersApiController
  2235. summary: 语音播放
  2236. description: 语音播放
  2237. operationId: ApiController.语音播放
  2238. parameters:
  2239. - in: query
  2240. name: filename
  2241. description: 文件名称
  2242. type: string
  2243. responses:
  2244. "200":
  2245. description: status 成功
  2246. "500":
  2247. description: status 失败
  2248. /record/delete:
  2249. post:
  2250. tags:
  2251. - scd_check_tools/controllersApiController
  2252. summary: 删除指定模型的某条数据记录
  2253. description: 删除指定模型的某条数据记录
  2254. parameters:
  2255. - in: query
  2256. name: tablename
  2257. description: 数据模型名称
  2258. required: true
  2259. type: string
  2260. - in: query
  2261. name: id
  2262. description: 数据记录ID
  2263. required: true
  2264. type: string
  2265. - in: query
  2266. name: primaryfield
  2267. description: 数据记录ID列名。默认为id
  2268. type: string
  2269. responses:
  2270. "200":
  2271. description: 成功
  2272. schema:
  2273. $ref: '#/definitions/WarpOK'
  2274. "500":
  2275. description: '{object} WarpError 失败'
  2276. /record/get:
  2277. get:
  2278. tags:
  2279. - scd_check_tools/controllersApiController
  2280. summary: 获取指定模型的某条数据记录
  2281. description: 获取指定模型的某条数据记录
  2282. parameters:
  2283. - in: query
  2284. name: tablename
  2285. description: 数据模型名称
  2286. required: true
  2287. type: string
  2288. - in: query
  2289. name: id
  2290. description: 数据记录ID
  2291. required: true
  2292. type: string
  2293. - in: query
  2294. name: primaryfield
  2295. description: 数据记录ID列名。默认为id
  2296. type: string
  2297. responses:
  2298. "200":
  2299. description: 成功
  2300. schema:
  2301. $ref: '#/definitions/WarpOK'
  2302. "500":
  2303. description: '{object} WarpError 失败'
  2304. /report/tpl/delete:
  2305. post:
  2306. tags:
  2307. - scd_check_tools/controllersReportController
  2308. summary: 删除指定的检测报告模板
  2309. description: 删除指定的检测报告模板
  2310. parameters:
  2311. - in: formData
  2312. name: id
  2313. description: 检测报告ID
  2314. required: true
  2315. type: integer
  2316. format: int64
  2317. responses:
  2318. "200":
  2319. description: 成功
  2320. schema:
  2321. $ref: '#/definitions/ResultOK'
  2322. "500":
  2323. description: '{object} ResultError 失败'
  2324. /report/tpl/list:
  2325. get:
  2326. tags:
  2327. - scd_check_tools/controllersReportController
  2328. summary: 查询检测报告模板
  2329. description: 查询检测报告模板。支持报告模板名称、状态等过滤条件
  2330. parameters:
  2331. - in: query
  2332. name: pageno
  2333. description: 当前页码。默认为1
  2334. required: true
  2335. type: integer
  2336. format: int64
  2337. - in: query
  2338. name: pagesize
  2339. description: 每页显示数据数。默认为20
  2340. required: true
  2341. type: integer
  2342. format: int64
  2343. - in: query
  2344. name: id
  2345. description: 报告模板ID
  2346. type: integer
  2347. format: int64
  2348. - in: query
  2349. name: name
  2350. description: 名称
  2351. type: string
  2352. - in: query
  2353. name: state
  2354. description: 状态。空:全部 1:启用 2:禁用
  2355. type: integer
  2356. format: int64
  2357. responses:
  2358. "200":
  2359. description: 成功
  2360. schema:
  2361. $ref: '#/definitions/ResultOK'
  2362. "500":
  2363. description: '{object} ResultError 失败'
  2364. /report/tpl/save:
  2365. post:
  2366. tags:
  2367. - scd_check_tools/controllersReportController
  2368. summary: 创建新的检测报告模板
  2369. description: 创建新的检测报告模板
  2370. parameters:
  2371. - in: formData
  2372. name: id
  2373. description: 报告模板ID。指定id值大于0时为编辑操作;否则为新增操作
  2374. type: integer
  2375. format: int64
  2376. - in: formData
  2377. name: name
  2378. description: 报告模板名称
  2379. required: true
  2380. type: string
  2381. - in: formData
  2382. name: doc_id
  2383. description: 报告模板附件ID
  2384. required: true
  2385. type: integer
  2386. format: int64
  2387. - in: formData
  2388. name: memo
  2389. description: 报告模板说明
  2390. type: string
  2391. - in: formData
  2392. name: state
  2393. description: 启用状态。1 启用 2 禁用。默认为1
  2394. required: true
  2395. type: integer
  2396. format: int64
  2397. responses:
  2398. "200":
  2399. description: 成功
  2400. schema:
  2401. $ref: '#/definitions/ResultOK'
  2402. "500":
  2403. description: '{object} ResultError 失败'
  2404. /resetUserPwd:
  2405. post:
  2406. tags:
  2407. - scd_check_tools/controllersApiController
  2408. summary: 修改自己密码
  2409. description: 修改密码。只能修改自己的密码
  2410. parameters:
  2411. - in: query
  2412. name: newpwd
  2413. description: 原密码
  2414. required: true
  2415. type: integer
  2416. format: int64
  2417. - in: query
  2418. name: oldpwd
  2419. description: 新密码
  2420. required: true
  2421. type: integer
  2422. format: int64
  2423. responses:
  2424. "200":
  2425. description: 成功
  2426. schema:
  2427. $ref: '#/definitions/WarpOK'
  2428. "500":
  2429. description: '{object} WarpError 失败'
  2430. /saveGlobalcode:
  2431. post:
  2432. tags:
  2433. - scd_check_tools/controllersApiController
  2434. summary: 保存系统字典
  2435. description: 保存系统字典
  2436. parameters:
  2437. - in: query
  2438. name: name
  2439. description: 系统字典名称
  2440. required: true
  2441. type: string
  2442. - in: query
  2443. name: parentcode
  2444. description: 上级系统字典编码
  2445. required: true
  2446. type: string
  2447. - in: query
  2448. name: code
  2449. description: 系统字典编码
  2450. required: true
  2451. type: string
  2452. - in: query
  2453. name: id
  2454. description: 系统字典ID
  2455. type: string
  2456. responses:
  2457. "200":
  2458. description: 成功
  2459. schema:
  2460. $ref: '#/definitions/WarpOK'
  2461. "500":
  2462. description: '{object} WarpError 失败'
  2463. /saveRoleFunc:
  2464. post:
  2465. tags:
  2466. - scd_check_tools/controllersApiController
  2467. summary: 保存指定角色的功能点列表
  2468. description: 保存指定角色的功能点列表
  2469. parameters:
  2470. - in: query
  2471. name: roleid
  2472. description: 角色ID
  2473. required: true
  2474. type: integer
  2475. format: int64
  2476. - in: query
  2477. name: areaid
  2478. description: 区域列表。JSON串,格式如:[{id:区域ID,allchecked:all|空}]
  2479. required: true
  2480. type: string
  2481. responses:
  2482. "200":
  2483. description: 成功
  2484. schema:
  2485. $ref: '#/definitions/WarpOK'
  2486. "500":
  2487. description: '{object} WarpError 失败'
  2488. /saveSysParam:
  2489. post:
  2490. tags:
  2491. - scd_check_tools/controllersApiController
  2492. summary: 保存系统参数
  2493. description: 保存系统参数
  2494. parameters:
  2495. - in: query
  2496. name: param_name
  2497. description: 参数缟编码
  2498. type: string
  2499. - in: query
  2500. name: param_value
  2501. description: 参数值
  2502. type: string
  2503. - in: query
  2504. name: param_memo
  2505. description: 参数描述
  2506. type: string
  2507. responses:
  2508. "200":
  2509. description: 错误
  2510. schema:
  2511. $ref: '#/definitions/ResultError'
  2512. "500":
  2513. description: status 失败
  2514. /saveUser:
  2515. post:
  2516. tags:
  2517. - scd_check_tools/controllersApiController
  2518. summary: 保存用户信息(已废弃)
  2519. /saveUserAreaList:
  2520. post:
  2521. tags:
  2522. - scd_check_tools/controllersApiController
  2523. summary: 保存指定用户所管理的区域列表
  2524. description: 保存指定用户所管理的区域列表
  2525. parameters:
  2526. - in: query
  2527. name: userid
  2528. description: 用户ID
  2529. required: true
  2530. type: integer
  2531. format: int64
  2532. - in: query
  2533. name: areaid
  2534. description: 区域列表。JSON串,格式如:[{id:区域ID,allchecked:all|空}]
  2535. required: true
  2536. type: string
  2537. responses:
  2538. "200":
  2539. description: 成功
  2540. schema:
  2541. $ref: '#/definitions/ResultOK'
  2542. "500":
  2543. description: '{object} ResultError 失败'
  2544. /saveUserPrivList:
  2545. post:
  2546. tags:
  2547. - scd_check_tools/controllersApiController
  2548. summary: 保存指定用户的功能列表
  2549. description: 保存指定用户的功能列表。非RBAC模式下有效
  2550. parameters:
  2551. - in: query
  2552. name: id
  2553. description: 用户ID
  2554. required: true
  2555. type: integer
  2556. format: int64
  2557. - in: query
  2558. name: privids
  2559. description: 功能ID列表,使用逗号分隔
  2560. required: true
  2561. type: string
  2562. responses:
  2563. "200":
  2564. description: 成功
  2565. schema:
  2566. $ref: '#/definitions/WarpOK'
  2567. "500":
  2568. description: '{object} WarpError 失败'
  2569. /scd/area/edit_voltage_level:
  2570. post:
  2571. tags:
  2572. - scd_check_tools/controllersScreenController
  2573. summary: 修改指定间隔的所属电压等级
  2574. description: 修改指定间隔的所属电压等级
  2575. parameters:
  2576. - in: query
  2577. name: voltagelevel
  2578. description: 电压等级ID
  2579. required: true
  2580. type: integer
  2581. format: int64
  2582. - in: query
  2583. name: area_id
  2584. description: 间隔ID
  2585. required: true
  2586. type: integer
  2587. format: int64
  2588. /scd/area/editname:
  2589. post:
  2590. tags:
  2591. - scd_check_tools/controllersScreenController
  2592. summary: 修改指定间隔的名称信息
  2593. description: 修改指定间隔的名称信息
  2594. parameters:
  2595. - in: query
  2596. name: scd_id
  2597. description: SCD文件ID
  2598. required: true
  2599. type: integer
  2600. format: int64
  2601. - in: query
  2602. name: area_id
  2603. description: 间隔ID
  2604. required: true
  2605. type: integer
  2606. format: int64
  2607. - in: query
  2608. name: name
  2609. description: 间隔名称
  2610. required: true
  2611. type: string
  2612. /scd/area/ied/list:
  2613. get:
  2614. tags:
  2615. - scd_check_tools/controllersScreenController
  2616. summary: 获取指定间隔下的IED信息
  2617. description: 获取指定间隔下的IED信息
  2618. parameters:
  2619. - in: query
  2620. name: scd_id
  2621. description: SCD文件ID
  2622. required: true
  2623. type: integer
  2624. format: int64
  2625. - in: query
  2626. name: voltage_level_id
  2627. description: 电压等级ID
  2628. type: integer
  2629. format: int64
  2630. - in: query
  2631. name: area_id
  2632. description: 间隔ID
  2633. type: integer
  2634. format: int64
  2635. - in: query
  2636. name: device_type_id
  2637. description: 装置类型ID。关联系统字典:device_type
  2638. type: string
  2639. /scd/area/list:
  2640. get:
  2641. tags:
  2642. - scd_check_tools/controllersScreenController
  2643. summary: 获取指定scd下的间隔信息
  2644. description: 获取指定scd下的间隔信息
  2645. parameters:
  2646. - in: query
  2647. name: scd_id
  2648. description: SCD文件ID
  2649. required: true
  2650. type: integer
  2651. format: int64
  2652. - in: query
  2653. name: voltage_level_id
  2654. description: 电压等级ID
  2655. type: integer
  2656. format: int64
  2657. /scd/check/resultlist:
  2658. get:
  2659. tags:
  2660. - scd_check_tools/controllersScreenController
  2661. summary: 获取指定SCD的校验结果
  2662. description: 获取指定SCD的校验结果
  2663. parameters:
  2664. - in: query
  2665. name: scd_id
  2666. description: SCD文件ID
  2667. required: true
  2668. type: integer
  2669. format: int64
  2670. - in: query
  2671. name: pageno
  2672. description: 当前页码。默认为1
  2673. required: true
  2674. type: integer
  2675. format: int64
  2676. - in: query
  2677. name: pagesize
  2678. description: 每页数据记录条数。默认为20
  2679. required: true
  2680. type: integer
  2681. format: int64
  2682. - in: query
  2683. name: scd_name
  2684. description: SCD文件名称
  2685. type: string
  2686. - in: query
  2687. name: scd_path
  2688. description: SCD文件名称
  2689. type: string
  2690. - in: query
  2691. name: level
  2692. description: 校验错误级别
  2693. type: string
  2694. - in: query
  2695. name: ied_name
  2696. description: IED装置名称
  2697. type: string
  2698. - in: query
  2699. name: node_name
  2700. description: 节点名称
  2701. type: string
  2702. - in: query
  2703. name: node_id
  2704. description: 节点ID
  2705. type: string
  2706. /scd/check/stat/level:
  2707. get:
  2708. tags:
  2709. - scd_check_tools/controllersScreenController
  2710. summary: 按校验错误等级统计校验结果
  2711. description: 按校验错误等级统计校验结果
  2712. parameters:
  2713. - in: query
  2714. name: scd_id
  2715. description: SCD文件ID
  2716. required: true
  2717. type: integer
  2718. format: int64
  2719. - in: query
  2720. name: scd_name
  2721. description: SCD文件名称
  2722. type: string
  2723. - in: query
  2724. name: scd_path
  2725. description: SCD文件名称
  2726. type: string
  2727. - in: query
  2728. name: ied_name
  2729. description: IED装置名称
  2730. type: string
  2731. - in: query
  2732. name: node_name
  2733. description: 节点名称
  2734. type: string
  2735. - in: query
  2736. name: node_id
  2737. description: 节点ID
  2738. type: string
  2739. /scd/check/sum/result:
  2740. get:
  2741. tags:
  2742. - scd_check_tools/controllersScreenController
  2743. summary: 获取指定SCD的汇总统计结果
  2744. description: 获取指定SCD的汇总统计结果
  2745. parameters:
  2746. - in: query
  2747. name: scd_id
  2748. description: SCD文件ID
  2749. required: true
  2750. type: integer
  2751. format: int64
  2752. /scd/comp/iedstat/type:
  2753. get:
  2754. tags:
  2755. - scd_check_tools/controllersScdCompController
  2756. summary: 指定装置差异对比结果分类统计
  2757. description: 指定装置差异对比结果分类统计
  2758. parameters:
  2759. - in: query
  2760. name: comp_id
  2761. description: 差异比对记录ID
  2762. required: true
  2763. type: integer
  2764. format: int64
  2765. - in: query
  2766. name: ied_name
  2767. description: 装置名称
  2768. type: string
  2769. - in: query
  2770. name: comptype
  2771. description: 差异类别。值为:i|d|u之一
  2772. type: string
  2773. responses:
  2774. "200":
  2775. description: 成功
  2776. schema:
  2777. $ref: '#/definitions/ResultOK'
  2778. "500":
  2779. description: status 失败
  2780. /scd/comp/list:
  2781. get:
  2782. tags:
  2783. - scd_check_tools/controllersScdCompController
  2784. summary: 获取指定变电站的差异对比记录列表
  2785. description: 获取指定变电站的差异对比记录列表
  2786. parameters:
  2787. - in: query
  2788. name: station_id
  2789. description: 变电站ID
  2790. required: true
  2791. type: integer
  2792. format: int64
  2793. responses:
  2794. "200":
  2795. description: 成功
  2796. schema:
  2797. $ref: '#/definitions/ResultOK'
  2798. "500":
  2799. description: status 失败
  2800. /scd/comp/result:
  2801. get:
  2802. tags:
  2803. - scd_check_tools/controllersScdCompController
  2804. summary: 获取指定差异对比的详细结果列表
  2805. description: 获取指定差异对比的详细结果列表
  2806. parameters:
  2807. - in: query
  2808. name: comp_id
  2809. description: 差异比对记录ID
  2810. required: true
  2811. type: integer
  2812. format: int64
  2813. - in: query
  2814. name: ied_name
  2815. description: 装置名称
  2816. type: string
  2817. - in: query
  2818. name: itemcode
  2819. description: 差异对象类型代码
  2820. type: string
  2821. responses:
  2822. "200":
  2823. description: 成功
  2824. schema:
  2825. $ref: '#/definitions/ResultOK'
  2826. "500":
  2827. description: status 失败
  2828. /scd/comp/start:
  2829. post:
  2830. tags:
  2831. - scd_check_tools/controllersScdCompController
  2832. summary: 开始scd差异对比
  2833. description: 开始scd差异对比
  2834. parameters:
  2835. - in: query
  2836. name: type
  2837. description: 对比的文件类型。值为scd\ccd\cid\ccd_cid_scd\icd_scd之一。
  2838. required: true
  2839. type: string
  2840. - in: query
  2841. name: comp_id
  2842. description: 差异比对记录ID。不为空或0时表示重新比对差异
  2843. type: integer
  2844. format: int64
  2845. - in: query
  2846. name: station_id
  2847. description: 变电站ID
  2848. required: true
  2849. type: integer
  2850. format: int64
  2851. - in: query
  2852. name: source_scd_id
  2853. description: 对比的基准SCD文件ID。type为scd时必填。
  2854. type: integer
  2855. format: int64
  2856. - in: query
  2857. name: target_scd_id
  2858. description: 对比的参照SCD文件ID。type为scd时必填。
  2859. type: integer
  2860. format: int64
  2861. - in: query
  2862. name: ids
  2863. description: 如果是2个非SCD对比文件时,需要对比的文件ID列表,使用逗号分隔。仅当type为ccd\cid\ccd_cid_scd\icd_scd时有效
  2864. type: string
  2865. responses:
  2866. "200":
  2867. description: 成功
  2868. schema:
  2869. $ref: '#/definitions/ResultOK'
  2870. "500":
  2871. description: status 失败
  2872. /scd/comp/stat/result:
  2873. get:
  2874. tags:
  2875. - scd_check_tools/controllersScdCompController
  2876. summary: 获取scd差异对比结果概览统计
  2877. description: 获取scd差异对比结果概览统计
  2878. parameters:
  2879. - in: query
  2880. name: comp_id
  2881. description: 差异比对记录ID
  2882. required: true
  2883. type: integer
  2884. format: int64
  2885. responses:
  2886. "200":
  2887. description: 成功
  2888. schema:
  2889. $ref: '#/definitions/ResultOK'
  2890. "500":
  2891. description: status 失败
  2892. /scd/comp/tree:
  2893. get:
  2894. tags:
  2895. - scd_check_tools/controllersScdCompController
  2896. summary: 获取SCD校验对象树
  2897. description: 获取SCD校验对象树
  2898. parameters:
  2899. - in: query
  2900. name: scd_id
  2901. description: SCD文件ID
  2902. required: true
  2903. type: integer
  2904. format: int64
  2905. - in: query
  2906. name: id
  2907. description: 对象ID
  2908. type: integer
  2909. format: int64
  2910. - in: query
  2911. name: pid
  2912. description: 上级对象ID
  2913. type: integer
  2914. format: int64
  2915. responses:
  2916. "200":
  2917. description: 成功
  2918. schema:
  2919. $ref: '#/definitions/ResultOK'
  2920. "500":
  2921. description: status 失败
  2922. /scd/ied/editarea:
  2923. post:
  2924. tags:
  2925. - scd_check_tools/controllersScreenController
  2926. summary: 修改指定装置的所属间隔
  2927. description: 修改指定装置的所属间隔
  2928. parameters:
  2929. - in: query
  2930. name: scd_id
  2931. description: SCD文件ID
  2932. required: true
  2933. type: integer
  2934. format: int64
  2935. - in: query
  2936. name: ied_name
  2937. description: 装置名称
  2938. required: true
  2939. type: string
  2940. - in: query
  2941. name: area_id
  2942. description: 间隔ID
  2943. required: true
  2944. type: integer
  2945. format: int64
  2946. /scd/ied/typelist:
  2947. get:
  2948. tags:
  2949. - scd_check_tools/controllersScreenController
  2950. summary: 获取指定SCD下的IED类型信息
  2951. description: 获取指定SCD下的IED类型信息
  2952. parameters:
  2953. - in: query
  2954. name: scd_id
  2955. description: SCD文件ID
  2956. required: true
  2957. type: integer
  2958. format: int64
  2959. /scd/rule/list:
  2960. get:
  2961. tags:
  2962. - scd_check_tools/controllersRuleController
  2963. summary: 获取校验规则列表
  2964. description: 获取校验规则列表
  2965. parameters:
  2966. - in: query
  2967. name: pageindex
  2968. description: 当前页码。默认为1
  2969. type: integer
  2970. format: int64
  2971. - in: query
  2972. name: pagesize
  2973. description: 每页显示记录数。默认为20
  2974. type: integer
  2975. format: int64
  2976. - in: query
  2977. name: id
  2978. description: 规则ID
  2979. type: integer
  2980. format: int64
  2981. - in: query
  2982. name: enable
  2983. description: 是否启用。默认为全部
  2984. type: integer
  2985. format: int64
  2986. - in: query
  2987. name: object_name
  2988. description: 规则的对象名称
  2989. type: string
  2990. - in: query
  2991. name: object_type
  2992. description: 规则的对象分类
  2993. type: integer
  2994. format: int64
  2995. - in: query
  2996. name: alert_level
  2997. description: 规则的告警级别。值为error\alert\hint之一。
  2998. type: string
  2999. - in: query
  3000. name: apply_standard
  3001. description: 规则标准
  3002. type: string
  3003. responses:
  3004. "200":
  3005. description: 成功
  3006. schema:
  3007. $ref: '#/definitions/ResultOK'
  3008. "500":
  3009. description: status 失败
  3010. /scd/rule/remove:
  3011. post:
  3012. tags:
  3013. - scd_check_tools/controllersRuleController
  3014. summary: 删除校验规则
  3015. description: 删除校验规则
  3016. parameters:
  3017. - in: formData
  3018. name: id
  3019. description: 规则ID
  3020. required: true
  3021. type: integer
  3022. format: int64
  3023. responses:
  3024. "200":
  3025. description: 成功
  3026. schema:
  3027. $ref: '#/definitions/ResultOK'
  3028. "500":
  3029. description: status 失败
  3030. /scd/rule/reset:
  3031. post:
  3032. tags:
  3033. - scd_check_tools/controllersRuleController
  3034. summary: 重新校验指定scd
  3035. description: 重新校验指定scd
  3036. parameters:
  3037. - in: formData
  3038. name: scd_id
  3039. description: SCD文件ID
  3040. required: true
  3041. type: integer
  3042. format: int64
  3043. responses:
  3044. "200":
  3045. description: 成功
  3046. schema:
  3047. $ref: '#/definitions/ResultOK'
  3048. "500":
  3049. description: status 失败
  3050. /scd/rule/save:
  3051. post:
  3052. tags:
  3053. - scd_check_tools/controllersRuleController
  3054. summary: 保存校验规则
  3055. description: 保存校验规则
  3056. parameters:
  3057. - in: formData
  3058. name: id
  3059. description: 规则ID。不为0时表示编辑
  3060. type: integer
  3061. format: int64
  3062. - in: formData
  3063. name: enable
  3064. description: 是否启用。默认为全部
  3065. type: integer
  3066. format: int64
  3067. - in: formData
  3068. name: object_name
  3069. description: 规则的对象名称
  3070. type: string
  3071. - in: formData
  3072. name: object_type
  3073. description: 规则的对象分类
  3074. type: integer
  3075. format: int64
  3076. - in: formData
  3077. name: alert_level
  3078. description: 规则的告警级别。值为error\alert\hint之一。
  3079. type: string
  3080. - in: formData
  3081. name: apply_standard
  3082. description: 规则标准
  3083. type: string
  3084. responses:
  3085. "200":
  3086. description: 成功
  3087. schema:
  3088. $ref: '#/definitions/ResultOK'
  3089. "500":
  3090. description: status 失败
  3091. /scd/stat/right:
  3092. get:
  3093. tags:
  3094. - scd_check_tools/controllersStatController
  3095. summary: scd正确性分析
  3096. description: scd正确性分析
  3097. parameters:
  3098. - in: query
  3099. name: station_id
  3100. description: 变电站ID
  3101. required: true
  3102. type: integer
  3103. format: int64
  3104. responses:
  3105. "200":
  3106. description: 错误
  3107. schema:
  3108. $ref: '#/definitions/ResultError'
  3109. "500":
  3110. description: status 失败
  3111. /scd_check_tools/checkin/detail:
  3112. get:
  3113. tags:
  3114. - scd_check_tools/controllersFlowController
  3115. summary: 获取指定站的指定scd的签入详情
  3116. description: 获取指定站的指定scd的签入详情
  3117. parameters:
  3118. - in: query
  3119. name: station_id
  3120. description: 变电站ID
  3121. required: true
  3122. type: string
  3123. - in: query
  3124. name: scd_name
  3125. description: SCD名称
  3126. type: string
  3127. - in: query
  3128. name: scd_path
  3129. description: SCD文件路径
  3130. type: string
  3131. - in: query
  3132. name: scd_id
  3133. description: SCD文件ID。为空时scd_name和scd_path必填
  3134. type: string
  3135. responses:
  3136. "200":
  3137. description: 成功
  3138. schema:
  3139. $ref: '#/definitions/ResultOK'
  3140. "500":
  3141. description: '{object} ResultError 失败'
  3142. /screen/scd/agin_parse:
  3143. post:
  3144. tags:
  3145. - scd_check_tools/controllersScreenController
  3146. summary: 重新解析指定scd
  3147. description: 重新解析指定scd
  3148. parameters:
  3149. - in: formData
  3150. name: scd_id
  3151. description: SCD ID
  3152. required: true
  3153. type: integer
  3154. format: int64
  3155. responses:
  3156. "200":
  3157. description: 成功
  3158. schema:
  3159. $ref: '#/definitions/ResultOK'
  3160. "500":
  3161. description: '{object} ResultError 失败'
  3162. /screen/scd/checktools/tree:
  3163. get:
  3164. tags:
  3165. - scd_check_tools/controllersScreenController
  3166. summary: 获取指定scd校验类型树
  3167. description: 获取指定scd校验类型树
  3168. parameters:
  3169. - in: query
  3170. name: scd_id
  3171. description: SCD文件ID
  3172. required: true
  3173. type: integer
  3174. format: int64
  3175. - in: query
  3176. name: id
  3177. description: 节点ID
  3178. required: true
  3179. type: integer
  3180. format: int64
  3181. - in: query
  3182. name: pid
  3183. description: 父节点ID
  3184. required: true
  3185. type: integer
  3186. format: int64
  3187. - in: query
  3188. name: datatype
  3189. description: 节点类型
  3190. required: true
  3191. type: string
  3192. responses:
  3193. "200":
  3194. description: 成功
  3195. schema:
  3196. $ref: '#/definitions/ResultOK'
  3197. "500":
  3198. description: '{object} ResultError 失败'
  3199. /screen/scd/crc:
  3200. get:
  3201. tags:
  3202. - scd_check_tools/controllersScreenController
  3203. summary: 获取指定scd的crc校验结果
  3204. description: 获取指定scd的crc校验结果
  3205. parameters:
  3206. - in: query
  3207. name: scd_id
  3208. description: SCD文件ID
  3209. required: true
  3210. type: integer
  3211. format: int64
  3212. /screen/scd/delete:
  3213. post:
  3214. tags:
  3215. - scd_check_tools/controllersScreenController
  3216. summary: 删除指定scd数据
  3217. description: 删除指定scd数据
  3218. parameters:
  3219. - in: formData
  3220. name: id
  3221. description: SCD文件ID
  3222. required: true
  3223. type: integer
  3224. format: int64
  3225. responses:
  3226. "200":
  3227. description: 成功
  3228. schema:
  3229. $ref: '#/definitions/ResultOK'
  3230. "500":
  3231. description: '{object} ResultError 失败'
  3232. /screen/scd/ied/ctrlblock:
  3233. get:
  3234. tags:
  3235. - scd_check_tools/controllersScreenController
  3236. summary: 获取指定IED的控制块信息
  3237. description: 获取指定IED的控制块信息
  3238. parameters:
  3239. - in: query
  3240. name: scd_id
  3241. description: SCD文件ID
  3242. required: true
  3243. type: integer
  3244. format: int64
  3245. - in: query
  3246. name: ied_name
  3247. description: 装置名称
  3248. required: true
  3249. type: string
  3250. /screen/scd/ied/dingzhi:
  3251. get:
  3252. tags:
  3253. - scd_check_tools/controllersScreenController
  3254. summary: 获取指定IED的定值条目
  3255. description: 获取指定IED的定值条目
  3256. parameters:
  3257. - in: query
  3258. name: scd_id
  3259. description: SCD文件ID
  3260. required: true
  3261. type: integer
  3262. format: int64
  3263. - in: query
  3264. name: ied_name
  3265. description: IED装置名称
  3266. required: true
  3267. type: string
  3268. /screen/scd/ied/goose_ctrlblock/receive:
  3269. get:
  3270. tags:
  3271. - scd_check_tools/controllersScreenController
  3272. summary: 获取指定IED的接收GOOSE控制块端子列表
  3273. description: 获取指定IED的接收GOOSE控制块端子列表
  3274. parameters:
  3275. - in: query
  3276. name: scd_id
  3277. description: SCD文件ID
  3278. required: true
  3279. type: integer
  3280. format: int64
  3281. - in: query
  3282. name: ied_name
  3283. description: 装置名称
  3284. required: true
  3285. type: string
  3286. /screen/scd/ied/goose_ctrlblock/sendfcdalist:
  3287. get:
  3288. tags:
  3289. - scd_check_tools/controllersScreenController
  3290. summary: 获取指定IED的指定GOOSE控制块端子列表
  3291. description: 获取指定IED的指定GOOSE控制块端子列表
  3292. parameters:
  3293. - in: query
  3294. name: scd_id
  3295. description: SCD文件ID
  3296. required: true
  3297. type: integer
  3298. format: int64
  3299. - in: query
  3300. name: ied_name
  3301. description: 装置名称
  3302. required: true
  3303. type: string
  3304. - in: query
  3305. name: ctrlid
  3306. description: GOOSE控制块ID
  3307. required: true
  3308. type: integer
  3309. format: int64
  3310. /screen/scd/ied/inputs:
  3311. get:
  3312. tags:
  3313. - scd_check_tools/controllersScreenController
  3314. summary: 获取IED的虚端子关系
  3315. description: 获取IED的虚端子关系
  3316. parameters:
  3317. - in: query
  3318. name: scd_id
  3319. description: SCD文件ID
  3320. required: true
  3321. type: integer
  3322. format: int64
  3323. - in: query
  3324. name: ied_name
  3325. description: 主装置名称
  3326. required: true
  3327. type: string
  3328. - in: query
  3329. name: m_ied_name
  3330. description: 输出IED装置名称
  3331. required: true
  3332. type: string
  3333. - in: query
  3334. name: s_ied_name
  3335. description: 输入IED装置名称
  3336. required: true
  3337. type: string
  3338. - in: query
  3339. name: m_ctrlid
  3340. description: 输出控制块ID
  3341. required: true
  3342. type: string
  3343. - in: query
  3344. name: s_ctrlid
  3345. description: 输入控制块ID
  3346. required: true
  3347. type: string
  3348. /screen/scd/ied/netaddr:
  3349. get:
  3350. tags:
  3351. - scd_check_tools/controllersScreenController
  3352. summary: 获取SCD中配置的所有设备网络地址
  3353. description: 获取SCD中配置的所有设备网络地址
  3354. parameters:
  3355. - in: query
  3356. name: scd_id
  3357. description: SCD文件ID
  3358. required: true
  3359. type: integer
  3360. format: int64
  3361. /screen/scd/ied/network/info:
  3362. get:
  3363. tags:
  3364. - scd_check_tools/controllersScreenController
  3365. summary: 获取IED网络配置信息
  3366. description: 获取IED网络配置信息
  3367. parameters:
  3368. - in: query
  3369. name: scd_id
  3370. description: SCD文件ID
  3371. required: true
  3372. type: integer
  3373. format: int64
  3374. - in: query
  3375. name: ied_name
  3376. description: 装置名称
  3377. required: true
  3378. type: string
  3379. /screen/scd/ied/pointtable:
  3380. get:
  3381. tags:
  3382. - scd_check_tools/controllersScreenController
  3383. summary: 获取指定IED的信息点表
  3384. description: 获取指定IED的定值条目
  3385. parameters:
  3386. - in: query
  3387. name: scd_id
  3388. description: SCD文件ID
  3389. required: true
  3390. type: integer
  3391. format: int64
  3392. - in: query
  3393. name: ied_name
  3394. description: IED装置名称
  3395. required: true
  3396. type: string
  3397. /screen/scd/ied/ref/ctrlblock:
  3398. get:
  3399. tags:
  3400. - scd_check_tools/controllersScreenController
  3401. summary: 获取指定IED的关联IED控制块信息
  3402. description: 获取指定IED的关联IED控制块信息
  3403. parameters:
  3404. - in: query
  3405. name: scd_id
  3406. description: SCD文件ID
  3407. required: true
  3408. type: integer
  3409. format: int64
  3410. - in: query
  3411. name: ied_name
  3412. description: 装置名称
  3413. required: true
  3414. type: string
  3415. /screen/scd/ied/relation:
  3416. get:
  3417. tags:
  3418. - scd_check_tools/controllersScreenController
  3419. summary: 获取IED关联关系
  3420. description: 获取IED关联关系
  3421. parameters:
  3422. - in: query
  3423. name: scd_id
  3424. description: SCD文件ID
  3425. required: true
  3426. type: integer
  3427. format: int64
  3428. - in: query
  3429. name: ied_name
  3430. description: 装置名称
  3431. required: true
  3432. type: string
  3433. /screen/scd/ied/smv_ctrlblock/receive:
  3434. get:
  3435. tags:
  3436. - scd_check_tools/controllersScreenController
  3437. summary: 获取指定IED的接收SMV控制块端子列表
  3438. description: 获取指定IED的接收SMV控制块端子列表
  3439. parameters:
  3440. - in: query
  3441. name: scd_id
  3442. description: SCD文件ID
  3443. required: true
  3444. type: integer
  3445. format: int64
  3446. - in: query
  3447. name: ied_name
  3448. description: 装置名称
  3449. required: true
  3450. type: string
  3451. /screen/scd/ied/smv_ctrlblock/sendfcdalist:
  3452. get:
  3453. tags:
  3454. - scd_check_tools/controllersScreenController
  3455. summary: 获取指定IED的指定SMV控制块端子列表
  3456. description: 获取指定IED的指定SMV控制块端子列表
  3457. parameters:
  3458. - in: query
  3459. name: scd_id
  3460. description: SCD文件ID
  3461. required: true
  3462. type: integer
  3463. format: int64
  3464. - in: query
  3465. name: ied_name
  3466. description: 装置名称
  3467. required: true
  3468. type: string
  3469. - in: query
  3470. name: ctrlid
  3471. description: SMV控制块ID
  3472. required: true
  3473. type: integer
  3474. format: int64
  3475. /screen/scd/ied/sourcexml:
  3476. get:
  3477. tags:
  3478. - scd_check_tools/controllersScreenController
  3479. summary: 获取指定IED的源XML
  3480. description: 获取指定IED的源XML
  3481. parameters:
  3482. - in: query
  3483. name: scd_id
  3484. description: SCD文件ID
  3485. required: true
  3486. type: integer
  3487. format: int64
  3488. - in: query
  3489. name: ied_name
  3490. description: IED装置名称
  3491. required: true
  3492. type: string
  3493. /screen/scd/info:
  3494. get:
  3495. tags:
  3496. - scd_check_tools/controllersScreenController
  3497. summary: 获取scd详细信息
  3498. description: 获取scd详细信息
  3499. parameters:
  3500. - in: query
  3501. name: scd_id
  3502. description: SCD文件ID
  3503. required: true
  3504. type: integer
  3505. format: int64
  3506. - in: query
  3507. name: scdname
  3508. description: SCD名称
  3509. type: string
  3510. - in: query
  3511. name: scdpath
  3512. description: SCD路径
  3513. type: string
  3514. responses:
  3515. "200":
  3516. description: 成功
  3517. schema:
  3518. $ref: '#/definitions/ResultOK'
  3519. "500":
  3520. description: '{object} ResultError 失败'
  3521. /screen/scd/ldevice/list:
  3522. get:
  3523. tags:
  3524. - scd_check_tools/controllersScreenController
  3525. summary: 获取指定accessPoint下的Ldevice节点列表
  3526. description: 获取指定accessPoint下的Ldevice节点列表
  3527. parameters:
  3528. - in: query
  3529. name: scd_id
  3530. description: SCD文件ID
  3531. required: true
  3532. type: integer
  3533. format: int64
  3534. - in: query
  3535. name: accessPointId
  3536. description: 访问点ID
  3537. required: true
  3538. type: integer
  3539. format: int64
  3540. /screen/scd/line/sourcexml:
  3541. get:
  3542. tags:
  3543. - scd_check_tools/controllersScreenController
  3544. summary: 获取指定行号的源XML
  3545. description: 获取指定行号的源XML,每次获取指定行的前后各100行源数据
  3546. parameters:
  3547. - in: query
  3548. name: scd_id
  3549. description: SCD文件ID
  3550. required: true
  3551. type: integer
  3552. format: int64
  3553. - in: query
  3554. name: lineno
  3555. description: 行号
  3556. required: true
  3557. type: integer
  3558. format: int64
  3559. /screen/scd/list:
  3560. get:
  3561. tags:
  3562. - scd_check_tools/controllersScreenController
  3563. summary: 获取scd列表
  3564. description: 获取scd列表
  3565. parameters:
  3566. - in: query
  3567. name: stationid
  3568. description: 变电站ID
  3569. required: true
  3570. type: integer
  3571. format: int64
  3572. - in: query
  3573. name: pageno
  3574. description: 当前页码。默认为1
  3575. required: true
  3576. type: integer
  3577. format: int64
  3578. - in: query
  3579. name: pagesize
  3580. description: 每页显示数据数。默认为50
  3581. required: true
  3582. type: integer
  3583. format: int64
  3584. - in: query
  3585. name: name
  3586. description: SCD名称
  3587. type: string
  3588. - in: query
  3589. name: enable
  3590. description: 是否在运版SCD
  3591. type: integer
  3592. format: int64
  3593. - in: query
  3594. name: ischeckinscd
  3595. description: 是否管控scd
  3596. type: integer
  3597. format: int64
  3598. responses:
  3599. "200":
  3600. description: 成功
  3601. schema:
  3602. $ref: '#/definitions/ResultOK'
  3603. "500":
  3604. description: '{object} ResultError 失败'
  3605. /screen/scd/node/attrs:
  3606. get:
  3607. tags:
  3608. - scd_check_tools/controllersScreenController
  3609. summary: 获取scd节点属性
  3610. description: 获取scd节点属性
  3611. parameters:
  3612. - in: query
  3613. name: scd_id
  3614. description: SCD文件ID
  3615. required: true
  3616. type: integer
  3617. format: int64
  3618. - in: query
  3619. name: node_id
  3620. description: SCD节点ID
  3621. required: true
  3622. type: integer
  3623. format: int64
  3624. - in: query
  3625. name: ied_name
  3626. description: SCD装置名称
  3627. type: string
  3628. /screen/scd/node/children/stat:
  3629. get:
  3630. tags:
  3631. - scd_check_tools/controllersScreenController
  3632. summary: 统计指定节点的下级节点类型及数量
  3633. description: 统计指定节点的下级节点类型及数量
  3634. parameters:
  3635. - in: query
  3636. name: scd_id
  3637. description: SCD文件ID
  3638. required: true
  3639. type: integer
  3640. format: int64
  3641. - in: query
  3642. name: node_id
  3643. description: SCD节点ID
  3644. required: true
  3645. type: integer
  3646. format: int64
  3647. /screen/scd/node/list:
  3648. get:
  3649. tags:
  3650. - scd_check_tools/controllersScreenController
  3651. summary: 获取scd节点列表
  3652. description: 获取scd节点列表
  3653. parameters:
  3654. - in: query
  3655. name: scd_id
  3656. description: SCD文件ID
  3657. required: true
  3658. type: integer
  3659. format: int64
  3660. - in: query
  3661. name: pageno
  3662. description: 当前页码。默认为1
  3663. required: true
  3664. type: integer
  3665. format: int64
  3666. - in: query
  3667. name: pagesize
  3668. description: 每页的数据条数。默认为20
  3669. required: true
  3670. type: integer
  3671. format: int64
  3672. - in: query
  3673. name: parent_node_id
  3674. description: 父节点ID
  3675. type: integer
  3676. format: int64
  3677. - in: query
  3678. name: name
  3679. description: 节点Name
  3680. type: string
  3681. - in: query
  3682. name: ied_name
  3683. description: 装置Name
  3684. type: string
  3685. /screen/scd/parse/step1:
  3686. post:
  3687. tags:
  3688. - scd_check_tools/controllersScreenController
  3689. summary: 解析指定scd的间隔及装置
  3690. description: 解析指定scd的间隔及装置,该接口不会进行校验及其他分析
  3691. parameters:
  3692. - in: formData
  3693. name: station_id
  3694. description: 变电站ID
  3695. required: true
  3696. type: integer
  3697. format: int64
  3698. - in: formData
  3699. name: scd_path
  3700. description: SCD文件路径
  3701. required: true
  3702. type: string
  3703. - in: formData
  3704. name: scd_name
  3705. description: SCD文件名称
  3706. required: true
  3707. type: string
  3708. responses:
  3709. "200":
  3710. description: 成功
  3711. schema:
  3712. $ref: '#/definitions/ResultOK'
  3713. "500":
  3714. description: '{object} ResultError 失败'
  3715. /screen/scd/parse/step2:
  3716. post:
  3717. tags:
  3718. - scd_check_tools/controllersScreenController
  3719. summary: 对指定scd进行校验及分析
  3720. description: 对指定scd进行校验及分析
  3721. parameters:
  3722. - in: formData
  3723. name: scd_id
  3724. description: SCD ID
  3725. required: true
  3726. type: integer
  3727. format: int64
  3728. responses:
  3729. "200":
  3730. description: 成功
  3731. schema:
  3732. $ref: '#/definitions/ResultOK'
  3733. "500":
  3734. description: '{object} ResultError 失败'
  3735. /screen/scd/tmp_parse:
  3736. post:
  3737. tags:
  3738. - scd_check_tools/controllersScreenController
  3739. summary: 临时scd解析
  3740. description: 临时scd解析
  3741. parameters:
  3742. - in: formData
  3743. name: station_id
  3744. description: 变电站ID
  3745. required: true
  3746. type: integer
  3747. format: int64
  3748. - in: formData
  3749. name: scdname
  3750. description: SCD名称
  3751. type: string
  3752. - in: formData
  3753. name: scdpath
  3754. description: SCD路径
  3755. type: string
  3756. responses:
  3757. "200":
  3758. description: 成功
  3759. schema:
  3760. $ref: '#/definitions/ResultOK'
  3761. "500":
  3762. description: '{object} ResultError 失败'
  3763. /screen/scd/unlock:
  3764. post:
  3765. tags:
  3766. - scd_check_tools/controllersScreenController
  3767. summary: 强制解除scd文件锁定状态
  3768. description: 强制解除scd文件锁定状态
  3769. parameters:
  3770. - in: formData
  3771. name: scd_id
  3772. description: SCD文件ID
  3773. required: true
  3774. type: integer
  3775. format: int64
  3776. - in: formData
  3777. name: flow_run_id
  3778. description: 签入流程ID
  3779. required: true
  3780. type: integer
  3781. format: int64
  3782. responses:
  3783. "200":
  3784. description: 成功
  3785. schema:
  3786. $ref: '#/definitions/ResultOK'
  3787. "500":
  3788. description: '{object} ResultError 失败'
  3789. /searchUserInfo:
  3790. get:
  3791. tags:
  3792. - scd_check_tools/controllersApiController
  3793. summary: 搜索查询用户
  3794. description: 查询用户
  3795. parameters:
  3796. - in: query
  3797. name: name
  3798. description: 姓名
  3799. type: integer
  3800. format: int64
  3801. - in: query
  3802. name: pageindex
  3803. description: 分页页码,默认为1
  3804. type: integer
  3805. format: int64
  3806. - in: query
  3807. name: pagesize
  3808. description: 每页最大记录数,默认为20
  3809. type: integer
  3810. format: int64
  3811. - in: query
  3812. name: area_id
  3813. description: 区域ID
  3814. type: integer
  3815. format: int64
  3816. - in: query
  3817. name: role_id
  3818. description: 角色ID
  3819. type: integer
  3820. format: int64
  3821. responses:
  3822. "200":
  3823. description: 成功
  3824. schema:
  3825. $ref: '#/definitions/WarpOK'
  3826. "500":
  3827. description: '{object} WarpError 失败'
  3828. /sys/alarm/list:
  3829. get:
  3830. tags:
  3831. - scd_check_tools/controllersApiController
  3832. summary: 获取系统告警列表
  3833. description: 获取系统告警列表
  3834. parameters:
  3835. - in: query
  3836. name: pageindex
  3837. description: 当前查询的分页页码,默认为1
  3838. type: integer
  3839. format: int64
  3840. - in: query
  3841. name: pagesize
  3842. description: 每页显示的数据条数,默认为20
  3843. type: integer
  3844. format: int64
  3845. - in: query
  3846. name: enddate
  3847. description: 查询条件:结束日期
  3848. type: string
  3849. - in: query
  3850. name: startdate
  3851. description: 查询条件:开始日期
  3852. type: string
  3853. - in: query
  3854. name: eventtype
  3855. description: 查询条件:事件类型。关联系统字典代码log_eventtype。
  3856. type: integer
  3857. format: int64
  3858. - in: query
  3859. name: alarmtype
  3860. description: 查询条件:告警类型。值为disk|cpu|mem之一。
  3861. type: string
  3862. - in: query
  3863. name: description
  3864. description: 查询条件:告警内容。模糊查询
  3865. type: string
  3866. responses:
  3867. "200":
  3868. description: 成功
  3869. schema:
  3870. $ref: '#/definitions/ResultOK'
  3871. "500":
  3872. description: '{object} ResultError 失败'
  3873. /sys/init:
  3874. post:
  3875. tags:
  3876. - scd_check_tools/controllersApiController
  3877. summary: 初始化系统数据
  3878. /task/check/step_info:
  3879. get:
  3880. tags:
  3881. - scd_check_tools/controllersTaskController
  3882. summary: 获取指定检测任务步骤的实时检测状态
  3883. description: 获取指定检测任务步骤的实时检测状态。该接口需要周期性调用,建议每2秒调用一次。
  3884. parameters:
  3885. - in: query
  3886. name: id
  3887. description: 任务ID
  3888. required: true
  3889. type: integer
  3890. format: int64
  3891. responses:
  3892. "200":
  3893. description: 成功
  3894. schema:
  3895. $ref: '#/definitions/ResultOK'
  3896. "500":
  3897. description: '{object} ResultError 失败'
  3898. /task/delete:
  3899. post:
  3900. tags:
  3901. - scd_check_tools/controllersTaskController
  3902. summary: 删除指定的检测任务
  3903. description: 删除指定的检测任务
  3904. parameters:
  3905. - in: formData
  3906. name: id
  3907. description: 检测任务ID
  3908. required: true
  3909. type: integer
  3910. format: int64
  3911. responses:
  3912. "200":
  3913. description: 成功
  3914. schema:
  3915. $ref: '#/definitions/ResultOK'
  3916. "500":
  3917. description: '{object} ResultError 失败'
  3918. /task/info:
  3919. get:
  3920. tags:
  3921. - scd_check_tools/controllersTaskController
  3922. summary: 获取指定检测任务的详细信息
  3923. description: 获取指定检测任务的详细信息
  3924. parameters:
  3925. - in: query
  3926. name: id
  3927. description: 任务ID
  3928. required: true
  3929. type: integer
  3930. format: int64
  3931. responses:
  3932. "200":
  3933. description: 成功
  3934. schema:
  3935. $ref: '#/definitions/ResultOK'
  3936. "500":
  3937. description: '{object} ResultError 失败'
  3938. /task/list:
  3939. get:
  3940. tags:
  3941. - scd_check_tools/controllersTaskController
  3942. summary: 查询检测任务
  3943. description: 查询检测任务。支持任务名称、检测状态等过滤条件
  3944. parameters:
  3945. - in: query
  3946. name: pageno
  3947. description: 当前页码。默认为1
  3948. required: true
  3949. type: integer
  3950. format: int64
  3951. - in: query
  3952. name: pagesize
  3953. description: 每页显示数据数。默认为20
  3954. required: true
  3955. type: integer
  3956. format: int64
  3957. - in: query
  3958. name: id
  3959. description: 任务ID
  3960. type: integer
  3961. format: int64
  3962. - in: query
  3963. name: station_id
  3964. description: 变电站ID
  3965. type: integer
  3966. format: int64
  3967. - in: query
  3968. name: name
  3969. description: 名称
  3970. type: string
  3971. - in: query
  3972. name: start_time
  3973. description: 检测开始日期。格式:yyyy-mm-dd
  3974. type: string
  3975. - in: query
  3976. name: end_time
  3977. description: 检测结束日期。格式:yyyy-mm-dd
  3978. type: string
  3979. - in: query
  3980. name: state
  3981. description: 检测状态。空:全部 0:未检查 1:检测中 2:检测结束 3:异常中断
  3982. type: integer
  3983. format: int64
  3984. responses:
  3985. "200":
  3986. description: 成功
  3987. schema:
  3988. $ref: '#/definitions/ResultOK'
  3989. "500":
  3990. description: '{object} ResultError 失败'
  3991. /task/save:
  3992. post:
  3993. tags:
  3994. - scd_check_tools/controllersTaskController
  3995. summary: 创建新的检测任务
  3996. description: 创建新的检测任务
  3997. parameters:
  3998. - in: formData
  3999. name: id
  4000. description: 任务ID。指定id值大于0时为编辑操作;否则为新增操作
  4001. type: integer
  4002. format: int64
  4003. - in: formData
  4004. name: name
  4005. description: 任务名称
  4006. required: true
  4007. type: string
  4008. - in: formData
  4009. name: station_id
  4010. description: 变电站ID
  4011. required: true
  4012. type: integer
  4013. format: int64
  4014. - in: formData
  4015. name: memo
  4016. description: 任务说明
  4017. type: string
  4018. - in: formData
  4019. name: report_id
  4020. description: 报告模板ID
  4021. required: true
  4022. type: integer
  4023. format: int64
  4024. - in: formData
  4025. name: scd_id
  4026. description: SCD文件ID
  4027. required: true
  4028. type: integer
  4029. format: int64
  4030. - in: formData
  4031. name: modelids
  4032. description: 模型ID。多个模型ID之间逗号分隔
  4033. required: true
  4034. type: string
  4035. responses:
  4036. "200":
  4037. description: 成功
  4038. schema:
  4039. $ref: '#/definitions/ResultOK'
  4040. "500":
  4041. description: '{object} ResultError 失败'
  4042. /task/start:
  4043. post:
  4044. tags:
  4045. - scd_check_tools/controllersTaskController
  4046. summary: 开始进行检测
  4047. description: 开始进行检测
  4048. parameters:
  4049. - in: formData
  4050. name: id
  4051. description: 检测任务ID
  4052. required: true
  4053. type: integer
  4054. format: int64
  4055. responses:
  4056. "200":
  4057. description: 成功
  4058. schema:
  4059. $ref: '#/definitions/ResultOK'
  4060. "500":
  4061. description: '{object} ResultError 失败'
  4062. /task/stop:
  4063. post:
  4064. tags:
  4065. - scd_check_tools/controllersTaskController
  4066. summary: 取消或者终止检测
  4067. description: 取消或者终止检测
  4068. parameters:
  4069. - in: formData
  4070. name: id
  4071. description: 检测任务ID
  4072. required: true
  4073. type: integer
  4074. format: int64
  4075. responses:
  4076. "200":
  4077. description: 成功
  4078. schema:
  4079. $ref: '#/definitions/ResultOK'
  4080. "500":
  4081. description: '{object} ResultError 失败'
  4082. /test:
  4083. get:
  4084. tags:
  4085. - scd_check_tools/controllersTestController
  4086. summary: 这是一个测试接口
  4087. description: 这是一个测试接口
  4088. /uploadfile:
  4089. post:
  4090. tags:
  4091. - scd_check_tools/controllersAttachmentController
  4092. summary: 上传文件
  4093. description: 上传文件
  4094. parameters:
  4095. - in: formData
  4096. name: file
  4097. description: 文件流
  4098. required: true
  4099. type: file
  4100. - in: formData
  4101. name: station_id
  4102. description: 变电站ID
  4103. required: true
  4104. type: integer
  4105. format: int64
  4106. - in: formData
  4107. name: is_checkin
  4108. description: 是否是管控文档
  4109. type: integer
  4110. format: int64
  4111. - in: formData
  4112. name: data_type
  4113. description: 业务类型。值为:a_scd|ccd|icd|cid|空。
  4114. type: string
  4115. - in: formData
  4116. name: attachment_type
  4117. description: 文件类别。值关联系统字典file_types或者为空。
  4118. type: string
  4119. responses:
  4120. "200":
  4121. description: 成功
  4122. schema:
  4123. $ref: '#/definitions/ResultOK'
  4124. "500":
  4125. description: '{object} ResultError 失败'
  4126. /version/check_client:
  4127. get:
  4128. tags:
  4129. - scd_check_tools/upgradeVersionController
  4130. summary: 获取最新客户端版本下载地址
  4131. /version/isnew:
  4132. get:
  4133. tags:
  4134. - scd_check_tools/upgradeVersionController
  4135. summary: 检查是否有新的客户端版本
  4136. expTableData:
  4137. post:
  4138. tags:
  4139. - scd_check_tools/controllersApiController
  4140. summary: Excel数据导出
  4141. description: Excel数据导出。导出成功时将返回导出文件的下载地址。
  4142. parameters:
  4143. - in: query
  4144. name: code
  4145. description: 业务类型。值为:scd-comp-result(差异对比结果)\scl-check-result(SCL校验结果)之一
  4146. required: true
  4147. type: string
  4148. - in: query
  4149. name: caption
  4150. description: 数据标题
  4151. type: string
  4152. - in: query
  4153. name: expcols
  4154. description: 导出的数据列,与expcolnames一一对应。从个数据列之间使用逗号分隔。未设置时将导出业务对应的所有列
  4155. type: string
  4156. - in: query
  4157. name: expcolnames
  4158. description: 导出的数据列对应的名称,与expcols一一一对应。从个数据列名之间使用逗号分隔。未设置时将导出业务对应的所有列
  4159. type: string
  4160. responses:
  4161. "200":
  4162. description: 成功
  4163. schema:
  4164. $ref: '#/definitions/ResultOK'
  4165. "500":
  4166. description: '{object} ResultError 失败'
  4167. definitions:
  4168. ResultError:
  4169. title: ResultError
  4170. type: object
  4171. ResultOK:
  4172. title: ResultOK
  4173. type: object
  4174. WarpOK:
  4175. title: WarpOK
  4176. type: object
  4177. tags:
  4178. - name: scd_check_tools/controllersApiController
  4179. description: |
  4180. 基础功能服务
  4181. - name: scd_check_tools/controllersTestController
  4182. description: |
  4183. 测试
  4184. - name: scd_check_tools/controllersExcelController
  4185. description: |
  4186. 文件/附件服务
  4187. - name: scd_check_tools/controllersScreenController
  4188. description: |
  4189. SCD服务
  4190. - name: scd_check_tools/controllersFlowController
  4191. description: |
  4192. 签入签出流程服务
  4193. - name: scd_check_tools/controllersAttachmentController
  4194. description: |
  4195. 文件/附件服务
  4196. - name: scd_check_tools/controllersRuleController
  4197. description: |
  4198. 校验规则管理服务
  4199. - name: scd_check_tools/controllersStatController
  4200. description: |
  4201. 统计分析服务
  4202. - name: scd_check_tools/controllersScdCompController
  4203. description: |
  4204. 一致性校验服务
  4205. - name: scd_check_tools/controllersNoticeController
  4206. description: |
  4207. 通知提醒服务
  4208. - name: scd_check_tools/controllersTaskController
  4209. description: |
  4210. 检测任务服务
  4211. - name: scd_check_tools/controllersBusAdminController
  4212. description: |
  4213. 业务管理服务
  4214. - name: scd_check_tools/controllersReportController
  4215. description: |
  4216. 检测报告服务