swagger.yml 121 KB

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