swagger.yml 117 KB

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