swagger.yml 93 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417
  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/delete:
  3131. post:
  3132. tags:
  3133. - scd_check_tools/controllersTaskController
  3134. summary: 删除指定的检测任务
  3135. description: 删除指定的检测任务
  3136. parameters:
  3137. - in: formData
  3138. name: id
  3139. description: 检测任务ID
  3140. required: true
  3141. type: integer
  3142. format: int64
  3143. responses:
  3144. "200":
  3145. description: 成功
  3146. schema:
  3147. $ref: '#/definitions/ResultOK'
  3148. "500":
  3149. description: '{object} ResultError 失败'
  3150. /task/list:
  3151. get:
  3152. tags:
  3153. - scd_check_tools/controllersTaskController
  3154. summary: 查询检测任务
  3155. description: 查询检测任务。支持任务名称、检测状态等过滤条件
  3156. parameters:
  3157. - in: query
  3158. name: pageno
  3159. description: 当前页码。默认为1
  3160. required: true
  3161. type: integer
  3162. format: int64
  3163. - in: query
  3164. name: pagesize
  3165. description: 每页显示数据数。默认为20
  3166. required: true
  3167. type: integer
  3168. format: int64
  3169. - in: query
  3170. name: id
  3171. description: 任务ID
  3172. type: integer
  3173. format: int64
  3174. - in: query
  3175. name: station_id
  3176. description: 变电站ID
  3177. type: integer
  3178. format: int64
  3179. - in: query
  3180. name: name
  3181. description: 名称
  3182. type: string
  3183. - in: query
  3184. name: start_time
  3185. description: 检测开始日期。格式:yyyy-mm-dd
  3186. type: string
  3187. - in: query
  3188. name: end_time
  3189. description: 检测结束日期。格式:yyyy-mm-dd
  3190. type: string
  3191. - in: query
  3192. name: state
  3193. description: 检测状态。空:全部 0:未检查 1:检测中 2:检测结束 3:异常中断
  3194. type: integer
  3195. format: int64
  3196. responses:
  3197. "200":
  3198. description: 成功
  3199. schema:
  3200. $ref: '#/definitions/ResultOK'
  3201. "500":
  3202. description: '{object} ResultError 失败'
  3203. /task/save:
  3204. post:
  3205. tags:
  3206. - scd_check_tools/controllersTaskController
  3207. summary: 创建新的检测任务
  3208. description: 创建新的检测任务
  3209. parameters:
  3210. - in: formData
  3211. name: id
  3212. description: 任务ID。指定id值大于0时为编辑操作;否则为新增操作
  3213. type: integer
  3214. format: int64
  3215. - in: formData
  3216. name: name
  3217. description: 任务名称
  3218. type: string
  3219. - in: formData
  3220. name: station_id
  3221. description: 变电站ID
  3222. type: integer
  3223. format: int64
  3224. - in: formData
  3225. name: memo
  3226. description: 任务说明
  3227. type: string
  3228. - in: formData
  3229. name: report_id
  3230. description: 报告模板ID
  3231. type: integer
  3232. format: int64
  3233. - in: formData
  3234. name: scd_id
  3235. description: SCD文件ID
  3236. type: integer
  3237. format: int64
  3238. - in: formData
  3239. name: modelids
  3240. description: 检测模型ID。多个模型id之间逗号分隔
  3241. type: string
  3242. responses:
  3243. "200":
  3244. description: 成功
  3245. schema:
  3246. $ref: '#/definitions/ResultOK'
  3247. "500":
  3248. description: '{object} ResultError 失败'
  3249. /task/start:
  3250. post:
  3251. tags:
  3252. - scd_check_tools/controllersTaskController
  3253. summary: 开始进行检测
  3254. description: 开始进行检测
  3255. parameters:
  3256. - in: formData
  3257. name: id
  3258. description: 检测任务ID
  3259. required: true
  3260. type: integer
  3261. format: int64
  3262. responses:
  3263. "200":
  3264. description: 成功
  3265. schema:
  3266. $ref: '#/definitions/ResultOK'
  3267. "500":
  3268. description: '{object} ResultError 失败'
  3269. /task/stop:
  3270. post:
  3271. tags:
  3272. - scd_check_tools/controllersTaskController
  3273. summary: 取消或者终止检测
  3274. description: 取消或者终止检测
  3275. parameters:
  3276. - in: formData
  3277. name: id
  3278. description: 检测任务ID
  3279. required: true
  3280. type: integer
  3281. format: int64
  3282. responses:
  3283. "200":
  3284. description: 成功
  3285. schema:
  3286. $ref: '#/definitions/ResultOK'
  3287. "500":
  3288. description: '{object} ResultError 失败'
  3289. /test:
  3290. get:
  3291. tags:
  3292. - scd_check_tools/controllersTestController
  3293. summary: 这是一个测试接口
  3294. description: 这是一个测试接口
  3295. /uploadfile:
  3296. post:
  3297. tags:
  3298. - scd_check_tools/controllersAttachmentController
  3299. summary: 上传文件
  3300. description: 上传文件
  3301. parameters:
  3302. - in: formData
  3303. name: file
  3304. description: 文件流
  3305. required: true
  3306. type: file
  3307. - in: formData
  3308. name: station_id
  3309. description: 变电站ID
  3310. required: true
  3311. type: integer
  3312. format: int64
  3313. - in: formData
  3314. name: is_checkin
  3315. description: 是否是管控文档
  3316. type: integer
  3317. format: int64
  3318. - in: formData
  3319. name: data_type
  3320. description: 业务类型。值为:a_scd|ccd|icd|cid|空。
  3321. type: string
  3322. - in: formData
  3323. name: attachment_type
  3324. description: 文件类别。值关联系统字典file_types或者为空。
  3325. type: string
  3326. responses:
  3327. "200":
  3328. description: 成功
  3329. schema:
  3330. $ref: '#/definitions/ResultOK'
  3331. "500":
  3332. description: '{object} ResultError 失败'
  3333. /version/check_client:
  3334. get:
  3335. tags:
  3336. - scd_check_tools/upgradeVersionController
  3337. summary: 获取最新客户端版本下载地址
  3338. /version/isnew:
  3339. get:
  3340. tags:
  3341. - scd_check_tools/upgradeVersionController
  3342. summary: 检查是否有新的客户端版本
  3343. expTableData:
  3344. post:
  3345. tags:
  3346. - scd_check_tools/controllersApiController
  3347. summary: Excel数据导出
  3348. description: Excel数据导出。导出成功时将返回导出文件的下载地址。
  3349. parameters:
  3350. - in: query
  3351. name: code
  3352. description: 业务类型。值为:scd-comp-result(差异对比结果)\scl-check-result(SCL校验结果)之一
  3353. required: true
  3354. type: string
  3355. - in: query
  3356. name: caption
  3357. description: 数据标题
  3358. type: string
  3359. - in: query
  3360. name: expcols
  3361. description: 导出的数据列,与expcolnames一一对应。从个数据列之间使用逗号分隔。未设置时将导出业务对应的所有列
  3362. type: string
  3363. - in: query
  3364. name: expcolnames
  3365. description: 导出的数据列对应的名称,与expcols一一一对应。从个数据列名之间使用逗号分隔。未设置时将导出业务对应的所有列
  3366. type: string
  3367. responses:
  3368. "200":
  3369. description: 成功
  3370. schema:
  3371. $ref: '#/definitions/ResultOK'
  3372. "500":
  3373. description: '{object} ResultError 失败'
  3374. definitions:
  3375. ResultError:
  3376. title: ResultError
  3377. type: object
  3378. ResultOK:
  3379. title: ResultOK
  3380. type: object
  3381. WarpOK:
  3382. title: WarpOK
  3383. type: object
  3384. tags:
  3385. - name: scd_check_tools/controllersApiController
  3386. description: |
  3387. 基础功能服务
  3388. - name: scd_check_tools/controllersTestController
  3389. description: |
  3390. 测试
  3391. - name: scd_check_tools/controllersExcelController
  3392. description: |
  3393. 文件/附件服务
  3394. - name: scd_check_tools/controllersScreenController
  3395. description: |
  3396. SCD服务
  3397. - name: scd_check_tools/controllersFlowController
  3398. description: |
  3399. 签入签出流程服务
  3400. - name: scd_check_tools/controllersAttachmentController
  3401. description: |
  3402. 文件/附件服务
  3403. - name: scd_check_tools/controllersRuleController
  3404. description: |
  3405. 校验规则管理服务
  3406. - name: scd_check_tools/controllersStatController
  3407. description: |
  3408. 统计分析服务
  3409. - name: scd_check_tools/controllersScdCompController
  3410. description: |
  3411. 一致性校验服务
  3412. - name: scd_check_tools/controllersNoticeController
  3413. description: |
  3414. 通知提醒服务
  3415. - name: scd_check_tools/controllersTaskController
  3416. description: |
  3417. 检测任务服务