swagger.yml 120 KB

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