swagger.yml 124 KB

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