swagger.yml 92 KB

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