swagger.yml 123 KB

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