swagger.yml 123 KB

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