swagger.yml 106 KB

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