swagger.yml 127 KB

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