swagger.yml 101 KB

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