swagger.yml 126 KB

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