swagger.yml 122 KB

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