swagger.yml 118 KB

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