swagger.json 140 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "电力测温项目API",
  5. "description": "电力测温项目接口文档。本文档仅用于本项目的前端接口说明\u003cbr\u003e\u003cspan style='color:red;font-size:16px;'\u003e*****实际使用接口时,均需要将用户登录token通过header进行提交*****\u003c/span\u003e",
  6. "version": "1.0.0",
  7. "contact": {
  8. "email": "3116246@qq.com"
  9. }
  10. },
  11. "basePath": "/api/",
  12. "paths": {
  13. "/alarm/confirm": {
  14. "post": {
  15. "tags": [
  16. "alarm"
  17. ],
  18. "summary": "对告警记录进行确认",
  19. "description": "对告警记录进行确认,确认时要以填确认意见",
  20. "parameters": [
  21. {
  22. "in": "query",
  23. "name": "id",
  24. "description": "需要确认的告警记录ID",
  25. "required": true,
  26. "type": "integer",
  27. "format": "int64"
  28. },
  29. {
  30. "in": "query",
  31. "name": "content",
  32. "description": "确认的用户填写的内容",
  33. "type": "string"
  34. },
  35. {
  36. "in": "query",
  37. "name": "eventid",
  38. "description": "需要确认的告警事件ID",
  39. "required": true,
  40. "type": "integer",
  41. "format": "int64"
  42. }
  43. ],
  44. "responses": {
  45. "200": {
  46. "description": "成功",
  47. "schema": {
  48. "$ref": "#/definitions/ApiOK"
  49. }
  50. },
  51. "500": {
  52. "description": "status 失败"
  53. }
  54. }
  55. }
  56. },
  57. "/alarm/data_list": {
  58. "get": {
  59. "tags": [
  60. "alarm"
  61. ]
  62. }
  63. },
  64. "/alarm/delete": {
  65. "post": {
  66. "tags": [
  67. "alarm"
  68. ]
  69. }
  70. },
  71. "/alarm/detail": {
  72. "get": {
  73. "tags": [
  74. "alarm"
  75. ]
  76. }
  77. },
  78. "/alarm/edit": {
  79. "post": {
  80. "tags": [
  81. "alarm"
  82. ]
  83. }
  84. },
  85. "/alarm/list": {
  86. "get": {
  87. "tags": [
  88. "alarm"
  89. ]
  90. },
  91. "post": {
  92. "tags": [
  93. "alarm"
  94. ]
  95. }
  96. },
  97. "/alarm/now": {
  98. "get": {
  99. "tags": [
  100. "alarm"
  101. ]
  102. }
  103. },
  104. "/alarminfohis/confirm": {
  105. "post": {
  106. "tags": [
  107. "alarminfohis"
  108. ],
  109. "summary": "用户告警确认",
  110. "description": "用户告警确认",
  111. "parameters": [
  112. {
  113. "in": "query",
  114. "name": "id",
  115. "description": "告警信息ID",
  116. "required": true,
  117. "type": "integer",
  118. "format": "int64"
  119. }
  120. ]
  121. }
  122. },
  123. "/alarminfohis/query": {
  124. "get": {
  125. "tags": [
  126. "alarminfohis"
  127. ],
  128. "summary": "告警详情列表查询",
  129. "description": "告警详情列表查询.根据查询条件返回查询结果",
  130. "parameters": [
  131. {
  132. "in": "query",
  133. "name": "pageInex",
  134. "description": "页数.",
  135. "required": true,
  136. "type": "integer",
  137. "format": "int64"
  138. },
  139. {
  140. "in": "query",
  141. "name": "pageSize",
  142. "description": "每页记录数.",
  143. "required": true,
  144. "type": "integer",
  145. "format": "int64"
  146. },
  147. {
  148. "in": "query",
  149. "name": "alarm_level",
  150. "description": "告警等级.",
  151. "required": true,
  152. "type": "integer",
  153. "format": "int64"
  154. },
  155. {
  156. "in": "query",
  157. "name": "mpname",
  158. "description": "测点名称.",
  159. "required": true,
  160. "type": "string"
  161. },
  162. {
  163. "in": "query",
  164. "name": "alarmDesc",
  165. "description": "告警描述.",
  166. "required": true,
  167. "type": "string"
  168. },
  169. {
  170. "in": "query",
  171. "name": "beginTime",
  172. "description": "开始时间",
  173. "required": true,
  174. "type": "string"
  175. },
  176. {
  177. "in": "query",
  178. "name": "endTime",
  179. "description": "结束时间",
  180. "required": true,
  181. "type": "string"
  182. }
  183. ]
  184. }
  185. },
  186. "/alarminfohis/stat/strategy_total/echarts": {
  187. "get": {
  188. "tags": [
  189. "alarminfohis"
  190. ],
  191. "summary": "按策略分类统计告警总数",
  192. "description": "按策略分类统计告警总数.并返回echarts柱状图格式数据,格式为:{\"legend\":[],\"data\":[]}",
  193. "parameters": [
  194. {
  195. "in": "query",
  196. "name": "device_id",
  197. "description": "设备ID",
  198. "type": "integer",
  199. "format": "int64"
  200. },
  201. {
  202. "in": "query",
  203. "name": "area_id",
  204. "description": "区域ID",
  205. "type": "integer",
  206. "format": "int64"
  207. }
  208. ]
  209. }
  210. },
  211. "/alarminfohis/stat/total": {
  212. "get": {
  213. "tags": [
  214. "alarminfohis"
  215. ],
  216. "summary": "告警总数汇总统计",
  217. "description": "告警总数汇总统计.统计结果包括总数、月总数、周总数、当前日总数",
  218. "parameters": [
  219. {
  220. "in": "query",
  221. "name": "device_id",
  222. "description": "设备ID",
  223. "type": "integer",
  224. "format": "int64"
  225. },
  226. {
  227. "in": "query",
  228. "name": "area_id",
  229. "description": "区域ID",
  230. "type": "integer",
  231. "format": "int64"
  232. }
  233. ]
  234. }
  235. },
  236. "/alarmtactics/absdel": {
  237. "post": {
  238. "tags": [
  239. "alarmtactics"
  240. ],
  241. "summary": "删除绝对值告警信息",
  242. "description": "删除绝对值告警信息和对应的测点",
  243. "parameters": [
  244. {
  245. "in": "query",
  246. "name": "id",
  247. "description": "告警信息id",
  248. "required": true,
  249. "type": "integer",
  250. "format": "int64"
  251. }
  252. ]
  253. }
  254. },
  255. "/alarmtactics/abslist": {
  256. "get": {
  257. "tags": [
  258. "alarmtactics"
  259. ],
  260. "summary": "获取绝对值告警列表",
  261. "description": "获取绝对值告警列表",
  262. "responses": {
  263. "200": {
  264. "description": "服务访问成功",
  265. "schema": {
  266. "$ref": "#/definitions/ApiOK|ApiError"
  267. }
  268. },
  269. "401": {
  270. "description": "status 认证未通过,一般是未指定token或token已失效"
  271. },
  272. "500": {
  273. "description": "status 服务器|后台发生错误"
  274. }
  275. }
  276. }
  277. },
  278. "/alarmtactics/abssave": {
  279. "post": {
  280. "tags": [
  281. "alarmtactics"
  282. ],
  283. "summary": "保存绝对值告警信息",
  284. "description": "保存绝对值告警信息和对应的测点",
  285. "parameters": [
  286. {
  287. "in": "query",
  288. "name": "strategy_name",
  289. "description": "策略名称.",
  290. "required": true,
  291. "type": "integer",
  292. "format": "int64"
  293. },
  294. {
  295. "in": "query",
  296. "name": "alarm_level",
  297. "description": "告警等级.",
  298. "required": true,
  299. "type": "integer",
  300. "format": "int64"
  301. },
  302. {
  303. "in": "query",
  304. "name": "mod_name",
  305. "description": "模型名称.",
  306. "required": true,
  307. "type": "string"
  308. },
  309. {
  310. "in": "query",
  311. "name": "mod_id",
  312. "description": "模型id.",
  313. "required": true,
  314. "type": "integer",
  315. "format": "int64"
  316. },
  317. {
  318. "in": "query",
  319. "name": "operation_symbol",
  320. "description": "操作符号.",
  321. "required": true,
  322. "type": "string"
  323. },
  324. {
  325. "in": "query",
  326. "name": "threshold",
  327. "description": "阈值.",
  328. "required": true,
  329. "type": "integer",
  330. "format": "int64"
  331. },
  332. {
  333. "in": "query",
  334. "name": "mpjson",
  335. "description": "测点id和测点名称组成的k,v键值对数组的json字符串",
  336. "required": true,
  337. "type": "string"
  338. }
  339. ]
  340. }
  341. },
  342. "/alarmtactics/absupdate": {
  343. "post": {
  344. "tags": [
  345. "alarmtactics"
  346. ],
  347. "summary": "更新绝对值告警信息",
  348. "description": "更新绝对值告警信息和对应的测点",
  349. "parameters": [
  350. {
  351. "in": "query",
  352. "name": "id",
  353. "description": "id.",
  354. "required": true,
  355. "type": "integer",
  356. "format": "int64"
  357. },
  358. {
  359. "in": "query",
  360. "name": "strategy_name",
  361. "description": "策略名称.",
  362. "required": true,
  363. "type": "string"
  364. },
  365. {
  366. "in": "query",
  367. "name": "alarm_level",
  368. "description": "告警等级.",
  369. "required": true,
  370. "type": "integer",
  371. "format": "int64"
  372. },
  373. {
  374. "in": "query",
  375. "name": "mod_name",
  376. "description": "模型名称.",
  377. "required": true,
  378. "type": "string"
  379. },
  380. {
  381. "in": "query",
  382. "name": "mod_id",
  383. "description": "模型id.",
  384. "required": true,
  385. "type": "integer",
  386. "format": "int64"
  387. },
  388. {
  389. "in": "query",
  390. "name": "operation_symbol",
  391. "description": "操作符号.",
  392. "required": true,
  393. "type": "string"
  394. },
  395. {
  396. "in": "query",
  397. "name": "threshold",
  398. "description": "阈值.",
  399. "required": true,
  400. "type": "integer",
  401. "format": "int64"
  402. },
  403. {
  404. "in": "query",
  405. "name": "mpjson",
  406. "description": "测点id和测点名称组成的k,v键值对数组的json字符串",
  407. "required": true,
  408. "type": "string"
  409. }
  410. ]
  411. }
  412. },
  413. "/alarmtactics/risedel": {
  414. "post": {
  415. "tags": [
  416. "alarmtactics"
  417. ],
  418. "summary": "删除升温告警信息",
  419. "description": "删除升温告警信息和对应的测点",
  420. "parameters": [
  421. {
  422. "in": "query",
  423. "name": "id",
  424. "description": "告警信息id",
  425. "required": true,
  426. "type": "integer",
  427. "format": "int64"
  428. }
  429. ]
  430. }
  431. },
  432. "/alarmtactics/riselist": {
  433. "get": {
  434. "tags": [
  435. "alarmtactics"
  436. ],
  437. "summary": "获取升温告警列表",
  438. "description": "获取升温告警列表",
  439. "responses": {
  440. "200": {
  441. "description": "服务访问成功",
  442. "schema": {
  443. "$ref": "#/definitions/ApiOK|ApiError"
  444. }
  445. },
  446. "401": {
  447. "description": "status 认证未通过,一般是未指定token或token已失效"
  448. },
  449. "500": {
  450. "description": "status 服务器|后台发生错误"
  451. }
  452. }
  453. }
  454. },
  455. "/alarmtactics/risesave": {
  456. "post": {
  457. "tags": [
  458. "alarmtactics"
  459. ],
  460. "summary": "保存升温告警信息",
  461. "description": "保存升温告警信息和对应的测点",
  462. "parameters": [
  463. {
  464. "in": "query",
  465. "name": "strategy_name",
  466. "description": "策略名称.",
  467. "required": true,
  468. "type": "string"
  469. },
  470. {
  471. "in": "query",
  472. "name": "alarm_level",
  473. "description": "告警等级.",
  474. "required": true,
  475. "type": "integer",
  476. "format": "int64"
  477. },
  478. {
  479. "in": "query",
  480. "name": "mod_name",
  481. "description": "模型名称.",
  482. "required": true,
  483. "type": "string"
  484. },
  485. {
  486. "in": "query",
  487. "name": "mod_id",
  488. "description": "模型id.",
  489. "required": true,
  490. "type": "integer",
  491. "format": "int64"
  492. },
  493. {
  494. "in": "query",
  495. "name": "upcycle",
  496. "description": "上升周期.",
  497. "required": true,
  498. "type": "integer",
  499. "format": "int64"
  500. },
  501. {
  502. "in": "query",
  503. "name": "scope",
  504. "description": "阈值.",
  505. "required": true,
  506. "type": "integer",
  507. "format": "int64"
  508. },
  509. {
  510. "in": "query",
  511. "name": "mpjson",
  512. "description": "测点id和测点名称组成的k,v键值对数组的json字符串",
  513. "required": true,
  514. "type": "string"
  515. }
  516. ]
  517. }
  518. },
  519. "/alarmtactics/riseupdate": {
  520. "post": {
  521. "tags": [
  522. "alarmtactics"
  523. ],
  524. "summary": "更新升温告警信息",
  525. "description": "更新升温告警信息和对应的测点",
  526. "parameters": [
  527. {
  528. "in": "query",
  529. "name": "id",
  530. "description": "id.",
  531. "required": true,
  532. "type": "integer",
  533. "format": "int64"
  534. },
  535. {
  536. "in": "query",
  537. "name": "strategy_name",
  538. "description": "策略名称.",
  539. "required": true,
  540. "type": "string"
  541. },
  542. {
  543. "in": "query",
  544. "name": "alarm_level",
  545. "description": "告警等级.",
  546. "required": true,
  547. "type": "integer",
  548. "format": "int64"
  549. },
  550. {
  551. "in": "query",
  552. "name": "mod_name",
  553. "description": "模型名称.",
  554. "required": true,
  555. "type": "string"
  556. },
  557. {
  558. "in": "query",
  559. "name": "mod_id",
  560. "description": "模型id.",
  561. "required": true,
  562. "type": "integer",
  563. "format": "int64"
  564. },
  565. {
  566. "in": "query",
  567. "name": "upcycle",
  568. "description": "上升周期.",
  569. "required": true,
  570. "type": "integer",
  571. "format": "int64"
  572. },
  573. {
  574. "in": "query",
  575. "name": "scope",
  576. "description": "阈值.",
  577. "required": true,
  578. "type": "integer",
  579. "format": "int64"
  580. },
  581. {
  582. "in": "query",
  583. "name": "mpjson",
  584. "description": "测点id和测点名称组成的k,v键值对数组的json字符串",
  585. "required": true,
  586. "type": "string"
  587. }
  588. ]
  589. }
  590. },
  591. "/alarmtactics/unbalancedel": {
  592. "post": {
  593. "tags": [
  594. "alarmtactics"
  595. ],
  596. "summary": "删除温度不平衡告警",
  597. "description": "删除温度不平衡告警",
  598. "parameters": [
  599. {
  600. "in": "query",
  601. "name": "id",
  602. "description": "告警信息id",
  603. "required": true,
  604. "type": "integer",
  605. "format": "int64"
  606. }
  607. ]
  608. }
  609. },
  610. "/alarmtactics/unbalancelist": {
  611. "get": {
  612. "tags": [
  613. "alarmtactics"
  614. ],
  615. "summary": "获取温度不平衡告警列表",
  616. "description": "获取温度不平衡告警列表",
  617. "responses": {
  618. "200": {
  619. "description": "服务访问成功",
  620. "schema": {
  621. "$ref": "#/definitions/ApiOK|ApiError"
  622. }
  623. },
  624. "401": {
  625. "description": "status 认证未通过,一般是未指定token或token已失效"
  626. },
  627. "500": {
  628. "description": "status 服务器|后台发生错误"
  629. }
  630. }
  631. }
  632. },
  633. "/alarmtactics/unbalancesave": {
  634. "post": {
  635. "tags": [
  636. "alarmtactics"
  637. ],
  638. "summary": "保存温度不平衡告警信息",
  639. "description": "保存温度不平衡告警信息",
  640. "parameters": [
  641. {
  642. "in": "query",
  643. "name": "strategy_name",
  644. "description": "策略名称.",
  645. "required": true,
  646. "type": "string"
  647. },
  648. {
  649. "in": "query",
  650. "name": "alarm_level",
  651. "description": "告警等级.",
  652. "required": true,
  653. "type": "integer",
  654. "format": "int64"
  655. },
  656. {
  657. "in": "query",
  658. "name": "operation_symbol",
  659. "description": "操作符号.",
  660. "required": true,
  661. "type": "string"
  662. },
  663. {
  664. "in": "query",
  665. "name": "threshold",
  666. "description": "阈值.",
  667. "required": true,
  668. "type": "integer",
  669. "format": "int64"
  670. }
  671. ]
  672. }
  673. },
  674. "/alarmtactics/unbalanceupdate": {
  675. "post": {
  676. "tags": [
  677. "alarmtactics"
  678. ],
  679. "summary": "更新温度不平衡告警信息",
  680. "description": "更新温度不平衡告警信息",
  681. "parameters": [
  682. {
  683. "in": "query",
  684. "name": "id",
  685. "description": "id.",
  686. "required": true,
  687. "type": "integer",
  688. "format": "int64"
  689. },
  690. {
  691. "in": "query",
  692. "name": "strategy_name",
  693. "description": "策略名称.",
  694. "required": true,
  695. "type": "string"
  696. },
  697. {
  698. "in": "query",
  699. "name": "alarm_level",
  700. "description": "告警等级.",
  701. "required": true,
  702. "type": "integer",
  703. "format": "int64"
  704. },
  705. {
  706. "in": "query",
  707. "name": "operation_symbol",
  708. "description": "操作符号.",
  709. "required": true,
  710. "type": "string"
  711. },
  712. {
  713. "in": "query",
  714. "name": "threshold",
  715. "description": "阈值.",
  716. "required": true,
  717. "type": "integer",
  718. "format": "int64"
  719. }
  720. ]
  721. }
  722. },
  723. "/app/list": {
  724. "get": {
  725. "tags": [
  726. "app"
  727. ],
  728. "summary": "获取变电管理框架中已注册的应用列表",
  729. "description": "获取变电管理框架中已注册的应用列表",
  730. "responses": {
  731. "200": {
  732. "description": "错误",
  733. "schema": {
  734. "$ref": "#/definitions/ApiError"
  735. }
  736. },
  737. "500": {
  738. "description": "status 失败"
  739. }
  740. }
  741. }
  742. },
  743. "/app/user/role": {
  744. "get": {
  745. "tags": [
  746. "app"
  747. ],
  748. "summary": "获取用户信息",
  749. "description": "获取指定token的用户信息",
  750. "parameters": [
  751. {
  752. "in": "query",
  753. "name": "token",
  754. "description": "管理app分配的当前登录的TOKEN",
  755. "required": true,
  756. "type": "string"
  757. }
  758. ],
  759. "responses": {
  760. "200": {
  761. "description": "错误",
  762. "schema": {
  763. "$ref": "#/definitions/ApiError"
  764. }
  765. },
  766. "500": {
  767. "description": "status 失败"
  768. }
  769. }
  770. }
  771. },
  772. "/base/clearData": {
  773. "post": {
  774. "tags": [
  775. "base"
  776. ],
  777. "summary": "物理清除指定数据表的数据",
  778. "description": "物理清除指定数据表的数据。数据为物理删除,谨慎调用!",
  779. "parameters": [
  780. {
  781. "in": "query",
  782. "name": "dtype",
  783. "description": "表名称。",
  784. "required": true,
  785. "type": "string"
  786. },
  787. {
  788. "in": "query",
  789. "name": "day",
  790. "description": "需要数据保留的最近天数。默认为7天",
  791. "type": "string"
  792. }
  793. ],
  794. "responses": {
  795. "200": {
  796. "description": "错误",
  797. "schema": {
  798. "$ref": "#/definitions/ApiError"
  799. }
  800. },
  801. "500": {
  802. "description": "status 失败"
  803. }
  804. }
  805. }
  806. },
  807. "/base/createuser": {
  808. "post": {
  809. "tags": [
  810. "base"
  811. ]
  812. }
  813. },
  814. "/base/deleteGlobalcode": {
  815. "post": {
  816. "tags": [
  817. "base"
  818. ],
  819. "summary": "删除系统常量字典码定义",
  820. "description": "删除系统常量字典码定义。如果指定代码有下级代码将会一并删除",
  821. "parameters": [
  822. {
  823. "in": "query",
  824. "name": "code",
  825. "description": "需要删除的字典编码",
  826. "required": true,
  827. "type": "string"
  828. }
  829. ],
  830. "responses": {
  831. "200": {
  832. "description": "错误",
  833. "schema": {
  834. "$ref": "#/definitions/ApiError"
  835. }
  836. },
  837. "500": {
  838. "description": "status 失败"
  839. }
  840. }
  841. }
  842. },
  843. "/base/deleteUser": {
  844. "post": {
  845. "tags": [
  846. "base"
  847. ],
  848. "summary": "删除指定用户",
  849. "description": "删除指定用户。谨慎操作!",
  850. "parameters": [
  851. {
  852. "in": "query",
  853. "name": "id",
  854. "description": "用户ID",
  855. "required": true,
  856. "type": "string"
  857. }
  858. ],
  859. "responses": {
  860. "200": {
  861. "description": "错误",
  862. "schema": {
  863. "$ref": "#/definitions/ApiError"
  864. }
  865. },
  866. "500": {
  867. "description": "status 失败"
  868. }
  869. }
  870. }
  871. },
  872. "/base/getGlobalCode": {
  873. "get": {
  874. "tags": [
  875. "base"
  876. ],
  877. "summary": "获取系统常量字典码定义",
  878. "description": "获取系统常量字典码定义。",
  879. "parameters": [
  880. {
  881. "in": "query",
  882. "name": "pcode",
  883. "description": "根据指定代码获取其级子码定义",
  884. "type": "string"
  885. },
  886. {
  887. "in": "query",
  888. "name": "code",
  889. "description": "根据指定代码的定义",
  890. "type": "string"
  891. },
  892. {
  893. "in": "query",
  894. "name": "pageindex",
  895. "description": "当前分页页码.默认为第1页",
  896. "type": "integer",
  897. "format": "int64"
  898. },
  899. {
  900. "in": "query",
  901. "name": "pagesize",
  902. "description": "当前每页记录数。默认为20",
  903. "type": "integer",
  904. "format": "int64"
  905. }
  906. ],
  907. "responses": {
  908. "200": {
  909. "description": "错误",
  910. "schema": {
  911. "$ref": "#/definitions/ApiError"
  912. }
  913. },
  914. "500": {
  915. "description": "status 失败"
  916. }
  917. }
  918. }
  919. },
  920. "/base/getRoleFuncList": {
  921. "get": {
  922. "tags": [
  923. "base"
  924. ],
  925. "summary": "查询角色与功能资源可访问关系",
  926. "description": "查询角色与功能资源可访问关系。",
  927. "parameters": [
  928. {
  929. "in": "query",
  930. "name": "roleid",
  931. "description": "角色ID",
  932. "required": true,
  933. "type": "string"
  934. }
  935. ],
  936. "responses": {
  937. "200": {
  938. "description": "错误",
  939. "schema": {
  940. "$ref": "#/definitions/ApiError"
  941. }
  942. },
  943. "500": {
  944. "description": "status 失败"
  945. }
  946. }
  947. }
  948. },
  949. "/base/getSysParamList": {
  950. "get": {
  951. "tags": [
  952. "base"
  953. ],
  954. "summary": "获取系统参数定义",
  955. "description": "获取系统参数定义。",
  956. "parameters": [
  957. {
  958. "in": "query",
  959. "name": "name",
  960. "description": "系统参数代码名称。为空时获取所有参数定义。",
  961. "type": "string"
  962. }
  963. ],
  964. "responses": {
  965. "200": {
  966. "description": "错误",
  967. "schema": {
  968. "$ref": "#/definitions/ApiError"
  969. }
  970. },
  971. "500": {
  972. "description": "status 失败"
  973. }
  974. }
  975. }
  976. },
  977. "/base/getSyslogList": {
  978. "get": {
  979. "tags": [
  980. "base"
  981. ],
  982. "summary": "查询系统操作日志",
  983. "description": "查询系统操作日志。",
  984. "parameters": [
  985. {
  986. "in": "query",
  987. "name": "startdate",
  988. "description": "查询的开始时间。格式为:yyyy-mm-dd HH:mi:ss。默认为当前天的0点",
  989. "type": "string"
  990. },
  991. {
  992. "in": "query",
  993. "name": "enddate",
  994. "description": "查询的结束时间。格式为:yyyy-mm-dd HH:mi:ss。默认为当前天的23:59:59",
  995. "type": "string"
  996. },
  997. {
  998. "in": "query",
  999. "name": "description",
  1000. "description": "查询的日志内容。模糊匹配。",
  1001. "type": "string"
  1002. },
  1003. {
  1004. "in": "query",
  1005. "name": "success",
  1006. "description": "日志操作结果。仅支持0或1。",
  1007. "type": "string"
  1008. },
  1009. {
  1010. "in": "query",
  1011. "name": "logtype",
  1012. "description": "查询的日志操作类型。仅支持系统字典代码log_opttype定义的code值。",
  1013. "type": "string"
  1014. },
  1015. {
  1016. "in": "query",
  1017. "name": "audittype",
  1018. "description": "查询的日志审计类型。仅支持系统字典代码log_audittype定义的code值。",
  1019. "type": "string"
  1020. },
  1021. {
  1022. "in": "query",
  1023. "name": "eventtype",
  1024. "description": "查询的事件类型。仅支持系统字典代码eventtype定义的code值。",
  1025. "type": "string"
  1026. },
  1027. {
  1028. "in": "query",
  1029. "name": "eventlevel",
  1030. "description": "查询的事件等级。仅支持系统字典代码eventlevel定义的code值。",
  1031. "type": "string"
  1032. },
  1033. {
  1034. "in": "query",
  1035. "name": "pageindex",
  1036. "description": "当前分页页码.默认为第1页",
  1037. "type": "integer",
  1038. "format": "int64"
  1039. },
  1040. {
  1041. "in": "query",
  1042. "name": "pagesize",
  1043. "description": "当前每页记录数。默认为20",
  1044. "type": "integer",
  1045. "format": "int64"
  1046. }
  1047. ],
  1048. "responses": {
  1049. "200": {
  1050. "description": "错误",
  1051. "schema": {
  1052. "$ref": "#/definitions/ApiError"
  1053. }
  1054. },
  1055. "500": {
  1056. "description": "status 失败"
  1057. }
  1058. }
  1059. }
  1060. },
  1061. "/base/getUser": {
  1062. "get": {
  1063. "tags": [
  1064. "base"
  1065. ]
  1066. },
  1067. "post": {
  1068. "tags": [
  1069. "base"
  1070. ]
  1071. }
  1072. },
  1073. "/base/getUserPrivList": {
  1074. "get": {
  1075. "tags": [
  1076. "base"
  1077. ]
  1078. }
  1079. },
  1080. "/base/getVersion": {
  1081. "get": {
  1082. "tags": [
  1083. "base"
  1084. ],
  1085. "summary": "获取当前系统的版本号",
  1086. "description": "获取当前系统的版本号",
  1087. "responses": {
  1088. "200": {
  1089. "description": "错误",
  1090. "schema": {
  1091. "$ref": "#/definitions/ApiError"
  1092. }
  1093. },
  1094. "500": {
  1095. "description": "status 失败"
  1096. }
  1097. }
  1098. }
  1099. },
  1100. "/base/keep-alive": {
  1101. "post": {
  1102. "tags": [
  1103. "base"
  1104. ],
  1105. "summary": "心跳保活",
  1106. "description": "心跳保活。特殊应用场景下用于token自动续期。",
  1107. "responses": {
  1108. "200": {
  1109. "description": "错误",
  1110. "schema": {
  1111. "$ref": "#/definitions/ApiError"
  1112. }
  1113. },
  1114. "500": {
  1115. "description": "status 失败"
  1116. }
  1117. }
  1118. }
  1119. },
  1120. "/base/login": {
  1121. "post": {
  1122. "tags": [
  1123. "base"
  1124. ],
  1125. "summary": "用户登录",
  1126. "description": "用户登录。集成变电框架时,无需调用此接口。",
  1127. "parameters": [
  1128. {
  1129. "in": "query",
  1130. "name": "login_account",
  1131. "description": "用户帐号",
  1132. "required": true,
  1133. "type": "string"
  1134. },
  1135. {
  1136. "in": "query",
  1137. "name": "pwd",
  1138. "description": "用户密码",
  1139. "required": true,
  1140. "type": "string"
  1141. }
  1142. ],
  1143. "responses": {
  1144. "200": {
  1145. "description": "错误",
  1146. "schema": {
  1147. "$ref": "#/definitions/ApiError"
  1148. }
  1149. },
  1150. "500": {
  1151. "description": "status 失败"
  1152. }
  1153. }
  1154. }
  1155. },
  1156. "/base/logout": {
  1157. "post": {
  1158. "tags": [
  1159. "base"
  1160. ],
  1161. "summary": "用户登出",
  1162. "description": "用户登出。集成变电框架时,无需调用此接口。",
  1163. "parameters": [
  1164. {
  1165. "in": "query",
  1166. "name": "sessionid",
  1167. "description": "登录用户的token",
  1168. "required": true,
  1169. "type": "string"
  1170. }
  1171. ],
  1172. "responses": {
  1173. "200": {
  1174. "description": "错误",
  1175. "schema": {
  1176. "$ref": "#/definitions/ApiError"
  1177. }
  1178. },
  1179. "500": {
  1180. "description": "status 失败"
  1181. }
  1182. }
  1183. }
  1184. },
  1185. "/base/playWav": {
  1186. "get": {
  1187. "tags": [
  1188. "base"
  1189. ],
  1190. "summary": "语音文件播放",
  1191. "description": "语音文件播放。仅支持windows系统。",
  1192. "parameters": [
  1193. {
  1194. "in": "query",
  1195. "name": "filename",
  1196. "description": "语音/录音文件名。需要将文件已上传到系统指定目录。",
  1197. "required": true,
  1198. "type": "string"
  1199. }
  1200. ],
  1201. "responses": {
  1202. "200": {
  1203. "description": "错误",
  1204. "schema": {
  1205. "$ref": "#/definitions/ApiError"
  1206. }
  1207. },
  1208. "500": {
  1209. "description": "status 失败"
  1210. }
  1211. }
  1212. }
  1213. },
  1214. "/base/resetUserPwd": {
  1215. "post": {
  1216. "tags": [
  1217. "base"
  1218. ],
  1219. "summary": "修改当前用户密码",
  1220. "description": "修改当前用户密码。一般用于用户修改自己的密码。",
  1221. "parameters": [
  1222. {
  1223. "in": "query",
  1224. "name": "newpwd",
  1225. "description": "新密码。需满足系统当前采用的密码规则",
  1226. "required": true,
  1227. "type": "string"
  1228. }
  1229. ],
  1230. "responses": {
  1231. "200": {
  1232. "description": "错误",
  1233. "schema": {
  1234. "$ref": "#/definitions/ApiError"
  1235. }
  1236. },
  1237. "500": {
  1238. "description": "status 失败"
  1239. }
  1240. }
  1241. }
  1242. },
  1243. "/base/saveGlobalcode": {
  1244. "post": {
  1245. "tags": [
  1246. "base"
  1247. ],
  1248. "summary": "保存系统常量字典码定义",
  1249. "description": "保存系统常量字典码定义。如果code已在存在,将对已有定义进行更新。",
  1250. "parameters": [
  1251. {
  1252. "in": "query",
  1253. "name": "name",
  1254. "description": "当前字典名称或者描述",
  1255. "required": true,
  1256. "type": "string"
  1257. },
  1258. {
  1259. "in": "query",
  1260. "name": "code",
  1261. "description": "当前字典编码",
  1262. "required": true,
  1263. "type": "string"
  1264. },
  1265. {
  1266. "in": "query",
  1267. "name": "parentcode",
  1268. "description": "当前字典编码的上级编码",
  1269. "required": true,
  1270. "type": "string"
  1271. }
  1272. ],
  1273. "responses": {
  1274. "200": {
  1275. "description": "错误",
  1276. "schema": {
  1277. "$ref": "#/definitions/ApiError"
  1278. }
  1279. },
  1280. "500": {
  1281. "description": "status 失败"
  1282. }
  1283. }
  1284. }
  1285. },
  1286. "/base/saveRoleFunc": {
  1287. "post": {
  1288. "tags": [
  1289. "base"
  1290. ],
  1291. "summary": "保存角色与功能资源可访问关系",
  1292. "description": "保存角色与功能资源可访问关系。",
  1293. "parameters": [
  1294. {
  1295. "in": "query",
  1296. "name": "roleid",
  1297. "description": "角色ID",
  1298. "required": true,
  1299. "type": "string"
  1300. },
  1301. {
  1302. "in": "query",
  1303. "name": "funcids",
  1304. "description": "资源功能编号ID。多个ID使用半角逗号分隔",
  1305. "required": true,
  1306. "type": "string"
  1307. }
  1308. ],
  1309. "responses": {
  1310. "200": {
  1311. "description": "错误",
  1312. "schema": {
  1313. "$ref": "#/definitions/ApiError"
  1314. }
  1315. },
  1316. "500": {
  1317. "description": "status 失败"
  1318. }
  1319. }
  1320. }
  1321. },
  1322. "/base/saveSysParam": {
  1323. "post": {
  1324. "tags": [
  1325. "base"
  1326. ],
  1327. "summary": "保存系统参数定义",
  1328. "description": "保存系统参数定义。",
  1329. "parameters": [
  1330. {
  1331. "in": "query",
  1332. "name": "param_name",
  1333. "description": "系统参数代码名称",
  1334. "required": true,
  1335. "type": "string"
  1336. },
  1337. {
  1338. "in": "query",
  1339. "name": "param_value",
  1340. "description": "系统参数值",
  1341. "required": true,
  1342. "type": "string"
  1343. },
  1344. {
  1345. "in": "query",
  1346. "name": "param_memo",
  1347. "description": "系统参数描述",
  1348. "type": "string"
  1349. }
  1350. ],
  1351. "responses": {
  1352. "200": {
  1353. "description": "错误",
  1354. "schema": {
  1355. "$ref": "#/definitions/ApiError"
  1356. }
  1357. },
  1358. "500": {
  1359. "description": "status 失败"
  1360. }
  1361. }
  1362. }
  1363. },
  1364. "/base/saveUser": {
  1365. "post": {
  1366. "tags": [
  1367. "base"
  1368. ]
  1369. }
  1370. },
  1371. "/base/saveUserPrivList": {
  1372. "post": {
  1373. "tags": [
  1374. "base"
  1375. ]
  1376. }
  1377. },
  1378. "/base/searchUserInfo": {
  1379. "get": {
  1380. "tags": [
  1381. "base"
  1382. ]
  1383. }
  1384. },
  1385. "/blacklist/delblacklist": {
  1386. "post": {
  1387. "tags": [
  1388. "blacklist"
  1389. ],
  1390. "summary": "删除黑名单主记录和明细记录",
  1391. "description": "通过设备id删除黑名单主记录和明细记录",
  1392. "parameters": [
  1393. {
  1394. "in": "query",
  1395. "name": "deviceid",
  1396. "description": "设备id必填",
  1397. "required": true,
  1398. "type": "integer",
  1399. "format": "int64"
  1400. }
  1401. ]
  1402. }
  1403. },
  1404. "/blacklist/list": {
  1405. "get": {
  1406. "tags": [
  1407. "blacklist"
  1408. ],
  1409. "summary": "获取黑名单列表",
  1410. "description": "获取黑名单列表。返回黑名单主信息和测点明细信息",
  1411. "responses": {
  1412. "200": {
  1413. "description": "服务访问成功",
  1414. "schema": {
  1415. "$ref": "#/definitions/ApiOK|ApiError"
  1416. }
  1417. },
  1418. "401": {
  1419. "description": "status 认证未通过,一般是未指定token或token已失效"
  1420. },
  1421. "500": {
  1422. "description": "status 服务器|后台发生错误"
  1423. }
  1424. }
  1425. }
  1426. },
  1427. "/blacklist/saveblacklist": {
  1428. "post": {
  1429. "tags": [
  1430. "blacklist"
  1431. ],
  1432. "summary": "保存黑名单列表信息",
  1433. "description": "保存黑名单基本信息和设备对应的测点",
  1434. "parameters": [
  1435. {
  1436. "in": "query",
  1437. "name": "deviceid",
  1438. "description": "设备ID必传.",
  1439. "required": true,
  1440. "type": "integer",
  1441. "format": "int64"
  1442. },
  1443. {
  1444. "in": "query",
  1445. "name": "area",
  1446. "description": "区域名称必填否则无法显示区域.",
  1447. "type": "string"
  1448. },
  1449. {
  1450. "in": "query",
  1451. "name": "devicename",
  1452. "description": "设备名称必填否则无法显示设备名称.",
  1453. "type": "string"
  1454. },
  1455. {
  1456. "in": "query",
  1457. "name": "devicecode",
  1458. "description": "设备code必填,否则无法显示设备编码.",
  1459. "type": "string"
  1460. },
  1461. {
  1462. "in": "query",
  1463. "name": "creator",
  1464. "description": "添加人必填,否则无法显示",
  1465. "type": "string"
  1466. },
  1467. {
  1468. "in": "query",
  1469. "name": "mplist",
  1470. "description": "按逗号分割的测点字符串",
  1471. "type": "string"
  1472. }
  1473. ],
  1474. "responses": {
  1475. "200": {
  1476. "description": "服务访问成功",
  1477. "schema": {
  1478. "$ref": "#/definitions/ApiOK|ApiError"
  1479. }
  1480. },
  1481. "401": {
  1482. "description": "status 认证未通过,一般是未指定token或token已失效"
  1483. },
  1484. "500": {
  1485. "description": "status 服务器|后台发生错误"
  1486. }
  1487. }
  1488. }
  1489. },
  1490. "/blacklist/updatemplist": {
  1491. "post": {
  1492. "tags": [
  1493. "blacklist"
  1494. ],
  1495. "summary": "修改黑名单测点列表信息",
  1496. "description": "修改黑名单测点列表信息",
  1497. "parameters": [
  1498. {
  1499. "in": "query",
  1500. "name": "deviceid",
  1501. "description": "设备ID必传.",
  1502. "required": true,
  1503. "type": "integer",
  1504. "format": "int64"
  1505. },
  1506. {
  1507. "in": "query",
  1508. "name": "mplist",
  1509. "description": "按逗号分割的测点字符串",
  1510. "type": "string"
  1511. }
  1512. ],
  1513. "responses": {
  1514. "200": {
  1515. "description": "服务访问成功",
  1516. "schema": {
  1517. "$ref": "#/definitions/ApiOK|ApiError"
  1518. }
  1519. },
  1520. "401": {
  1521. "description": "status 认证未通过,一般是未指定token或token已失效"
  1522. },
  1523. "500": {
  1524. "description": "status 服务器|后台发生错误"
  1525. }
  1526. }
  1527. }
  1528. },
  1529. "/comand/control": {
  1530. "post": {
  1531. "tags": [
  1532. "comand"
  1533. ]
  1534. }
  1535. },
  1536. "/comand/restart": {
  1537. "post": {
  1538. "tags": [
  1539. "comand"
  1540. ]
  1541. }
  1542. },
  1543. "/dataoptimize/delete/deletion_rule": {
  1544. "post": {
  1545. "tags": [
  1546. "dataoptimize"
  1547. ],
  1548. "summary": "删除指定设备的缺点数据优化规则",
  1549. "description": "删除指定设备的缺点数据优化规则",
  1550. "parameters": [
  1551. {
  1552. "in": "query",
  1553. "name": "deviceid",
  1554. "description": "设备ID",
  1555. "required": true,
  1556. "type": "integer",
  1557. "format": "int64"
  1558. }
  1559. ],
  1560. "responses": {
  1561. "200": {
  1562. "description": "服务访问成功",
  1563. "schema": {
  1564. "$ref": "#/definitions/ApiOK|ApiError"
  1565. }
  1566. },
  1567. "401": {
  1568. "description": "status 认证未通过,一般是未指定token或token已失效"
  1569. },
  1570. "500": {
  1571. "description": "status 服务器|后台发生错误"
  1572. }
  1573. }
  1574. }
  1575. },
  1576. "/dataoptimize/delete/invalid_rule": {
  1577. "post": {
  1578. "tags": [
  1579. "dataoptimize"
  1580. ],
  1581. "summary": "删除指定设备的无效数据优化规则",
  1582. "description": "删除指定设备的无效数据优化规则",
  1583. "parameters": [
  1584. {
  1585. "in": "query",
  1586. "name": "deviceid",
  1587. "description": "设备ID",
  1588. "required": true,
  1589. "type": "integer",
  1590. "format": "int64"
  1591. }
  1592. ],
  1593. "responses": {
  1594. "200": {
  1595. "description": "服务访问成功",
  1596. "schema": {
  1597. "$ref": "#/definitions/ApiOK|ApiError"
  1598. }
  1599. },
  1600. "401": {
  1601. "description": "status 认证未通过,一般是未指定token或token已失效"
  1602. },
  1603. "500": {
  1604. "description": "status 服务器|后台发生错误"
  1605. }
  1606. }
  1607. }
  1608. },
  1609. "/dataoptimize/edit": {
  1610. "post": {
  1611. "tags": [
  1612. "dataoptimize"
  1613. ],
  1614. "summary": "添加或编辑数据优化规则",
  1615. "description": "保存添加或编辑测点数据优化规则的提交数据",
  1616. "parameters": [
  1617. {
  1618. "in": "query",
  1619. "name": "optimizetype",
  1620. "description": "填充规则类型。invalid:无效数据填充,其cnf参数值格式样例:{Tem1:{attrname:Tem1,value:[-10,55]}} deletion:缺点数据填充,其cnf参数格式样例:[{attrname:Tem1,value:[{attrname:Tem2},{attrname:Tem3}]}]",
  1621. "required": true,
  1622. "type": "integer",
  1623. "format": "int64"
  1624. },
  1625. {
  1626. "in": "query",
  1627. "name": "cnf",
  1628. "description": "填充配置内容。JSON格式的序列化串.",
  1629. "type": "string"
  1630. },
  1631. {
  1632. "in": "query",
  1633. "name": "deviceid",
  1634. "description": "设备ID",
  1635. "type": "string"
  1636. },
  1637. {
  1638. "in": "query",
  1639. "name": "modelid",
  1640. "description": "模型ID",
  1641. "type": "string"
  1642. }
  1643. ],
  1644. "responses": {
  1645. "200": {
  1646. "description": "服务访问成功",
  1647. "schema": {
  1648. "$ref": "#/definitions/ApiOK|ApiError"
  1649. }
  1650. },
  1651. "401": {
  1652. "description": "status 认证未通过,一般是未指定token或token已失效"
  1653. },
  1654. "500": {
  1655. "description": "status 服务器|后台发生错误"
  1656. }
  1657. }
  1658. }
  1659. },
  1660. "/dataoptimize/list": {
  1661. "get": {
  1662. "tags": [
  1663. "dataoptimize"
  1664. ],
  1665. "summary": "获取数据优化配置测点列表",
  1666. "description": "获取数据优化配置测点列表",
  1667. "parameters": [
  1668. {
  1669. "in": "query",
  1670. "name": "optimizetype",
  1671. "description": "填充规则类型。invalid:无效数据填充,其返回格式样例:{data:{Tem1:{attrname:Tem1,mpname:测点温度1,value:[-10,20]}},msg:操作成功,success:true} deletion:缺点数据填充,其返回格式样例:{data:[{attrname:Tem1,mpname:测点温度1,value:[{attrname:Tem2,mpname:温度2},{attrname:Tem3,mpname:温度3}]}],msg:操作成功,success:true}",
  1672. "required": true,
  1673. "type": "string"
  1674. },
  1675. {
  1676. "in": "query",
  1677. "name": "deviceid",
  1678. "description": "设备ID",
  1679. "type": "string"
  1680. },
  1681. {
  1682. "in": "query",
  1683. "name": "modelid",
  1684. "description": "模型ID",
  1685. "type": "string"
  1686. }
  1687. ],
  1688. "responses": {
  1689. "200": {
  1690. "description": "服务访问成功",
  1691. "schema": {
  1692. "$ref": "#/definitions/ApiOK|ApiError"
  1693. }
  1694. },
  1695. "401": {
  1696. "description": "status 认证未通过,一般是未指定token或token已失效"
  1697. },
  1698. "500": {
  1699. "description": "status 服务器|后台发生错误"
  1700. }
  1701. }
  1702. }
  1703. },
  1704. "/dataoptimize/rule_state/list": {
  1705. "get": {
  1706. "tags": [
  1707. "dataoptimize"
  1708. ],
  1709. "summary": "获取算法优化策略开启状态",
  1710. "description": "获取算法优化策略开启状态。包括以下状态字典:deletion_fill_rule(数据缺点填充规则)、deletion_fill_specifypoint(指定测点填充开启状态)、deletion_fill_randompoint(相邻测点填充开启状态)、invalid_fill_rule(无效数据填充规则)、invalid_show_rule(无效数据显示),以上状态字典值均为1或者0.",
  1711. "responses": {
  1712. "200": {
  1713. "description": "服务访问成功",
  1714. "schema": {
  1715. "$ref": "#/definitions/ApiOK|ApiError"
  1716. }
  1717. },
  1718. "401": {
  1719. "description": "status 认证未通过,一般是未指定token或token已失效"
  1720. },
  1721. "500": {
  1722. "description": "status 服务器|后台发生错误"
  1723. }
  1724. }
  1725. }
  1726. },
  1727. "/dataoptimize/rule_state/save": {
  1728. "post": {
  1729. "tags": [
  1730. "dataoptimize"
  1731. ],
  1732. "summary": "设置保存算法优化策略开启状态",
  1733. "description": "设置保存算法优化策略开启状态。包括以下状态字典:deletion_fill_rule(数据缺点填充规则)、deletion_fill_specifypoint(指定测点填充开启状态)、deletion_fill_randompoint(相邻测点填充开启状态)、invalid_fill_rule(无效数据填充规则)、invalid_show_rule(无效数据显示),以上状态字典值均为1或者0.",
  1734. "parameters": [
  1735. {
  1736. "in": "query",
  1737. "name": "rulecode",
  1738. "description": "规则代码。deletion_fill_rule(数据缺点填充规则)、deletion_fill_specifypoint(指定测点填充开启状态)、deletion_fill_randompoint(相邻测点填充开启状态)、invalid_fill_rule(无效数据填充规则)、invalid_show_rule(无效数据显示配置)",
  1739. "required": true,
  1740. "type": "string"
  1741. },
  1742. {
  1743. "in": "query",
  1744. "name": "value",
  1745. "description": "开启状态。仅支持1(启用)或0(禁用)",
  1746. "required": true,
  1747. "type": "string"
  1748. }
  1749. ],
  1750. "responses": {
  1751. "200": {
  1752. "description": "服务访问成功",
  1753. "schema": {
  1754. "$ref": "#/definitions/ApiOK|ApiError"
  1755. }
  1756. },
  1757. "401": {
  1758. "description": "status 认证未通过,一般是未指定token或token已失效"
  1759. },
  1760. "500": {
  1761. "description": "status 服务器|后台发生错误"
  1762. }
  1763. }
  1764. }
  1765. },
  1766. "/device/all": {
  1767. "get": {
  1768. "tags": [
  1769. "device"
  1770. ],
  1771. "summary": "获取所有设备详情信息列表",
  1772. "description": "获取所有设备详情信息列表。",
  1773. "responses": {
  1774. "200": {
  1775. "description": "服务访问成功",
  1776. "schema": {
  1777. "$ref": "#/definitions/ApiOK|ApiError"
  1778. }
  1779. },
  1780. "401": {
  1781. "description": "status 认证未通过,一般是未指定token或token已失效"
  1782. },
  1783. "500": {
  1784. "description": "status 服务器|后台发生错误"
  1785. }
  1786. }
  1787. }
  1788. },
  1789. "/device/area": {
  1790. "get": {
  1791. "tags": [
  1792. "device"
  1793. ]
  1794. }
  1795. },
  1796. "/device/comboxlist": {
  1797. "get": {
  1798. "tags": [
  1799. "device"
  1800. ],
  1801. "summary": "获取设备简单信息列表",
  1802. "description": "获取设备简单信息列表。仅返回设备ID和设备名称。",
  1803. "parameters": [
  1804. {
  1805. "in": "query",
  1806. "name": "deviceid",
  1807. "description": "测点所属的设备ID。",
  1808. "required": true,
  1809. "type": "integer",
  1810. "format": "int64"
  1811. }
  1812. ],
  1813. "responses": {
  1814. "200": {
  1815. "description": "服务访问成功",
  1816. "schema": {
  1817. "$ref": "#/definitions/ApiOK|ApiError"
  1818. }
  1819. },
  1820. "401": {
  1821. "description": "status 认证未通过,一般是未指定token或token已失效"
  1822. },
  1823. "500": {
  1824. "description": "status 服务器|后台发生错误"
  1825. }
  1826. }
  1827. }
  1828. },
  1829. "/device/controlid": {
  1830. "get": {
  1831. "tags": [
  1832. "device"
  1833. ]
  1834. },
  1835. "post": {
  1836. "tags": [
  1837. "device"
  1838. ]
  1839. }
  1840. },
  1841. "/device/delete": {
  1842. "post": {
  1843. "tags": [
  1844. "device"
  1845. ],
  1846. "summary": "删除设备",
  1847. "description": "删除设备。同时删除设备关联数据,包括关联的测点、控制点以及历史数据等",
  1848. "parameters": [
  1849. {
  1850. "in": "query",
  1851. "name": "deviceid",
  1852. "description": "测点所属的设备ID。",
  1853. "required": true,
  1854. "type": "integer",
  1855. "format": "int64"
  1856. }
  1857. ],
  1858. "responses": {
  1859. "200": {
  1860. "description": "服务访问成功",
  1861. "schema": {
  1862. "$ref": "#/definitions/ApiOK|ApiError"
  1863. }
  1864. },
  1865. "401": {
  1866. "description": "status 认证未通过,一般是未指定token或token已失效"
  1867. },
  1868. "500": {
  1869. "description": "status 服务器|后台发生错误"
  1870. }
  1871. }
  1872. }
  1873. },
  1874. "/device/detail": {
  1875. "get": {
  1876. "tags": [
  1877. "device"
  1878. ],
  1879. "summary": "获取指定设备的详情",
  1880. "description": "获取指定设备的详情,包含设备信息、测点信息、控制点信息",
  1881. "parameters": [
  1882. {
  1883. "in": "query",
  1884. "name": "deviceid",
  1885. "description": "设备ID",
  1886. "required": true,
  1887. "type": "string"
  1888. }
  1889. ],
  1890. "responses": {
  1891. "200": {
  1892. "description": "服务访问成功",
  1893. "schema": {
  1894. "$ref": "#/definitions/ApiOK|ApiError"
  1895. }
  1896. },
  1897. "401": {
  1898. "description": "status 认证未通过,一般是未指定token或token已失效"
  1899. },
  1900. "500": {
  1901. "description": "status 服务器|后台发生错误"
  1902. }
  1903. }
  1904. }
  1905. },
  1906. "/device/echarts_history": {
  1907. "get": {
  1908. "tags": [
  1909. "device"
  1910. ],
  1911. "summary": "历史数据EchartsLine数据获取。按Echarts Line要求格式返回结果。",
  1912. "description": "历史数据EchartsLine数据获取。按Echarts Line要求格式返回结果。",
  1913. "parameters": [
  1914. {
  1915. "in": "query",
  1916. "name": "deviceid",
  1917. "description": "查询条件:设备ID",
  1918. "required": true,
  1919. "type": "integer",
  1920. "format": "int64"
  1921. },
  1922. {
  1923. "in": "query",
  1924. "name": "attrnames",
  1925. "description": "查询条件:模型属性名,多个属性名使用逗号分隔,如Tem1,Tem2,...。attrnames与names不能同时为空",
  1926. "type": "string"
  1927. },
  1928. {
  1929. "in": "query",
  1930. "name": "names",
  1931. "description": "查询条件:测点名称,多个测点名使用逗号分隔,如触头1,触头2,...。attrnames与names不能同时为空",
  1932. "type": "string"
  1933. },
  1934. {
  1935. "in": "query",
  1936. "name": "starttime",
  1937. "description": "查询条件:开始日期",
  1938. "type": "integer",
  1939. "format": "int64"
  1940. },
  1941. {
  1942. "in": "query",
  1943. "name": "endtime",
  1944. "description": "查询条件:结束日期",
  1945. "type": "integer",
  1946. "format": "int64"
  1947. }
  1948. ],
  1949. "responses": {
  1950. "200": {
  1951. "description": "服务访问成功",
  1952. "schema": {
  1953. "$ref": "#/definitions/ApiOK|ApiError"
  1954. }
  1955. },
  1956. "401": {
  1957. "description": "status 认证未通过,一般是未指定token或token已失效"
  1958. },
  1959. "500": {
  1960. "description": "status 服务器|后台发生错误"
  1961. }
  1962. }
  1963. }
  1964. },
  1965. "/device/edit": {
  1966. "post": {
  1967. "tags": [
  1968. "device"
  1969. ],
  1970. "summary": "创建新设备",
  1971. "description": "创建新设备。需要提交设备基本信息、测点信息以及控制点信息,其中测点信息的控制点信息均为序列化成字符串的JSON对象",
  1972. "parameters": [
  1973. {
  1974. "in": "query",
  1975. "name": "deviceid",
  1976. "description": "设备ID。编辑设备时必传,否则认为是新建设备",
  1977. "type": "integer",
  1978. "format": "int64"
  1979. },
  1980. {
  1981. "in": "query",
  1982. "name": "stationid",
  1983. "description": "变电站ID。",
  1984. "required": true,
  1985. "type": "integer",
  1986. "format": "int64"
  1987. },
  1988. {
  1989. "in": "query",
  1990. "name": "modelid",
  1991. "description": "设备采用的数据模型ID。",
  1992. "required": true,
  1993. "type": "integer",
  1994. "format": "int64"
  1995. },
  1996. {
  1997. "in": "query",
  1998. "name": "typeid",
  1999. "description": "设备类型ID。",
  2000. "required": true,
  2001. "type": "integer",
  2002. "format": "int64"
  2003. },
  2004. {
  2005. "in": "query",
  2006. "name": "regionid",
  2007. "description": "设备所在区域ID。",
  2008. "type": "integer",
  2009. "format": "int64"
  2010. },
  2011. {
  2012. "in": "query",
  2013. "name": "devicename",
  2014. "description": "设备名称。",
  2015. "required": true,
  2016. "type": "string"
  2017. },
  2018. {
  2019. "in": "query",
  2020. "name": "serial",
  2021. "description": "设备Modbus协议串口号。设备采用串口连接时,必须指定,长度不超过30个字符。",
  2022. "type": "string"
  2023. },
  2024. {
  2025. "in": "query",
  2026. "name": "slaveid",
  2027. "description": "设备Modbus协议从设备号。设备采用串口连接时,必须指定,仅支持0-255之间的整数值",
  2028. "type": "integer",
  2029. "format": "int64"
  2030. },
  2031. {
  2032. "in": "query",
  2033. "name": "baudrate",
  2034. "description": "设备Modbus协议的波特率。设备采用串口连接时,必须指定,支持4800,9600,14400,19200,32000,38400,56000,57600,152000,194000其中之一,默认为9600。",
  2035. "type": "integer",
  2036. "format": "int64"
  2037. },
  2038. {
  2039. "in": "query",
  2040. "name": "stopbit",
  2041. "description": "设备Modbus协议的停止位。设备采用串口连接时,必须指定,仅支持1或2,默认为1。",
  2042. "type": "integer",
  2043. "format": "int64"
  2044. },
  2045. {
  2046. "in": "query",
  2047. "name": "check_bit",
  2048. "description": "设备Modbus协议的校验位。设备采用串口连接时,必须指定,仅支持N、O、E其中之一,默认为N。",
  2049. "type": "integer",
  2050. "format": "int64"
  2051. },
  2052. {
  2053. "in": "query",
  2054. "name": "data_bit",
  2055. "description": "设备Modbus协议的数据位。设备采用串口连接时,必须指定,仅支持5、6、7、8其中之一,默认为8。",
  2056. "type": "string"
  2057. },
  2058. {
  2059. "in": "query",
  2060. "name": "ip",
  2061. "description": "设备IP协议地址。设备采用网口连接时,必须指定,长度不超过17个字符,格式为xxx.xxx.xxx.xxx。",
  2062. "type": "string"
  2063. },
  2064. {
  2065. "in": "query",
  2066. "name": "port",
  2067. "description": "设备IP协议端口。设备采用网口连接时,必须指定,仅支持80-65535之间的整数值。",
  2068. "type": "integer",
  2069. "format": "int64"
  2070. },
  2071. {
  2072. "in": "query",
  2073. "name": "mpinfo_para",
  2074. "description": "测点信息,采用序列化成字符串的JSON对象",
  2075. "schema": {
  2076. "$ref": "#/definitions/JSONString"
  2077. }
  2078. },
  2079. {
  2080. "in": "query",
  2081. "name": "control_para",
  2082. "description": "测点信息,采用序列化成字符串的JSON对象",
  2083. "schema": {
  2084. "$ref": "#/definitions/JSONString"
  2085. }
  2086. }
  2087. ],
  2088. "responses": {
  2089. "200": {
  2090. "description": "服务访问成功",
  2091. "schema": {
  2092. "$ref": "#/definitions/ApiOK|ApiError"
  2093. }
  2094. },
  2095. "401": {
  2096. "description": "status 认证未通过,一般是未指定token或token已失效"
  2097. },
  2098. "500": {
  2099. "description": "status 服务器|后台发生错误"
  2100. }
  2101. }
  2102. }
  2103. },
  2104. "/device/history": {
  2105. "get": {
  2106. "tags": [
  2107. "device"
  2108. ],
  2109. "summary": "查询设备历史数据列表",
  2110. "description": "查询设备历史数据列表。",
  2111. "parameters": [
  2112. {
  2113. "in": "query",
  2114. "name": "deviceid",
  2115. "description": "查询条件:设备ID",
  2116. "required": true,
  2117. "type": "integer",
  2118. "format": "int64"
  2119. },
  2120. {
  2121. "in": "query",
  2122. "name": "attrname",
  2123. "description": "查询条件:模型属性名称",
  2124. "type": "integer",
  2125. "format": "int64"
  2126. },
  2127. {
  2128. "in": "query",
  2129. "name": "starttime",
  2130. "description": "查询条件:开始日期",
  2131. "type": "integer",
  2132. "format": "int64"
  2133. },
  2134. {
  2135. "in": "query",
  2136. "name": "endtime",
  2137. "description": "查询条件:结束日期",
  2138. "type": "integer",
  2139. "format": "int64"
  2140. },
  2141. {
  2142. "in": "query",
  2143. "name": "mpid",
  2144. "description": "查询条件:测点ID",
  2145. "type": "integer",
  2146. "format": "int64"
  2147. },
  2148. {
  2149. "in": "query",
  2150. "name": "pageindex",
  2151. "description": "当前页码",
  2152. "type": "integer",
  2153. "format": "int64"
  2154. },
  2155. {
  2156. "in": "query",
  2157. "name": "pagesize",
  2158. "description": "每页记录数",
  2159. "type": "integer",
  2160. "format": "int64"
  2161. }
  2162. ],
  2163. "responses": {
  2164. "200": {
  2165. "description": "服务访问成功",
  2166. "schema": {
  2167. "$ref": "#/definitions/ApiOK|ApiError"
  2168. }
  2169. },
  2170. "401": {
  2171. "description": "status 认证未通过,一般是未指定token或token已失效"
  2172. },
  2173. "500": {
  2174. "description": "status 服务器|后台发生错误"
  2175. }
  2176. }
  2177. }
  2178. },
  2179. "/device/lastdata": {
  2180. "get": {
  2181. "tags": [
  2182. "device"
  2183. ],
  2184. "summary": "获取设备最新采集数据",
  2185. "description": "获取设备最新采集数据。以上数据后台会通过主题/rtelec/runtime/device/data进行发布。前端可订阅该主题。",
  2186. "parameters": [
  2187. {
  2188. "in": "query",
  2189. "name": "deviceid",
  2190. "description": "查询条件:设备ID。为空时查询所有设备的最新采集数据",
  2191. "type": "integer",
  2192. "format": "int64"
  2193. }
  2194. ],
  2195. "responses": {
  2196. "200": {
  2197. "description": "服务访问成功",
  2198. "schema": {
  2199. "$ref": "#/definitions/ApiOK|ApiError"
  2200. }
  2201. },
  2202. "401": {
  2203. "description": "status 认证未通过,一般是未指定token或token已失效"
  2204. },
  2205. "500": {
  2206. "description": "status 服务器|后台发生错误"
  2207. }
  2208. }
  2209. }
  2210. },
  2211. "/device/lastdata/table": {
  2212. "get": {
  2213. "tags": [
  2214. "device"
  2215. ],
  2216. "summary": "获取设备最新采集数据,以Table展示(分为表头和表体数据)格式返回。以同一模型设备为一组。",
  2217. "description": "获取设备最新采集数据,以Table展示(分为表头和表体数据)格式返回。以同一模型设备为一组。",
  2218. "parameters": [
  2219. {
  2220. "in": "query",
  2221. "name": "deviceid",
  2222. "description": "查询条件:设备ID。为空时查询所有设备的最新采集数据",
  2223. "type": "integer",
  2224. "format": "int64"
  2225. }
  2226. ],
  2227. "responses": {
  2228. "200": {
  2229. "description": "服务访问成功",
  2230. "schema": {
  2231. "$ref": "#/definitions/ApiOK|ApiError"
  2232. }
  2233. },
  2234. "401": {
  2235. "description": "status 认证未通过,一般是未指定token或token已失效"
  2236. },
  2237. "500": {
  2238. "description": "status 服务器|后台发生错误"
  2239. }
  2240. }
  2241. }
  2242. },
  2243. "/device/list": {
  2244. "get": {
  2245. "tags": [
  2246. "device"
  2247. ],
  2248. "summary": "查询设备化记录列表",
  2249. "description": "查询设备记录列表",
  2250. "parameters": [
  2251. {
  2252. "in": "query",
  2253. "name": "devicename",
  2254. "description": "查询条件:设备名称",
  2255. "type": "string"
  2256. },
  2257. {
  2258. "in": "query",
  2259. "name": "regionid",
  2260. "description": "查询条件:区域ID",
  2261. "type": "string"
  2262. },
  2263. {
  2264. "in": "query",
  2265. "name": "typeid",
  2266. "description": "查询条件:设备类型ID",
  2267. "type": "string"
  2268. },
  2269. {
  2270. "in": "query",
  2271. "name": "modelid",
  2272. "description": "查询条件:物模型ID",
  2273. "type": "string"
  2274. },
  2275. {
  2276. "in": "query",
  2277. "name": "pageindex",
  2278. "description": "当前页码",
  2279. "type": "integer",
  2280. "format": "int64"
  2281. },
  2282. {
  2283. "in": "query",
  2284. "name": "pagesize",
  2285. "description": "每页记录数",
  2286. "type": "integer",
  2287. "format": "int64"
  2288. }
  2289. ],
  2290. "responses": {
  2291. "200": {
  2292. "description": "服务访问成功",
  2293. "schema": {
  2294. "$ref": "#/definitions/ApiOK|ApiError"
  2295. }
  2296. },
  2297. "401": {
  2298. "description": "status 认证未通过,一般是未指定token或token已失效"
  2299. },
  2300. "500": {
  2301. "description": "status 服务器|后台发生错误"
  2302. }
  2303. }
  2304. }
  2305. },
  2306. "/device/model/list": {
  2307. "get": {
  2308. "tags": [
  2309. "device"
  2310. ],
  2311. "summary": "查询设备模型信息列表",
  2312. "description": "查询设备模型信息列表。",
  2313. "parameters": [
  2314. {
  2315. "in": "query",
  2316. "name": "deviceid",
  2317. "description": "查询条件:设备ID。可以为空,不指定设备ID时将获取所有的模型列表信息",
  2318. "type": "string"
  2319. }
  2320. ],
  2321. "responses": {
  2322. "200": {
  2323. "description": "服务访问成功",
  2324. "schema": {
  2325. "$ref": "#/definitions/ApiOK|ApiError"
  2326. }
  2327. },
  2328. "401": {
  2329. "description": "status 认证未通过,一般是未指定token或token已失效"
  2330. },
  2331. "500": {
  2332. "description": "status 服务器|后台发生错误"
  2333. }
  2334. }
  2335. }
  2336. },
  2337. "/device/mp/delete": {
  2338. "post": {
  2339. "tags": [
  2340. "device"
  2341. ],
  2342. "summary": "删除设备的指定测点",
  2343. "description": "删除设备的指定测点。",
  2344. "parameters": [
  2345. {
  2346. "in": "query",
  2347. "name": "deviceid",
  2348. "description": "测点所属的设备ID。",
  2349. "required": true,
  2350. "type": "integer",
  2351. "format": "int64"
  2352. },
  2353. {
  2354. "in": "query",
  2355. "name": "mpid",
  2356. "description": "测点ID。未传值时表示删除该设备所有测点",
  2357. "type": "integer",
  2358. "format": "int64"
  2359. }
  2360. ],
  2361. "responses": {
  2362. "200": {
  2363. "description": "服务访问成功",
  2364. "schema": {
  2365. "$ref": "#/definitions/ApiOK|ApiError"
  2366. }
  2367. },
  2368. "401": {
  2369. "description": "status 认证未通过,一般是未指定token或token已失效"
  2370. },
  2371. "500": {
  2372. "description": "status 服务器|后台发生错误"
  2373. }
  2374. }
  2375. }
  2376. },
  2377. "/device/mp/list": {
  2378. "get": {
  2379. "tags": [
  2380. "device"
  2381. ],
  2382. "summary": "获取设备测点信息列表",
  2383. "description": "获取设备测点信息列表。仅返回设备ID、测点ID以及测点名称。",
  2384. "parameters": [
  2385. {
  2386. "in": "query",
  2387. "name": "deviceid",
  2388. "description": "测点所属的设备ID。",
  2389. "required": true,
  2390. "type": "integer",
  2391. "format": "int64"
  2392. },
  2393. {
  2394. "in": "query",
  2395. "name": "pageindex",
  2396. "description": "当前页码",
  2397. "type": "integer",
  2398. "format": "int64"
  2399. },
  2400. {
  2401. "in": "query",
  2402. "name": "pagesize",
  2403. "description": "每页记录数",
  2404. "type": "integer",
  2405. "format": "int64"
  2406. }
  2407. ],
  2408. "responses": {
  2409. "200": {
  2410. "description": "服务访问成功",
  2411. "schema": {
  2412. "$ref": "#/definitions/ApiOK|ApiError"
  2413. }
  2414. },
  2415. "401": {
  2416. "description": "status 认证未通过,一般是未指定token或token已失效"
  2417. },
  2418. "500": {
  2419. "description": "status 服务器|后台发生错误"
  2420. }
  2421. }
  2422. }
  2423. },
  2424. "/device/mp/mpInfoDetail": {
  2425. "get": {
  2426. "tags": [
  2427. "device"
  2428. ],
  2429. "summary": "获取设备一个测点的详细信息",
  2430. "description": "获取设备一个测点的详细信息",
  2431. "parameters": [
  2432. {
  2433. "in": "query",
  2434. "name": "mpid",
  2435. "description": "设备测点的id",
  2436. "required": true,
  2437. "type": "integer",
  2438. "format": "int64"
  2439. }
  2440. ],
  2441. "responses": {
  2442. "200": {
  2443. "description": "服务访问成功",
  2444. "schema": {
  2445. "$ref": "#/definitions/ApiOK|ApiError"
  2446. }
  2447. },
  2448. "401": {
  2449. "description": "status 认证未通过,一般是未指定token或token已失效"
  2450. },
  2451. "500": {
  2452. "description": "status 服务器|后台发生错误"
  2453. }
  2454. }
  2455. }
  2456. },
  2457. "/device/mp/save": {
  2458. "post": {
  2459. "tags": [
  2460. "device"
  2461. ],
  2462. "summary": "保存设备测点信息",
  2463. "description": "保存设备测点信息。",
  2464. "parameters": [
  2465. {
  2466. "in": "query",
  2467. "name": "deviceid",
  2468. "description": "测点所属的设备ID。",
  2469. "required": true,
  2470. "type": "integer",
  2471. "format": "int64"
  2472. },
  2473. {
  2474. "in": "query",
  2475. "name": "modelid",
  2476. "description": "测点关联的模型ID",
  2477. "required": true,
  2478. "type": "integer",
  2479. "format": "int64"
  2480. },
  2481. {
  2482. "in": "query",
  2483. "name": "mpid",
  2484. "description": "测点ID。未传值时表示新增操作",
  2485. "type": "integer",
  2486. "format": "int64"
  2487. },
  2488. {
  2489. "in": "query",
  2490. "name": "mpname",
  2491. "description": "测点名称。建议20个字符以内",
  2492. "required": true,
  2493. "type": "string"
  2494. },
  2495. {
  2496. "in": "query",
  2497. "name": "zonename",
  2498. "description": "测点所在区域名称",
  2499. "type": "string"
  2500. },
  2501. {
  2502. "in": "query",
  2503. "name": "positionname",
  2504. "description": "测点所在位置名称",
  2505. "type": "string"
  2506. },
  2507. {
  2508. "in": "query",
  2509. "name": "unit",
  2510. "description": "测点单位。指该测点采集数据的计量单位。",
  2511. "type": "string"
  2512. },
  2513. {
  2514. "in": "query",
  2515. "name": "attrname",
  2516. "description": "测点关联的模型属性名称",
  2517. "required": true,
  2518. "type": "string"
  2519. },
  2520. {
  2521. "in": "query",
  2522. "name": "phase",
  2523. "description": "测点监测对象的相位。仅为空值、A、B、C、N其中之一。",
  2524. "type": "string"
  2525. }
  2526. ],
  2527. "responses": {
  2528. "200": {
  2529. "description": "服务访问成功",
  2530. "schema": {
  2531. "$ref": "#/definitions/ApiOK|ApiError"
  2532. }
  2533. },
  2534. "401": {
  2535. "description": "status 认证未通过,一般是未指定token或token已失效"
  2536. },
  2537. "500": {
  2538. "description": "status 服务器|后台发生错误"
  2539. }
  2540. }
  2541. }
  2542. },
  2543. "/device/mpgroup/list": {
  2544. "get": {
  2545. "tags": [
  2546. "device"
  2547. ],
  2548. "summary": "获取设备分组列表",
  2549. "description": "获取设备分组列表",
  2550. "parameters": [
  2551. {
  2552. "in": "query",
  2553. "name": "deviceid",
  2554. "description": "查询条件:设备ID",
  2555. "required": true,
  2556. "type": "integer",
  2557. "format": "int64"
  2558. }
  2559. ],
  2560. "responses": {
  2561. "200": {
  2562. "description": "服务访问成功",
  2563. "schema": {
  2564. "$ref": "#/definitions/ApiOK|ApiError"
  2565. }
  2566. },
  2567. "401": {
  2568. "description": "status 认证未通过,一般是未指定token或token已失效"
  2569. },
  2570. "500": {
  2571. "description": "status 服务器|后台发生错误"
  2572. }
  2573. }
  2574. }
  2575. },
  2576. "/device/mpgroup/mplist": {
  2577. "get": {
  2578. "tags": [
  2579. "device"
  2580. ],
  2581. "summary": "获取设备测点分组的测点列表",
  2582. "description": "获取设备测点分组的测点列表",
  2583. "parameters": [
  2584. {
  2585. "in": "query",
  2586. "name": "deviceid",
  2587. "description": "查询条件:设备ID",
  2588. "required": true,
  2589. "type": "integer",
  2590. "format": "int64"
  2591. },
  2592. {
  2593. "in": "query",
  2594. "name": "groupid",
  2595. "description": "查询条件:分组ID",
  2596. "required": true,
  2597. "type": "integer",
  2598. "format": "int64"
  2599. }
  2600. ],
  2601. "responses": {
  2602. "200": {
  2603. "description": "服务访问成功",
  2604. "schema": {
  2605. "$ref": "#/definitions/ApiOK|ApiError"
  2606. }
  2607. },
  2608. "401": {
  2609. "description": "status 认证未通过,一般是未指定token或token已失效"
  2610. },
  2611. "500": {
  2612. "description": "status 服务器|后台发生错误"
  2613. }
  2614. }
  2615. }
  2616. },
  2617. "/device/mpgroup/save": {
  2618. "post": {
  2619. "tags": [
  2620. "device"
  2621. ],
  2622. "summary": "保存设备测点分组信息",
  2623. "description": "保存设备测点分组信息",
  2624. "parameters": [
  2625. {
  2626. "in": "query",
  2627. "name": "deviceid",
  2628. "description": "设备ID",
  2629. "required": true,
  2630. "type": "integer",
  2631. "format": "int64"
  2632. },
  2633. {
  2634. "in": "query",
  2635. "name": "groupid",
  2636. "description": "分组ID。为空或未传时表示新建分组;否则为编辑分组",
  2637. "type": "integer",
  2638. "format": "int64"
  2639. },
  2640. {
  2641. "in": "query",
  2642. "name": "groupname",
  2643. "description": "分组名称。",
  2644. "required": true,
  2645. "type": "integer",
  2646. "format": "int64"
  2647. },
  2648. {
  2649. "in": "query",
  2650. "name": "mpids",
  2651. "description": "测点ID列表。多个测点ID使用逗号分隔,测点数量不能超过3个。",
  2652. "required": true,
  2653. "type": "string"
  2654. }
  2655. ],
  2656. "responses": {
  2657. "200": {
  2658. "description": "服务访问成功",
  2659. "schema": {
  2660. "$ref": "#/definitions/ApiOK|ApiError"
  2661. }
  2662. },
  2663. "401": {
  2664. "description": "status 认证未通过,一般是未指定token或token已失效"
  2665. },
  2666. "500": {
  2667. "description": "status 服务器|后台发生错误"
  2668. }
  2669. }
  2670. }
  2671. },
  2672. "/device/tree": {
  2673. "get": {
  2674. "tags": [
  2675. "device"
  2676. ],
  2677. "summary": "获取设备列表并以树形数据结构返回",
  2678. "description": "获取设备列表并以树形数据结构返回。数据格式为: [{id:[节点ID],label:[节点名称],type:[节点类型(root|region|device)],devcount:[挂载设备数量],children:[嵌套子节点]}]。",
  2679. "responses": {
  2680. "200": {
  2681. "description": "服务访问成功",
  2682. "schema": {
  2683. "$ref": "#/definitions/ApiOK|ApiError"
  2684. }
  2685. },
  2686. "401": {
  2687. "description": "status 认证未通过,一般是未指定token或token已失效"
  2688. },
  2689. "500": {
  2690. "description": "status 服务器|后台发生错误"
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "/device/type/list": {
  2696. "get": {
  2697. "tags": [
  2698. "device"
  2699. ],
  2700. "summary": "查询设备类型数据列表",
  2701. "description": "查询设备类型数据列表。仅返回类型ID(id)和名称(type_name)",
  2702. "responses": {
  2703. "200": {
  2704. "description": "服务访问成功",
  2705. "schema": {
  2706. "$ref": "#/definitions/ApiOK|ApiError"
  2707. }
  2708. },
  2709. "401": {
  2710. "description": "status 认证未通过,一般是未指定token或token已失效"
  2711. },
  2712. "500": {
  2713. "description": "status 服务器|后台发生错误"
  2714. }
  2715. }
  2716. }
  2717. },
  2718. "/devicealarmsetting/copytactics": {
  2719. "post": {
  2720. "tags": [
  2721. "devicealarmsetting"
  2722. ],
  2723. "summary": "复制一个设备的策略到另外的设备",
  2724. "description": "复制一个设备的策略到另外的设备",
  2725. "parameters": [
  2726. {
  2727. "in": "query",
  2728. "name": "olddeviceid",
  2729. "description": "旧设备ID必传.",
  2730. "required": true,
  2731. "type": "integer",
  2732. "format": "int64"
  2733. },
  2734. {
  2735. "in": "query",
  2736. "name": "newdeviceid",
  2737. "description": "新设备ID必传.按逗号分割的字符串",
  2738. "required": true,
  2739. "type": "string"
  2740. }
  2741. ],
  2742. "responses": {
  2743. "200": {
  2744. "description": "服务访问成功",
  2745. "schema": {
  2746. "$ref": "#/definitions/ApiOK|ApiError"
  2747. }
  2748. },
  2749. "401": {
  2750. "description": "status 认证未通过,一般是未指定token或token已失效"
  2751. },
  2752. "500": {
  2753. "description": "status 服务器|后台发生错误"
  2754. }
  2755. }
  2756. }
  2757. },
  2758. "/devicealarmsetting/delAloneTactics": {
  2759. "post": {
  2760. "tags": [
  2761. "devicealarmsetting"
  2762. ],
  2763. "summary": "删除一个设备的独立策略点",
  2764. "description": "删除一个设备的独立策略点,会把独立配置的所有的测点的阈值都清除",
  2765. "parameters": [
  2766. {
  2767. "in": "query",
  2768. "name": "deviceid",
  2769. "description": "设备ID必传.",
  2770. "required": true,
  2771. "type": "integer",
  2772. "format": "int64"
  2773. }
  2774. ]
  2775. }
  2776. },
  2777. "/devicealarmsetting/list": {
  2778. "get": {
  2779. "tags": [
  2780. "devicealarmsetting"
  2781. ],
  2782. "summary": "获取设备策略配置列表",
  2783. "description": "获取设备策略配置列表。返回获取设备策略配置列表和策略明细信息",
  2784. "parameters": [
  2785. {
  2786. "in": "query",
  2787. "name": "deviceid",
  2788. "description": "设备ID必传.",
  2789. "required": true,
  2790. "type": "integer",
  2791. "format": "int64"
  2792. },
  2793. {
  2794. "in": "query",
  2795. "name": "pageIndex",
  2796. "description": "分页当前页.",
  2797. "required": true,
  2798. "type": "integer",
  2799. "format": "int64"
  2800. },
  2801. {
  2802. "in": "query",
  2803. "name": "pageSize",
  2804. "description": "分页大小.",
  2805. "required": true,
  2806. "type": "integer",
  2807. "format": "int64"
  2808. }
  2809. ],
  2810. "responses": {
  2811. "200": {
  2812. "description": "服务访问成功",
  2813. "schema": {
  2814. "$ref": "#/definitions/ApiOK|ApiError"
  2815. }
  2816. },
  2817. "401": {
  2818. "description": "status 认证未通过,一般是未指定token或token已失效"
  2819. },
  2820. "500": {
  2821. "description": "status 服务器|后台发生错误"
  2822. }
  2823. }
  2824. }
  2825. },
  2826. "/devicealarmsetting/saveAloneTactics": {
  2827. "post": {
  2828. "tags": [
  2829. "devicealarmsetting"
  2830. ],
  2831. "summary": "添加独立策略点",
  2832. "description": "添加独立策略点。批量提交json格式的字符串[{},{},{}...],大部分字段值可由list获取,只有threshold需要手动填写",
  2833. "parameters": [
  2834. {
  2835. "in": "query",
  2836. "name": "alonelist",
  2837. "description": "json字符串格式",
  2838. "required": true,
  2839. "type": "string"
  2840. },
  2841. {
  2842. "in": "query",
  2843. "name": "alonelist.deviceid",
  2844. "description": "设备ID必传.",
  2845. "required": true,
  2846. "type": "integer",
  2847. "format": "int64"
  2848. },
  2849. {
  2850. "in": "query",
  2851. "name": "alonelist.mpid",
  2852. "description": "测点ID必传.",
  2853. "required": true,
  2854. "type": "integer",
  2855. "format": "int64"
  2856. },
  2857. {
  2858. "in": "query",
  2859. "name": "alonelist.attrname",
  2860. "description": "测点属性名必传.",
  2861. "required": true,
  2862. "type": "integer",
  2863. "format": "int64"
  2864. },
  2865. {
  2866. "in": "query",
  2867. "name": "alonelist.mpname",
  2868. "description": "测点名称.",
  2869. "required": true,
  2870. "type": "string"
  2871. },
  2872. {
  2873. "in": "query",
  2874. "name": "alonelist.alarm_type",
  2875. "description": "告警类型(1:绝对值,2:升温).",
  2876. "required": true,
  2877. "type": "integer",
  2878. "format": "int64"
  2879. },
  2880. {
  2881. "in": "query",
  2882. "name": "alonelist.alarm_id",
  2883. "description": "告警策略id.",
  2884. "required": true,
  2885. "type": "integer",
  2886. "format": "int64"
  2887. },
  2888. {
  2889. "in": "query",
  2890. "name": "alonelist.upcycle",
  2891. "description": "当alarm_type=2时需要传此值.",
  2892. "required": true,
  2893. "type": "integer",
  2894. "format": "int64"
  2895. },
  2896. {
  2897. "in": "query",
  2898. "name": "alonelist.threshold",
  2899. "description": "阈值.",
  2900. "required": true,
  2901. "type": "number",
  2902. "format": "float"
  2903. }
  2904. ]
  2905. }
  2906. },
  2907. "/excel/expTableData": {
  2908. "get": {
  2909. "tags": [
  2910. "excel"
  2911. ],
  2912. "summary": "数据导出为Excel",
  2913. "description": "数据导出为Excel。接口将生成数据文件,并返回文件下载路径。当前支持:device_info、device_mp_info、history-data-opt(自定义日期段历史数据导出)、report-all(导出全部报表)、report-opt(各类型报表导出,需要device_id、reportid、reporttype[1|2|3|4]三个参数)、optimize_invalid_fillrule(导出无效数据填充规则,需要device_id和model_id参数)、optimize_invalid_fillrule(导出缺点数据填充规则,需要device_id和model_id参数)",
  2914. "parameters": [
  2915. {
  2916. "in": "query",
  2917. "name": "code",
  2918. "description": "业务数据类别,由系统定义。当前支持:history-data-opt(自定义日期段历史数据导出)、report-all(导出全部报表)、report-opt(各类型报表导出,需要device_id、reportid、reporttype[1|2|3|4]三个参数)、optimize_invalid_fillrule(导出无效数据填充规则)、optimize_invalid_fillrule(导出缺点数据填充规则)",
  2919. "required": true,
  2920. "type": "string"
  2921. },
  2922. {
  2923. "in": "query",
  2924. "name": "caption",
  2925. "description": "数据标题/文件名称,将显示在excel中的第一行。",
  2926. "type": "string"
  2927. },
  2928. {
  2929. "in": "query",
  2930. "name": "expcols",
  2931. "description": "需要导出的字段名。未设置时按数据结果全部返回。",
  2932. "type": "string"
  2933. },
  2934. {
  2935. "in": "query",
  2936. "name": "expcolnames",
  2937. "description": "导出字段名对应的中文名称。与导出字段名一一对应",
  2938. "type": "string"
  2939. },
  2940. {
  2941. "in": "query",
  2942. "name": "...paras",
  2943. "description": "根据业务查询需求,提供相应的参数",
  2944. "type": "string"
  2945. }
  2946. ],
  2947. "responses": {
  2948. "200": {
  2949. "description": "服务访问成功",
  2950. "schema": {
  2951. "$ref": "#/definitions/ApiOK|ApiError"
  2952. }
  2953. },
  2954. "401": {
  2955. "description": "status 认证未通过,一般是未指定token或token已失效"
  2956. },
  2957. "500": {
  2958. "description": "status 服务器|后台发生错误"
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "/excel/upload": {
  2964. "post": {
  2965. "tags": [
  2966. "excel"
  2967. ],
  2968. "summary": "将Excel数据导入到指定模块",
  2969. "description": "将Excel数据导入到指定模块",
  2970. "parameters": [
  2971. {
  2972. "in": "query",
  2973. "name": "code",
  2974. "description": "业务数据类别,由系统定义。当前支持:device_info、device_mp_info、optimize_invalid_fillrule、optimize_deletion_fillrule",
  2975. "required": true,
  2976. "type": "string"
  2977. },
  2978. {
  2979. "in": "query",
  2980. "name": "file",
  2981. "description": "文件流参数名",
  2982. "required": true,
  2983. "type": "file"
  2984. },
  2985. {
  2986. "in": "query",
  2987. "name": "...paras",
  2988. "description": "根据业务查询需求,提供相应的参数",
  2989. "type": "string"
  2990. }
  2991. ],
  2992. "responses": {
  2993. "200": {
  2994. "description": "服务访问成功",
  2995. "schema": {
  2996. "$ref": "#/definitions/ApiOK|ApiError"
  2997. }
  2998. },
  2999. "401": {
  3000. "description": "status 认证未通过,一般是未指定token或token已失效"
  3001. },
  3002. "500": {
  3003. "description": "status 服务器|后台发生错误"
  3004. }
  3005. }
  3006. }
  3007. },
  3008. "/isslog/delete": {
  3009. "post": {
  3010. "tags": [
  3011. "isslog"
  3012. ]
  3013. }
  3014. },
  3015. "/isslog/list": {
  3016. "get": {
  3017. "tags": [
  3018. "isslog"
  3019. ]
  3020. }
  3021. },
  3022. "/linkevent/link_list": {
  3023. "get": {
  3024. "tags": [
  3025. "linkevent"
  3026. ]
  3027. }
  3028. },
  3029. "/linkevent/now": {
  3030. "get": {
  3031. "tags": [
  3032. "linkevent"
  3033. ]
  3034. }
  3035. },
  3036. "/model/get_model_attr": {
  3037. "get": {
  3038. "tags": [
  3039. "model"
  3040. ],
  3041. "summary": "获取指定模型的属性列表",
  3042. "description": "获取指定模型的属性列表。该模型定义由数据中台管理。",
  3043. "parameters": [
  3044. {
  3045. "in": "query",
  3046. "name": "modelid",
  3047. "description": "数据模型ID。",
  3048. "required": true,
  3049. "type": "integer",
  3050. "format": "int64"
  3051. }
  3052. ],
  3053. "responses": {
  3054. "200": {
  3055. "description": "[{object}] ApiOK|ApiError 服务访问成功"
  3056. },
  3057. "401": {
  3058. "description": "status 认证未通过,一般是未指定token或token已失效"
  3059. },
  3060. "500": {
  3061. "description": "status 服务器|后台发生错误"
  3062. }
  3063. }
  3064. }
  3065. },
  3066. "/model/get_south_model": {
  3067. "get": {
  3068. "tags": [
  3069. "model"
  3070. ],
  3071. "summary": "获取本应用的模型列表",
  3072. "description": "获取本应用的模型列表。应用使用的模型需要通过业务场景进行配置,否则会返回中台的所有模型。",
  3073. "responses": {
  3074. "200": {
  3075. "description": "[{object}] ApiOK|ApiError 服务访问成功"
  3076. },
  3077. "401": {
  3078. "description": "status 认证未通过,一般是未指定token或token已失效"
  3079. },
  3080. "500": {
  3081. "description": "status 服务器|后台发生错误"
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "/region/list": {
  3087. "get": {
  3088. "tags": [
  3089. "region"
  3090. ],
  3091. "summary": "查询区域记录列表",
  3092. "description": "查询区域记录列表",
  3093. "responses": {
  3094. "200": {
  3095. "description": "",
  3096. "schema": {
  3097. "$ref": "#/definitions/ApiOK"
  3098. }
  3099. },
  3100. "500": {
  3101. "description": "{object} ApiError"
  3102. }
  3103. }
  3104. }
  3105. },
  3106. "/region/station": {
  3107. "get": {
  3108. "tags": [
  3109. "region"
  3110. ],
  3111. "summary": "获取当前变电站信息",
  3112. "description": "获取当前变电站信息。",
  3113. "responses": {
  3114. "200": {
  3115. "description": "服务访问成功",
  3116. "schema": {
  3117. "$ref": "#/definitions/ApiOK|ApiError"
  3118. }
  3119. },
  3120. "401": {
  3121. "description": "status 认证未通过,一般是未指定token或token已失效"
  3122. },
  3123. "500": {
  3124. "description": "status 服务器|后台发生错误"
  3125. }
  3126. }
  3127. }
  3128. },
  3129. "/report/custmer/list": {
  3130. "get": {
  3131. "tags": [
  3132. "report"
  3133. ],
  3134. "summary": "获取自定义周期内的日报表列表",
  3135. "description": "获取自定义周期内的日报表列表。建议开始和结束日期范围不超过3个月!",
  3136. "parameters": [
  3137. {
  3138. "in": "query",
  3139. "name": "deviceid",
  3140. "description": "设备ID",
  3141. "required": true,
  3142. "type": "integer",
  3143. "format": "int64"
  3144. },
  3145. {
  3146. "in": "query",
  3147. "name": "s1",
  3148. "description": "查询条件:开始日期",
  3149. "required": true,
  3150. "type": "string"
  3151. },
  3152. {
  3153. "in": "query",
  3154. "name": "s2",
  3155. "description": "查询条件:结束日期",
  3156. "type": "string"
  3157. },
  3158. {
  3159. "in": "query",
  3160. "name": "pageindex",
  3161. "description": "查询条件:当前页码。默认为1",
  3162. "type": "integer",
  3163. "format": "int64"
  3164. },
  3165. {
  3166. "in": "query",
  3167. "name": "pagesize",
  3168. "description": "查询条件:每页记录数。默认为20",
  3169. "type": "integer",
  3170. "format": "int64"
  3171. }
  3172. ],
  3173. "responses": {
  3174. "200": {
  3175. "description": "服务访问成功",
  3176. "schema": {
  3177. "$ref": "#/definitions/ApiOK|ApiError"
  3178. }
  3179. },
  3180. "401": {
  3181. "description": "status 认证未通过,一般是未指定token或token已失效"
  3182. },
  3183. "500": {
  3184. "description": "status 服务器|后台发生错误"
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "/report/data/list": {
  3190. "get": {
  3191. "tags": [
  3192. "report"
  3193. ],
  3194. "summary": "获取报表数据",
  3195. "description": "获取报表数据",
  3196. "parameters": [
  3197. {
  3198. "in": "query",
  3199. "name": "deviceid",
  3200. "description": "设备ID",
  3201. "required": true,
  3202. "type": "integer",
  3203. "format": "int64"
  3204. },
  3205. {
  3206. "in": "query",
  3207. "name": "reportid",
  3208. "description": "查询条件:报表ID",
  3209. "required": true,
  3210. "type": "integer",
  3211. "format": "int64"
  3212. },
  3213. {
  3214. "in": "query",
  3215. "name": "reporttype",
  3216. "description": "查询条件:报表类型。支持以下:1 年报 2 月报 3 周报 4 日报",
  3217. "required": true,
  3218. "type": "integer",
  3219. "format": "int64"
  3220. }
  3221. ],
  3222. "responses": {
  3223. "200": {
  3224. "description": "服务访问成功",
  3225. "schema": {
  3226. "$ref": "#/definitions/ApiOK|ApiError"
  3227. }
  3228. },
  3229. "401": {
  3230. "description": "status 认证未通过,一般是未指定token或token已失效"
  3231. },
  3232. "500": {
  3233. "description": "status 服务器|后台发生错误"
  3234. }
  3235. }
  3236. }
  3237. },
  3238. "/report/day/list": {
  3239. "get": {
  3240. "tags": [
  3241. "report"
  3242. ],
  3243. "summary": "获取日报表列表",
  3244. "description": "获取日报表列表。不指定月时,获取指定年内所有的日报表。",
  3245. "parameters": [
  3246. {
  3247. "in": "query",
  3248. "name": "deviceid",
  3249. "description": "设备ID",
  3250. "required": true,
  3251. "type": "integer",
  3252. "format": "int64"
  3253. },
  3254. {
  3255. "in": "query",
  3256. "name": "year",
  3257. "description": "查询条件:年份",
  3258. "required": true,
  3259. "type": "integer",
  3260. "format": "int64"
  3261. },
  3262. {
  3263. "in": "query",
  3264. "name": "month",
  3265. "description": "查询条件:月份",
  3266. "type": "integer",
  3267. "format": "int64"
  3268. },
  3269. {
  3270. "in": "query",
  3271. "name": "pageindex",
  3272. "description": "查询条件:当前页码。默认为1",
  3273. "type": "integer",
  3274. "format": "int64"
  3275. },
  3276. {
  3277. "in": "query",
  3278. "name": "pagesize",
  3279. "description": "查询条件:每页记录数。默认为20",
  3280. "type": "integer",
  3281. "format": "int64"
  3282. }
  3283. ],
  3284. "responses": {
  3285. "200": {
  3286. "description": "服务访问成功",
  3287. "schema": {
  3288. "$ref": "#/definitions/ApiOK|ApiError"
  3289. }
  3290. },
  3291. "401": {
  3292. "description": "status 认证未通过,一般是未指定token或token已失效"
  3293. },
  3294. "500": {
  3295. "description": "status 服务器|后台发生错误"
  3296. }
  3297. }
  3298. }
  3299. },
  3300. "/report/device/total": {
  3301. "get": {
  3302. "tags": [
  3303. "report"
  3304. ],
  3305. "summary": "获取设备数量统计信息",
  3306. "description": "获取设备数量统计信息。包括:总设备数、在线数、离线数、告警数。以上信息每分钟后台会通过主题/rtelec/runtime/device/total进行发布。前端可订阅该主题。",
  3307. "responses": {
  3308. "200": {
  3309. "description": "服务访问成功",
  3310. "schema": {
  3311. "$ref": "#/definitions/ApiOK|ApiError"
  3312. }
  3313. },
  3314. "401": {
  3315. "description": "status 认证未通过,一般是未指定token或token已失效"
  3316. },
  3317. "500": {
  3318. "description": "status 服务器|后台发生错误"
  3319. }
  3320. }
  3321. }
  3322. },
  3323. "/report/maxdata": {
  3324. "get": {
  3325. "tags": [
  3326. "report"
  3327. ],
  3328. "summary": "获取最高数据(温度、湿度、电压等)统计信息",
  3329. "description": "获取最高数据(温度、湿度、电压等)统计信息。包括:tem(温度、时间、设备名称)对象,hum(湿度、时间、设备名称)对象,vol(电压、时间、设备名称)对象.以上信息后台会通过主题/rtelec/runtime/today/maxdata进行发布。前端可订阅该主题。",
  3330. "responses": {
  3331. "200": {
  3332. "description": "服务访问成功",
  3333. "schema": {
  3334. "$ref": "#/definitions/ApiOK|ApiError"
  3335. }
  3336. },
  3337. "401": {
  3338. "description": "status 认证未通过,一般是未指定token或token已失效"
  3339. },
  3340. "500": {
  3341. "description": "status 服务器|后台发生错误"
  3342. }
  3343. }
  3344. }
  3345. },
  3346. "/report/month/list": {
  3347. "get": {
  3348. "tags": [
  3349. "report"
  3350. ],
  3351. "summary": "获取月报表列表",
  3352. "description": "获取月报表列表。不指定月份时,获取指定年内所有的月报表。",
  3353. "parameters": [
  3354. {
  3355. "in": "query",
  3356. "name": "deviceid",
  3357. "description": "设备ID",
  3358. "required": true,
  3359. "type": "integer",
  3360. "format": "int64"
  3361. },
  3362. {
  3363. "in": "query",
  3364. "name": "year",
  3365. "description": "查询条件:年份",
  3366. "required": true,
  3367. "type": "integer",
  3368. "format": "int64"
  3369. },
  3370. {
  3371. "in": "query",
  3372. "name": "month",
  3373. "description": "查询条件:月份",
  3374. "type": "integer",
  3375. "format": "int64"
  3376. }
  3377. ],
  3378. "responses": {
  3379. "200": {
  3380. "description": "服务访问成功",
  3381. "schema": {
  3382. "$ref": "#/definitions/ApiOK|ApiError"
  3383. }
  3384. },
  3385. "401": {
  3386. "description": "status 认证未通过,一般是未指定token或token已失效"
  3387. },
  3388. "500": {
  3389. "description": "status 服务器|后台发生错误"
  3390. }
  3391. }
  3392. }
  3393. },
  3394. "/report/mutil_mp/comp": {
  3395. "get": {
  3396. "tags": [
  3397. "report"
  3398. ],
  3399. "summary": "多测点对比数据查询",
  3400. "description": "多测点对比数据查询",
  3401. "parameters": [
  3402. {
  3403. "in": "query",
  3404. "name": "mplist",
  3405. "description": "对比的测点列表。测点格式为:设备ID.测点属性名(如123.tem1)。多个测点之间使用逗号分隔。",
  3406. "required": true,
  3407. "type": "string"
  3408. },
  3409. {
  3410. "in": "query",
  3411. "name": "startdate",
  3412. "description": "数据查询开始日期",
  3413. "required": true,
  3414. "type": "integer",
  3415. "format": "int64"
  3416. },
  3417. {
  3418. "in": "query",
  3419. "name": "enddate",
  3420. "description": "数据查询结束日期",
  3421. "required": true,
  3422. "type": "integer",
  3423. "format": "int64"
  3424. }
  3425. ],
  3426. "responses": {
  3427. "200": {
  3428. "description": "服务访问成功",
  3429. "schema": {
  3430. "$ref": "#/definitions/ApiOK|ApiError"
  3431. }
  3432. },
  3433. "401": {
  3434. "description": "status 认证未通过,一般是未指定token或token已失效"
  3435. },
  3436. "500": {
  3437. "description": "status 服务器|后台发生错误"
  3438. }
  3439. }
  3440. }
  3441. },
  3442. "/report/mutil_mp/echarts_data": {
  3443. "get": {
  3444. "tags": [
  3445. "report"
  3446. ],
  3447. "summary": "多测点对比Echarts Line数据查询。按Echarts Line要格式要求返回数据。",
  3448. "description": "多测点对比Echarts Line数据查询按Echarts Line要格式要求返回数据。",
  3449. "parameters": [
  3450. {
  3451. "in": "query",
  3452. "name": "mplist",
  3453. "description": "对比的测点列表。测点格式为:设备ID.测点属性名(如123.tem1)。多个测点之间使用逗号分隔。",
  3454. "required": true,
  3455. "type": "string"
  3456. },
  3457. {
  3458. "in": "query",
  3459. "name": "startdate",
  3460. "description": "数据查询开始日期",
  3461. "required": true,
  3462. "type": "integer",
  3463. "format": "int64"
  3464. },
  3465. {
  3466. "in": "query",
  3467. "name": "enddate",
  3468. "description": "数据查询结束日期",
  3469. "required": true,
  3470. "type": "integer",
  3471. "format": "int64"
  3472. }
  3473. ],
  3474. "responses": {
  3475. "200": {
  3476. "description": "服务访问成功",
  3477. "schema": {
  3478. "$ref": "#/definitions/ApiOK|ApiError"
  3479. }
  3480. },
  3481. "401": {
  3482. "description": "status 认证未通过,一般是未指定token或token已失效"
  3483. },
  3484. "500": {
  3485. "description": "status 服务器|后台发生错误"
  3486. }
  3487. }
  3488. }
  3489. },
  3490. "/report/week/list": {
  3491. "get": {
  3492. "tags": [
  3493. "report"
  3494. ],
  3495. "summary": "获取周报表列表",
  3496. "description": "获取周报表列表。不指定周时,获取指定年内所有的周报表。",
  3497. "parameters": [
  3498. {
  3499. "in": "query",
  3500. "name": "deviceid",
  3501. "description": "设备ID",
  3502. "required": true,
  3503. "type": "integer",
  3504. "format": "int64"
  3505. },
  3506. {
  3507. "in": "query",
  3508. "name": "year",
  3509. "description": "查询条件:年份",
  3510. "required": true,
  3511. "type": "integer",
  3512. "format": "int64"
  3513. },
  3514. {
  3515. "in": "query",
  3516. "name": "week",
  3517. "description": "查询条件:周",
  3518. "type": "integer",
  3519. "format": "int64"
  3520. },
  3521. {
  3522. "in": "query",
  3523. "name": "pageindex",
  3524. "description": "查询条件:当前页码。默认为1",
  3525. "type": "integer",
  3526. "format": "int64"
  3527. },
  3528. {
  3529. "in": "query",
  3530. "name": "pagesize",
  3531. "description": "查询条件:每页记录数。默认为20",
  3532. "type": "integer",
  3533. "format": "int64"
  3534. }
  3535. ],
  3536. "responses": {
  3537. "200": {
  3538. "description": "服务访问成功",
  3539. "schema": {
  3540. "$ref": "#/definitions/ApiOK|ApiError"
  3541. }
  3542. },
  3543. "401": {
  3544. "description": "status 认证未通过,一般是未指定token或token已失效"
  3545. },
  3546. "500": {
  3547. "description": "status 服务器|后台发生错误"
  3548. }
  3549. }
  3550. }
  3551. },
  3552. "/report/year/list": {
  3553. "get": {
  3554. "tags": [
  3555. "report"
  3556. ],
  3557. "summary": "获取年报表列表",
  3558. "description": "获取年报表列表。不指定年份时,获取所有的年报表。",
  3559. "parameters": [
  3560. {
  3561. "in": "query",
  3562. "name": "deviceid",
  3563. "description": "设备ID",
  3564. "required": true,
  3565. "type": "integer",
  3566. "format": "int64"
  3567. },
  3568. {
  3569. "in": "query",
  3570. "name": "year",
  3571. "description": "查询条件:年份",
  3572. "type": "integer",
  3573. "format": "int64"
  3574. }
  3575. ],
  3576. "responses": {
  3577. "200": {
  3578. "description": "服务访问成功",
  3579. "schema": {
  3580. "$ref": "#/definitions/ApiOK|ApiError"
  3581. }
  3582. },
  3583. "401": {
  3584. "description": "status 认证未通过,一般是未指定token或token已失效"
  3585. },
  3586. "500": {
  3587. "description": "status 服务器|后台发生错误"
  3588. }
  3589. }
  3590. }
  3591. },
  3592. "/scene/addrelation": {
  3593. "post": {
  3594. "tags": [
  3595. "scene"
  3596. ]
  3597. }
  3598. },
  3599. "/scene/delrelation": {
  3600. "post": {
  3601. "tags": [
  3602. "scene"
  3603. ]
  3604. }
  3605. },
  3606. "/scene/getListBySceneName": {
  3607. "post": {
  3608. "tags": [
  3609. "scene"
  3610. ]
  3611. }
  3612. },
  3613. "/scene/getScencList": {
  3614. "post": {
  3615. "tags": [
  3616. "scene"
  3617. ]
  3618. }
  3619. },
  3620. "/scene/updateScene": {
  3621. "post": {
  3622. "tags": [
  3623. "scene"
  3624. ]
  3625. }
  3626. },
  3627. "/task/delete": {
  3628. "post": {
  3629. "tags": [
  3630. "task"
  3631. ]
  3632. }
  3633. },
  3634. "/task/edit": {
  3635. "post": {
  3636. "tags": [
  3637. "task"
  3638. ]
  3639. }
  3640. },
  3641. "/task/list": {
  3642. "get": {
  3643. "tags": [
  3644. "task"
  3645. ]
  3646. }
  3647. },
  3648. "/task/pause": {
  3649. "post": {
  3650. "tags": [
  3651. "task"
  3652. ]
  3653. }
  3654. },
  3655. "/wechat/api/app/chat": {
  3656. "get": {
  3657. "tags": [
  3658. "wechat"
  3659. ]
  3660. },
  3661. "post": {
  3662. "tags": [
  3663. "wechat"
  3664. ]
  3665. }
  3666. },
  3667. "/wechat/api/common/weixindevapply": {
  3668. "get": {
  3669. "tags": [
  3670. "wechat"
  3671. ]
  3672. },
  3673. "post": {
  3674. "tags": [
  3675. "wechat"
  3676. ]
  3677. }
  3678. },
  3679. "/wechat/api/wechat/message/push": {
  3680. "get": {
  3681. "tags": [
  3682. "wechat"
  3683. ]
  3684. },
  3685. "post": {
  3686. "tags": [
  3687. "wechat"
  3688. ]
  3689. }
  3690. },
  3691. "/wechat/api/wechat/r/chat": {
  3692. "get": {
  3693. "tags": [
  3694. "wechat"
  3695. ]
  3696. },
  3697. "post": {
  3698. "tags": [
  3699. "wechat"
  3700. ]
  3701. }
  3702. },
  3703. "/wechat/api/wechat/user/get": {
  3704. "get": {
  3705. "tags": [
  3706. "wechat"
  3707. ]
  3708. },
  3709. "post": {
  3710. "tags": [
  3711. "wechat"
  3712. ]
  3713. }
  3714. }
  3715. },
  3716. "definitions": {
  3717. "ApiError": {
  3718. "title": "ApiError",
  3719. "type": "object"
  3720. },
  3721. "ApiOK": {
  3722. "title": "ApiOK",
  3723. "type": "object"
  3724. },
  3725. "ApiOK|ApiError": {
  3726. "title": "ApiOK|ApiError",
  3727. "type": "object"
  3728. },
  3729. "JSONString": {
  3730. "title": "JSONString",
  3731. "type": "object"
  3732. }
  3733. },
  3734. "tags": [
  3735. {
  3736. "name": "base",
  3737. "description": "基础功能服务\n"
  3738. },
  3739. {
  3740. "name": "excel",
  3741. "description": "Excel相关服务\n"
  3742. },
  3743. {
  3744. "name": "file",
  3745. "description": "文件下载相关服务\n"
  3746. },
  3747. {
  3748. "name": "alarm",
  3749. "description": "告警相关服务\n"
  3750. },
  3751. {
  3752. "name": "comand",
  3753. "description": "指令控制相关服务\n"
  3754. },
  3755. {
  3756. "name": "dataoptimize",
  3757. "description": "数据优化相关服务\n"
  3758. },
  3759. {
  3760. "name": "device",
  3761. "description": "设备管理相关服务\n"
  3762. },
  3763. {
  3764. "name": "isslog",
  3765. "description": "ISS日志相关服务\n"
  3766. },
  3767. {
  3768. "name": "linkevent",
  3769. "description": "联动管理相关服务\n"
  3770. },
  3771. {
  3772. "name": "model",
  3773. "description": "物模型相关服务\n"
  3774. },
  3775. {
  3776. "name": "scene",
  3777. "description": "业务场景模块相关服务\n"
  3778. },
  3779. {
  3780. "name": "task",
  3781. "description": "计划任务相关服务\n"
  3782. },
  3783. {
  3784. "name": "region",
  3785. "description": "区域管理相关服务\n"
  3786. },
  3787. {
  3788. "name": "app",
  3789. "description": "应用管理服务控制器\n"
  3790. },
  3791. {
  3792. "name": "report",
  3793. "description": "数据统计报表相关服务\n"
  3794. },
  3795. {
  3796. "name": "blacklist",
  3797. "description": "告警配置黑名单控制器\n"
  3798. }
  3799. ]
  3800. }