swagger.yml 114 KB

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