swagger.yml 119 KB

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