swagger.json 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a gateway server. On the page, you can go to do testing for every API.",
  5. "title": "Project smart-supplier-management-gateway's APIs",
  6. "contact": {},
  7. "license": {},
  8. "version": "1.1"
  9. },
  10. "paths": {
  11. "/api/v1/device": {
  12. "delete": {
  13. "description": "拆机申请",
  14. "consumes": [
  15. "application/json"
  16. ],
  17. "produces": [
  18. "application/json"
  19. ],
  20. "tags": [
  21. "device"
  22. ],
  23. "summary": "拆机申请",
  24. "parameters": [
  25. {
  26. "type": "string",
  27. "description": " ",
  28. "name": "token",
  29. "in": "header",
  30. "required": true
  31. },
  32. {
  33. "description": " ",
  34. "name": "body",
  35. "in": "body",
  36. "required": true,
  37. "schema": {
  38. "$ref": "#/definitions/v1.DeviceDelBody"
  39. }
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "OK",
  45. "schema": {
  46. "$ref": "#/definitions/v1.DeviceDelResponse"
  47. }
  48. },
  49. "500": {
  50. "description": "Internal Server Error",
  51. "schema": {
  52. "$ref": "#/definitions/base.HTTPError"
  53. }
  54. }
  55. }
  56. }
  57. },
  58. "/api/v1/device/attendance": {
  59. "post": {
  60. "description": "添加实名制设备",
  61. "consumes": [
  62. "application/json"
  63. ],
  64. "produces": [
  65. "application/json"
  66. ],
  67. "tags": [
  68. "device"
  69. ],
  70. "summary": "添加实名制设备",
  71. "parameters": [
  72. {
  73. "type": "string",
  74. "description": " ",
  75. "name": "token",
  76. "in": "header",
  77. "required": true
  78. },
  79. {
  80. "description": " ",
  81. "name": "body",
  82. "in": "body",
  83. "required": true,
  84. "schema": {
  85. "$ref": "#/definitions/v1.DeviceAddBody"
  86. }
  87. }
  88. ],
  89. "responses": {
  90. "200": {
  91. "description": "OK",
  92. "schema": {
  93. "$ref": "#/definitions/v1.DeviceAddResponse"
  94. }
  95. },
  96. "500": {
  97. "description": "Internal Server Error",
  98. "schema": {
  99. "$ref": "#/definitions/base.HTTPError"
  100. }
  101. }
  102. }
  103. }
  104. },
  105. "/api/v1/device/attendance_list": {
  106. "get": {
  107. "description": "实名制设备列表",
  108. "consumes": [
  109. "application/json"
  110. ],
  111. "produces": [
  112. "application/json"
  113. ],
  114. "tags": [
  115. "device"
  116. ],
  117. "summary": "实名制设备列表",
  118. "parameters": [
  119. {
  120. "type": "string",
  121. "description": " ",
  122. "name": "token",
  123. "in": "header",
  124. "required": true
  125. },
  126. {
  127. "type": "string",
  128. "description": "过滤字段",
  129. "name": "filter",
  130. "in": "query"
  131. },
  132. {
  133. "type": "integer",
  134. "description": " ",
  135. "name": "page",
  136. "in": "query"
  137. },
  138. {
  139. "type": "integer",
  140. "description": "设备类型编码",
  141. "name": "type_code",
  142. "in": "query"
  143. },
  144. {
  145. "type": "string",
  146. "description": "状态,逗号分隔:0 待审核 1 通过 2 未通过",
  147. "name": "filter_status",
  148. "in": "query"
  149. }
  150. ],
  151. "responses": {
  152. "200": {
  153. "description": "OK",
  154. "schema": {
  155. "$ref": "#/definitions/v1.DeviceListResponse"
  156. }
  157. },
  158. "500": {
  159. "description": "Internal Server Error",
  160. "schema": {
  161. "$ref": "#/definitions/base.HTTPError"
  162. }
  163. }
  164. }
  165. }
  166. },
  167. "/api/v1/device/can_del_list": {
  168. "get": {
  169. "description": "可拆机的设备列表",
  170. "consumes": [
  171. "application/json"
  172. ],
  173. "produces": [
  174. "application/json"
  175. ],
  176. "tags": [
  177. "device"
  178. ],
  179. "summary": "可拆机的设备列表",
  180. "parameters": [
  181. {
  182. "type": "string",
  183. "description": " ",
  184. "name": "token",
  185. "in": "header",
  186. "required": true
  187. },
  188. {
  189. "type": "string",
  190. "description": "过滤字段",
  191. "name": "filter",
  192. "in": "query"
  193. },
  194. {
  195. "type": "integer",
  196. "description": " ",
  197. "name": "page",
  198. "in": "query"
  199. },
  200. {
  201. "type": "integer",
  202. "description": "设备类型编码",
  203. "name": "type_code",
  204. "in": "query"
  205. }
  206. ],
  207. "responses": {
  208. "200": {
  209. "description": "OK",
  210. "schema": {
  211. "$ref": "#/definitions/v1.DeviceListResponse"
  212. }
  213. },
  214. "500": {
  215. "description": "Internal Server Error",
  216. "schema": {
  217. "$ref": "#/definitions/base.HTTPError"
  218. }
  219. }
  220. }
  221. }
  222. },
  223. "/api/v1/device/default_type_list": {
  224. "get": {
  225. "description": "设备类型列表",
  226. "consumes": [
  227. "application/json"
  228. ],
  229. "produces": [
  230. "application/json"
  231. ],
  232. "tags": [
  233. "device"
  234. ],
  235. "summary": "设备类型列表",
  236. "parameters": [
  237. {
  238. "type": "string",
  239. "description": " ",
  240. "name": "token",
  241. "in": "header",
  242. "required": true
  243. }
  244. ],
  245. "responses": {
  246. "200": {
  247. "description": "OK",
  248. "schema": {
  249. "$ref": "#/definitions/v1.DeviceTypeListResponse"
  250. }
  251. },
  252. "500": {
  253. "description": "Internal Server Error",
  254. "schema": {
  255. "$ref": "#/definitions/base.HTTPError"
  256. }
  257. }
  258. }
  259. }
  260. },
  261. "/api/v1/device/del_job_list": {
  262. "get": {
  263. "description": "设备拆机工单列表",
  264. "consumes": [
  265. "application/json"
  266. ],
  267. "produces": [
  268. "application/json"
  269. ],
  270. "tags": [
  271. "device"
  272. ],
  273. "summary": "设备拆机工单列表",
  274. "parameters": [
  275. {
  276. "type": "string",
  277. "description": " ",
  278. "name": "token",
  279. "in": "header",
  280. "required": true
  281. },
  282. {
  283. "type": "integer",
  284. "description": " ",
  285. "name": "page",
  286. "in": "query"
  287. },
  288. {
  289. "type": "string",
  290. "description": "状态,逗号分隔:0 待审核 1 通过 2 未通过",
  291. "name": "filter_status",
  292. "in": "query"
  293. },
  294. {
  295. "type": "string",
  296. "description": " ",
  297. "name": "filter",
  298. "in": "query"
  299. }
  300. ],
  301. "responses": {
  302. "200": {
  303. "description": "OK",
  304. "schema": {
  305. "$ref": "#/definitions/v1.DeviceDelJobListResponse"
  306. }
  307. },
  308. "500": {
  309. "description": "Internal Server Error",
  310. "schema": {
  311. "$ref": "#/definitions/base.HTTPError"
  312. }
  313. }
  314. }
  315. }
  316. },
  317. "/api/v1/device/dust": {
  318. "post": {
  319. "description": "添加扬尘设备",
  320. "consumes": [
  321. "application/json"
  322. ],
  323. "produces": [
  324. "application/json"
  325. ],
  326. "tags": [
  327. "device"
  328. ],
  329. "summary": "添加扬尘设备",
  330. "parameters": [
  331. {
  332. "type": "string",
  333. "description": " ",
  334. "name": "token",
  335. "in": "header",
  336. "required": true
  337. },
  338. {
  339. "description": " ",
  340. "name": "body",
  341. "in": "body",
  342. "required": true,
  343. "schema": {
  344. "$ref": "#/definitions/v1.DeviceAddBody"
  345. }
  346. }
  347. ],
  348. "responses": {
  349. "200": {
  350. "description": "OK",
  351. "schema": {
  352. "$ref": "#/definitions/v1.DeviceAddResponse"
  353. }
  354. },
  355. "500": {
  356. "description": "Internal Server Error",
  357. "schema": {
  358. "$ref": "#/definitions/base.HTTPError"
  359. }
  360. }
  361. }
  362. }
  363. },
  364. "/api/v1/device/dust_list": {
  365. "get": {
  366. "description": "扬尘设备列表",
  367. "consumes": [
  368. "application/json"
  369. ],
  370. "produces": [
  371. "application/json"
  372. ],
  373. "tags": [
  374. "device"
  375. ],
  376. "summary": "扬尘设备列表",
  377. "parameters": [
  378. {
  379. "type": "string",
  380. "description": " ",
  381. "name": "token",
  382. "in": "header",
  383. "required": true
  384. },
  385. {
  386. "type": "string",
  387. "description": "过滤字段",
  388. "name": "filter",
  389. "in": "query"
  390. },
  391. {
  392. "type": "integer",
  393. "description": " ",
  394. "name": "page",
  395. "in": "query"
  396. },
  397. {
  398. "type": "integer",
  399. "description": "设备类型编码",
  400. "name": "type_code",
  401. "in": "query"
  402. },
  403. {
  404. "type": "string",
  405. "description": "状态,逗号分隔:0 待审核 1 通过 2 未通过",
  406. "name": "filter_status",
  407. "in": "query"
  408. }
  409. ],
  410. "responses": {
  411. "200": {
  412. "description": "OK",
  413. "schema": {
  414. "$ref": "#/definitions/v1.DeviceListResponse"
  415. }
  416. },
  417. "500": {
  418. "description": "Internal Server Error",
  419. "schema": {
  420. "$ref": "#/definitions/base.HTTPError"
  421. }
  422. }
  423. }
  424. }
  425. },
  426. "/api/v1/device/type": {
  427. "post": {
  428. "description": "申请添加设备类型",
  429. "consumes": [
  430. "application/json"
  431. ],
  432. "produces": [
  433. "application/json"
  434. ],
  435. "tags": [
  436. "device"
  437. ],
  438. "summary": "申请添加设备类型",
  439. "parameters": [
  440. {
  441. "type": "string",
  442. "description": " ",
  443. "name": "token",
  444. "in": "header",
  445. "required": true
  446. },
  447. {
  448. "description": " ",
  449. "name": "body",
  450. "in": "body",
  451. "required": true,
  452. "schema": {
  453. "$ref": "#/definitions/v1.DeviceTypeAddBody"
  454. }
  455. }
  456. ],
  457. "responses": {
  458. "200": {
  459. "description": "OK",
  460. "schema": {
  461. "$ref": "#/definitions/v1.DeviceTypeAddResponse"
  462. }
  463. },
  464. "500": {
  465. "description": "Internal Server Error",
  466. "schema": {
  467. "$ref": "#/definitions/base.HTTPError"
  468. }
  469. }
  470. }
  471. }
  472. },
  473. "/api/v1/device/type_list": {
  474. "get": {
  475. "description": "设备类型申报列表",
  476. "consumes": [
  477. "application/json"
  478. ],
  479. "produces": [
  480. "application/json"
  481. ],
  482. "tags": [
  483. "device"
  484. ],
  485. "summary": "设备类型申报列表",
  486. "parameters": [
  487. {
  488. "type": "string",
  489. "description": " ",
  490. "name": "token",
  491. "in": "header",
  492. "required": true
  493. },
  494. {
  495. "type": "integer",
  496. "description": " ",
  497. "name": "device_code",
  498. "in": "query"
  499. },
  500. {
  501. "type": "integer",
  502. "description": "0. 已对接的设备类型 1 设备类型申请列表 2 设备类型对接列表 3.可申请的设备类型 4 可对接的设备类型 6 平台支持的所有的设备类型",
  503. "name": "list_type",
  504. "in": "query",
  505. "required": true
  506. }
  507. ],
  508. "responses": {
  509. "200": {
  510. "description": "OK",
  511. "schema": {
  512. "$ref": "#/definitions/v1.DeviceTypeListResponse"
  513. }
  514. },
  515. "500": {
  516. "description": "Internal Server Error",
  517. "schema": {
  518. "$ref": "#/definitions/base.HTTPError"
  519. }
  520. }
  521. }
  522. }
  523. },
  524. "/api/v1/device/type_testing": {
  525. "post": {
  526. "description": "设备类型对接申请",
  527. "consumes": [
  528. "application/json"
  529. ],
  530. "produces": [
  531. "application/json"
  532. ],
  533. "tags": [
  534. "device"
  535. ],
  536. "summary": "设备类型对接申请",
  537. "parameters": [
  538. {
  539. "type": "string",
  540. "description": " ",
  541. "name": "token",
  542. "in": "header",
  543. "required": true
  544. },
  545. {
  546. "description": " ",
  547. "name": "body",
  548. "in": "body",
  549. "required": true,
  550. "schema": {
  551. "$ref": "#/definitions/v1.DeviceTypeTestingAddBody"
  552. }
  553. }
  554. ],
  555. "responses": {
  556. "200": {
  557. "description": "OK",
  558. "schema": {
  559. "$ref": "#/definitions/v1.DeviceTypeTestingAddResponse"
  560. }
  561. },
  562. "500": {
  563. "description": "Internal Server Error",
  564. "schema": {
  565. "$ref": "#/definitions/base.HTTPError"
  566. }
  567. }
  568. }
  569. }
  570. },
  571. "/api/v1/device/vedio": {
  572. "post": {
  573. "description": "添加视频设备",
  574. "consumes": [
  575. "application/json"
  576. ],
  577. "produces": [
  578. "application/json"
  579. ],
  580. "tags": [
  581. "device"
  582. ],
  583. "summary": "添加视频设备",
  584. "parameters": [
  585. {
  586. "type": "string",
  587. "description": " ",
  588. "name": "token",
  589. "in": "header",
  590. "required": true
  591. },
  592. {
  593. "description": " ",
  594. "name": "body",
  595. "in": "body",
  596. "required": true,
  597. "schema": {
  598. "$ref": "#/definitions/v1.VedioAddBody"
  599. }
  600. }
  601. ],
  602. "responses": {
  603. "200": {
  604. "description": "OK",
  605. "schema": {
  606. "$ref": "#/definitions/v1.VedioAddResponse"
  607. }
  608. },
  609. "500": {
  610. "description": "Internal Server Error",
  611. "schema": {
  612. "$ref": "#/definitions/base.HTTPError"
  613. }
  614. }
  615. }
  616. }
  617. },
  618. "/api/v1/device/vedio_channel": {
  619. "put": {
  620. "description": "编辑通道",
  621. "consumes": [
  622. "application/json"
  623. ],
  624. "produces": [
  625. "application/json"
  626. ],
  627. "tags": [
  628. "device"
  629. ],
  630. "summary": "编辑通道",
  631. "parameters": [
  632. {
  633. "type": "string",
  634. "description": " ",
  635. "name": "token",
  636. "in": "header",
  637. "required": true
  638. },
  639. {
  640. "description": " ",
  641. "name": "body",
  642. "in": "body",
  643. "required": true,
  644. "schema": {
  645. "$ref": "#/definitions/v1.ChannelUpdateBody"
  646. }
  647. }
  648. ],
  649. "responses": {
  650. "200": {
  651. "description": "OK",
  652. "schema": {
  653. "$ref": "#/definitions/v1.ChannelUpdateResponse"
  654. }
  655. },
  656. "500": {
  657. "description": "Internal Server Error",
  658. "schema": {
  659. "$ref": "#/definitions/base.HTTPError"
  660. }
  661. }
  662. }
  663. },
  664. "post": {
  665. "description": "添加通道",
  666. "consumes": [
  667. "application/json"
  668. ],
  669. "produces": [
  670. "application/json"
  671. ],
  672. "tags": [
  673. "device"
  674. ],
  675. "summary": "添加通道",
  676. "parameters": [
  677. {
  678. "type": "string",
  679. "description": " ",
  680. "name": "token",
  681. "in": "header",
  682. "required": true
  683. },
  684. {
  685. "description": " ",
  686. "name": "body",
  687. "in": "body",
  688. "required": true,
  689. "schema": {
  690. "$ref": "#/definitions/v1.ChannelAddBody"
  691. }
  692. }
  693. ],
  694. "responses": {
  695. "200": {
  696. "description": "OK",
  697. "schema": {
  698. "$ref": "#/definitions/v1.ChannelAddResponse"
  699. }
  700. },
  701. "500": {
  702. "description": "Internal Server Error",
  703. "schema": {
  704. "$ref": "#/definitions/base.HTTPError"
  705. }
  706. }
  707. }
  708. }
  709. },
  710. "/api/v1/device/vedio_channel_list": {
  711. "get": {
  712. "description": "通道列表",
  713. "consumes": [
  714. "application/json"
  715. ],
  716. "produces": [
  717. "application/json"
  718. ],
  719. "tags": [
  720. "device"
  721. ],
  722. "summary": "通道列表",
  723. "parameters": [
  724. {
  725. "type": "string",
  726. "description": " ",
  727. "name": "token",
  728. "in": "header",
  729. "required": true
  730. },
  731. {
  732. "type": "string",
  733. "description": " ",
  734. "name": "sn",
  735. "in": "query",
  736. "required": true
  737. },
  738. {
  739. "type": "string",
  740. "description": " ",
  741. "name": "channel_no",
  742. "in": "query"
  743. },
  744. {
  745. "type": "integer",
  746. "description": " ",
  747. "name": "page",
  748. "in": "query"
  749. }
  750. ],
  751. "responses": {
  752. "200": {
  753. "description": "OK",
  754. "schema": {
  755. "$ref": "#/definitions/v1.ChannelListResponse"
  756. }
  757. },
  758. "500": {
  759. "description": "Internal Server Error",
  760. "schema": {
  761. "$ref": "#/definitions/base.HTTPError"
  762. }
  763. }
  764. }
  765. }
  766. },
  767. "/api/v1/device/vedio_list": {
  768. "get": {
  769. "description": "视频设备列表",
  770. "consumes": [
  771. "application/json"
  772. ],
  773. "produces": [
  774. "application/json"
  775. ],
  776. "tags": [
  777. "device"
  778. ],
  779. "summary": "视频设备列表",
  780. "parameters": [
  781. {
  782. "type": "string",
  783. "description": " ",
  784. "name": "token",
  785. "in": "header",
  786. "required": true
  787. },
  788. {
  789. "type": "string",
  790. "description": "过滤字段",
  791. "name": "filter",
  792. "in": "query"
  793. },
  794. {
  795. "type": "integer",
  796. "description": " ",
  797. "name": "page",
  798. "in": "query"
  799. }
  800. ],
  801. "responses": {
  802. "200": {
  803. "description": "OK",
  804. "schema": {
  805. "$ref": "#/definitions/v1.VedioListResponse"
  806. }
  807. },
  808. "500": {
  809. "description": "Internal Server Error",
  810. "schema": {
  811. "$ref": "#/definitions/base.HTTPError"
  812. }
  813. }
  814. }
  815. }
  816. },
  817. "/api/v1/device_type_all": {
  818. "get": {
  819. "description": "设备类型总列表",
  820. "consumes": [
  821. "application/json"
  822. ],
  823. "produces": [
  824. "application/json"
  825. ],
  826. "tags": [
  827. "device"
  828. ],
  829. "summary": "设备类型总列表",
  830. "responses": {
  831. "200": {
  832. "description": "OK",
  833. "schema": {
  834. "$ref": "#/definitions/v1.DeviceAllTypeListResponse"
  835. }
  836. },
  837. "500": {
  838. "description": "Internal Server Error",
  839. "schema": {
  840. "$ref": "#/definitions/base.HTTPError"
  841. }
  842. }
  843. }
  844. }
  845. },
  846. "/api/v1/log/list": {
  847. "get": {
  848. "description": "操作日志列表",
  849. "consumes": [
  850. "application/json"
  851. ],
  852. "produces": [
  853. "application/json"
  854. ],
  855. "tags": [
  856. "log"
  857. ],
  858. "summary": "操作日志列表",
  859. "parameters": [
  860. {
  861. "type": "string",
  862. "description": " ",
  863. "name": "token",
  864. "in": "header",
  865. "required": true
  866. },
  867. {
  868. "type": "string",
  869. "description": " ",
  870. "name": "page",
  871. "in": "query",
  872. "required": true
  873. },
  874. {
  875. "type": "integer",
  876. "description": " ",
  877. "name": "start",
  878. "in": "query"
  879. },
  880. {
  881. "type": "integer",
  882. "description": " ",
  883. "name": "end",
  884. "in": "query"
  885. }
  886. ],
  887. "responses": {
  888. "200": {
  889. "description": "OK",
  890. "schema": {
  891. "$ref": "#/definitions/v1.LogListResponse"
  892. }
  893. },
  894. "500": {
  895. "description": "Internal Server Error",
  896. "schema": {
  897. "$ref": "#/definitions/base.HTTPError"
  898. }
  899. }
  900. }
  901. }
  902. },
  903. "/api/v1/project/list": {
  904. "get": {
  905. "description": "项目列表",
  906. "consumes": [
  907. "application/json"
  908. ],
  909. "produces": [
  910. "application/json"
  911. ],
  912. "tags": [
  913. "device"
  914. ],
  915. "summary": "项目列表",
  916. "parameters": [
  917. {
  918. "type": "string",
  919. "description": " ",
  920. "name": "token",
  921. "in": "header",
  922. "required": true
  923. }
  924. ],
  925. "responses": {
  926. "200": {
  927. "description": "OK",
  928. "schema": {
  929. "$ref": "#/definitions/v1.ProjectListResponse"
  930. }
  931. },
  932. "500": {
  933. "description": "Internal Server Error",
  934. "schema": {
  935. "$ref": "#/definitions/base.HTTPError"
  936. }
  937. }
  938. }
  939. }
  940. },
  941. "/api/v1/publicity": {
  942. "get": {
  943. "description": "公示",
  944. "consumes": [
  945. "application/json"
  946. ],
  947. "produces": [
  948. "application/json"
  949. ],
  950. "tags": [
  951. "publicity"
  952. ],
  953. "summary": "公示",
  954. "parameters": [
  955. {
  956. "type": "string",
  957. "description": "供应商名称",
  958. "name": "provider",
  959. "in": "query"
  960. },
  961. {
  962. "type": "integer",
  963. "description": "设备类型",
  964. "name": "device_code",
  965. "in": "query"
  966. }
  967. ],
  968. "responses": {
  969. "200": {
  970. "description": "OK",
  971. "schema": {
  972. "$ref": "#/definitions/v1.PublicityResponse"
  973. }
  974. },
  975. "500": {
  976. "description": "Internal Server Error",
  977. "schema": {
  978. "$ref": "#/definitions/base.HTTPError"
  979. }
  980. }
  981. }
  982. }
  983. },
  984. "/api/v1/token_refresh": {
  985. "put": {
  986. "description": "刷新token",
  987. "consumes": [
  988. "application/json"
  989. ],
  990. "produces": [
  991. "application/json"
  992. ],
  993. "tags": [
  994. "user"
  995. ],
  996. "summary": "刷新token",
  997. "parameters": [
  998. {
  999. "type": "string",
  1000. "description": "token",
  1001. "name": "token",
  1002. "in": "header",
  1003. "required": true
  1004. }
  1005. ],
  1006. "responses": {
  1007. "200": {
  1008. "description": "OK",
  1009. "schema": {
  1010. "$ref": "#/definitions/v1.TokenResponse"
  1011. }
  1012. },
  1013. "500": {
  1014. "description": "Internal Server Error",
  1015. "schema": {
  1016. "$ref": "#/definitions/base.HTTPError"
  1017. }
  1018. }
  1019. }
  1020. }
  1021. },
  1022. "/api/v1/upload": {
  1023. "post": {
  1024. "description": "上传文件",
  1025. "consumes": [
  1026. "application/json"
  1027. ],
  1028. "produces": [
  1029. "application/json"
  1030. ],
  1031. "tags": [
  1032. "upload"
  1033. ],
  1034. "summary": "上传文件",
  1035. "parameters": [
  1036. {
  1037. "type": "file",
  1038. "description": "file",
  1039. "name": "file",
  1040. "in": "formData"
  1041. }
  1042. ],
  1043. "responses": {
  1044. "200": {
  1045. "description": "OK",
  1046. "schema": {
  1047. "$ref": "#/definitions/v1.UploadResponse"
  1048. }
  1049. },
  1050. "500": {
  1051. "description": "Internal Server Error",
  1052. "schema": {
  1053. "$ref": "#/definitions/base.HTTPError"
  1054. }
  1055. }
  1056. }
  1057. }
  1058. },
  1059. "/api/v1/user/captcha_id": {
  1060. "get": {
  1061. "description": "获取图片验证码id",
  1062. "consumes": [
  1063. "application/json"
  1064. ],
  1065. "produces": [
  1066. "application/json"
  1067. ],
  1068. "tags": [
  1069. "user"
  1070. ],
  1071. "summary": "获取图片验证码id",
  1072. "responses": {
  1073. "200": {
  1074. "description": "OK",
  1075. "schema": {
  1076. "$ref": "#/definitions/v1.CaptchaIdResponse"
  1077. }
  1078. },
  1079. "500": {
  1080. "description": "Internal Server Error",
  1081. "schema": {
  1082. "$ref": "#/definitions/base.HTTPError"
  1083. }
  1084. }
  1085. }
  1086. }
  1087. },
  1088. "/api/v1/user/captcha_png/{captcha_id}": {
  1089. "get": {
  1090. "description": "获取图片验证码图片",
  1091. "consumes": [
  1092. "application/json"
  1093. ],
  1094. "produces": [
  1095. "application/json"
  1096. ],
  1097. "tags": [
  1098. "user"
  1099. ],
  1100. "summary": "获取图片验证码图片",
  1101. "parameters": [
  1102. {
  1103. "type": "string",
  1104. "description": " ",
  1105. "name": "captcha_id",
  1106. "in": "path",
  1107. "required": true
  1108. }
  1109. ],
  1110. "responses": {
  1111. "500": {
  1112. "description": "Internal Server Error",
  1113. "schema": {
  1114. "$ref": "#/definitions/base.HTTPError"
  1115. }
  1116. }
  1117. }
  1118. }
  1119. },
  1120. "/api/v1/user/change_passwd": {
  1121. "put": {
  1122. "description": "修改密码",
  1123. "consumes": [
  1124. "application/json"
  1125. ],
  1126. "produces": [
  1127. "application/json"
  1128. ],
  1129. "tags": [
  1130. "user"
  1131. ],
  1132. "summary": "修改密码",
  1133. "parameters": [
  1134. {
  1135. "type": "string",
  1136. "description": " ",
  1137. "name": "token",
  1138. "in": "header",
  1139. "required": true
  1140. },
  1141. {
  1142. "description": " ",
  1143. "name": "body",
  1144. "in": "body",
  1145. "required": true,
  1146. "schema": {
  1147. "$ref": "#/definitions/v1.ChangePasswdBody"
  1148. }
  1149. }
  1150. ],
  1151. "responses": {
  1152. "200": {
  1153. "description": "OK",
  1154. "schema": {
  1155. "$ref": "#/definitions/v1.ChangePasswdResponse"
  1156. }
  1157. },
  1158. "500": {
  1159. "description": "Internal Server Error",
  1160. "schema": {
  1161. "$ref": "#/definitions/base.HTTPError"
  1162. }
  1163. }
  1164. }
  1165. }
  1166. },
  1167. "/api/v1/user/info": {
  1168. "get": {
  1169. "description": "获取电话和邮箱",
  1170. "consumes": [
  1171. "application/json"
  1172. ],
  1173. "produces": [
  1174. "application/json"
  1175. ],
  1176. "tags": [
  1177. "用户"
  1178. ],
  1179. "summary": "获取电话和邮箱",
  1180. "parameters": [
  1181. {
  1182. "type": "string",
  1183. "description": " ",
  1184. "name": "token",
  1185. "in": "header",
  1186. "required": true
  1187. }
  1188. ],
  1189. "responses": {
  1190. "200": {
  1191. "description": "OK",
  1192. "schema": {
  1193. "$ref": "#/definitions/v1.UserInfoResponse"
  1194. }
  1195. },
  1196. "500": {
  1197. "description": "Internal Server Error",
  1198. "schema": {
  1199. "$ref": "#/definitions/base.HTTPError"
  1200. }
  1201. }
  1202. }
  1203. }
  1204. },
  1205. "/api/v1/user/login": {
  1206. "post": {
  1207. "description": "登录",
  1208. "consumes": [
  1209. "application/json"
  1210. ],
  1211. "produces": [
  1212. "application/json"
  1213. ],
  1214. "tags": [
  1215. "user"
  1216. ],
  1217. "summary": "登录",
  1218. "parameters": [
  1219. {
  1220. "description": "登录信息",
  1221. "name": "body",
  1222. "in": "body",
  1223. "required": true,
  1224. "schema": {
  1225. "$ref": "#/definitions/v1.LoginBody"
  1226. }
  1227. }
  1228. ],
  1229. "responses": {
  1230. "200": {
  1231. "description": "OK",
  1232. "schema": {
  1233. "$ref": "#/definitions/v1.LoginResponse"
  1234. }
  1235. },
  1236. "500": {
  1237. "description": "Internal Server Error",
  1238. "schema": {
  1239. "$ref": "#/definitions/base.HTTPError"
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "/api/v1/user/mail": {
  1246. "get": {
  1247. "description": "修改邮箱",
  1248. "consumes": [
  1249. "application/json"
  1250. ],
  1251. "produces": [
  1252. "application/json"
  1253. ],
  1254. "tags": [
  1255. "user"
  1256. ],
  1257. "summary": "修改邮箱",
  1258. "parameters": [
  1259. {
  1260. "type": "string",
  1261. "description": " ",
  1262. "name": "token",
  1263. "in": "query",
  1264. "required": true
  1265. }
  1266. ],
  1267. "responses": {
  1268. "200": {
  1269. "description": "OK",
  1270. "schema": {
  1271. "$ref": "#/definitions/v1.MailUpdateResponse"
  1272. }
  1273. },
  1274. "500": {
  1275. "description": "Internal Server Error",
  1276. "schema": {
  1277. "$ref": "#/definitions/base.HTTPError"
  1278. }
  1279. }
  1280. }
  1281. }
  1282. },
  1283. "/api/v1/user/phone": {
  1284. "put": {
  1285. "description": "修改电话号码",
  1286. "consumes": [
  1287. "application/json"
  1288. ],
  1289. "produces": [
  1290. "application/json"
  1291. ],
  1292. "tags": [
  1293. "user"
  1294. ],
  1295. "summary": "修改电话号码",
  1296. "parameters": [
  1297. {
  1298. "type": "string",
  1299. "description": " ",
  1300. "name": "token",
  1301. "in": "header",
  1302. "required": true
  1303. },
  1304. {
  1305. "description": " ",
  1306. "name": "body",
  1307. "in": "body",
  1308. "required": true,
  1309. "schema": {
  1310. "$ref": "#/definitions/v1.PhoneUpdateBody"
  1311. }
  1312. }
  1313. ],
  1314. "responses": {
  1315. "200": {
  1316. "description": "OK",
  1317. "schema": {
  1318. "$ref": "#/definitions/v1.PhoneUpdateResponse"
  1319. }
  1320. },
  1321. "500": {
  1322. "description": "Internal Server Error",
  1323. "schema": {
  1324. "$ref": "#/definitions/base.HTTPError"
  1325. }
  1326. }
  1327. }
  1328. }
  1329. },
  1330. "/api/v1/user/provider_info": {
  1331. "get": {
  1332. "description": "供应商基本信息",
  1333. "consumes": [
  1334. "application/json"
  1335. ],
  1336. "produces": [
  1337. "application/json"
  1338. ],
  1339. "tags": [
  1340. "用户"
  1341. ],
  1342. "summary": "供应商基本信息",
  1343. "parameters": [
  1344. {
  1345. "type": "string",
  1346. "description": " ",
  1347. "name": "token",
  1348. "in": "header",
  1349. "required": true
  1350. }
  1351. ],
  1352. "responses": {
  1353. "200": {
  1354. "description": "OK",
  1355. "schema": {
  1356. "$ref": "#/definitions/v1.ProviderInfoResponse"
  1357. }
  1358. },
  1359. "500": {
  1360. "description": "Internal Server Error",
  1361. "schema": {
  1362. "$ref": "#/definitions/base.HTTPError"
  1363. }
  1364. }
  1365. }
  1366. }
  1367. },
  1368. "/api/v1/user/register": {
  1369. "post": {
  1370. "description": "注册",
  1371. "consumes": [
  1372. "application/json"
  1373. ],
  1374. "produces": [
  1375. "application/json"
  1376. ],
  1377. "tags": [
  1378. "user"
  1379. ],
  1380. "summary": "注册",
  1381. "parameters": [
  1382. {
  1383. "description": "登录信息",
  1384. "name": "body",
  1385. "in": "body",
  1386. "required": true,
  1387. "schema": {
  1388. "$ref": "#/definitions/v1.RegisterBody"
  1389. }
  1390. }
  1391. ],
  1392. "responses": {
  1393. "200": {
  1394. "description": "OK",
  1395. "schema": {
  1396. "$ref": "#/definitions/v1.RegisterResponse"
  1397. }
  1398. },
  1399. "500": {
  1400. "description": "Internal Server Error",
  1401. "schema": {
  1402. "$ref": "#/definitions/base.HTTPError"
  1403. }
  1404. }
  1405. }
  1406. }
  1407. },
  1408. "/api/v1/user/set_passwd": {
  1409. "put": {
  1410. "description": "找回密码设置密码",
  1411. "consumes": [
  1412. "application/json"
  1413. ],
  1414. "produces": [
  1415. "application/json"
  1416. ],
  1417. "tags": [
  1418. "user"
  1419. ],
  1420. "summary": "找回密码设置密码",
  1421. "parameters": [
  1422. {
  1423. "description": "登录信息",
  1424. "name": "body",
  1425. "in": "body",
  1426. "required": true,
  1427. "schema": {
  1428. "$ref": "#/definitions/v1.SetPasswdBody"
  1429. }
  1430. }
  1431. ],
  1432. "responses": {
  1433. "200": {
  1434. "description": "OK",
  1435. "schema": {
  1436. "$ref": "#/definitions/v1.SetPasswdResponse"
  1437. }
  1438. },
  1439. "500": {
  1440. "description": "Internal Server Error",
  1441. "schema": {
  1442. "$ref": "#/definitions/base.HTTPError"
  1443. }
  1444. }
  1445. }
  1446. }
  1447. },
  1448. "/api/v1/user/status": {
  1449. "get": {
  1450. "description": "根据社会码获取注册状态",
  1451. "consumes": [
  1452. "application/json"
  1453. ],
  1454. "produces": [
  1455. "application/json"
  1456. ],
  1457. "tags": [
  1458. "user"
  1459. ],
  1460. "summary": "根据社会码获取注册状态",
  1461. "parameters": [
  1462. {
  1463. "type": "string",
  1464. "description": " ",
  1465. "name": "social_code",
  1466. "in": "query",
  1467. "required": true
  1468. }
  1469. ],
  1470. "responses": {
  1471. "200": {
  1472. "description": "OK",
  1473. "schema": {
  1474. "$ref": "#/definitions/v1.ProviderApproveStatusResponse"
  1475. }
  1476. },
  1477. "500": {
  1478. "description": "Internal Server Error",
  1479. "schema": {
  1480. "$ref": "#/definitions/base.HTTPError"
  1481. }
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "/api/v1/user/verify_mail": {
  1487. "put": {
  1488. "description": "发送验证邮件",
  1489. "consumes": [
  1490. "application/json"
  1491. ],
  1492. "produces": [
  1493. "application/json"
  1494. ],
  1495. "tags": [
  1496. "user"
  1497. ],
  1498. "summary": "发送验证邮件",
  1499. "parameters": [
  1500. {
  1501. "type": "string",
  1502. "description": " ",
  1503. "name": "token",
  1504. "in": "header",
  1505. "required": true
  1506. },
  1507. {
  1508. "description": " ",
  1509. "name": "body",
  1510. "in": "body",
  1511. "required": true,
  1512. "schema": {
  1513. "$ref": "#/definitions/v1.MailPrepareBody"
  1514. }
  1515. }
  1516. ],
  1517. "responses": {
  1518. "200": {
  1519. "description": "OK",
  1520. "schema": {
  1521. "$ref": "#/definitions/v1.MailPrepareResponse"
  1522. }
  1523. },
  1524. "500": {
  1525. "description": "Internal Server Error",
  1526. "schema": {
  1527. "$ref": "#/definitions/base.HTTPError"
  1528. }
  1529. }
  1530. }
  1531. }
  1532. },
  1533. "/api/v1/vcode": {
  1534. "get": {
  1535. "description": "获取短信验证码",
  1536. "consumes": [
  1537. "application/json"
  1538. ],
  1539. "produces": [
  1540. "application/json"
  1541. ],
  1542. "tags": [
  1543. "vcode"
  1544. ],
  1545. "summary": "获取短信验证码",
  1546. "parameters": [
  1547. {
  1548. "type": "string",
  1549. "description": "phone",
  1550. "name": "phone",
  1551. "in": "query",
  1552. "required": true
  1553. },
  1554. {
  1555. "type": "boolean",
  1556. "description": "verify",
  1557. "name": "verify",
  1558. "in": "query"
  1559. }
  1560. ],
  1561. "responses": {
  1562. "200": {
  1563. "description": "OK",
  1564. "schema": {
  1565. "$ref": "#/definitions/v1.VcodeResponse"
  1566. }
  1567. },
  1568. "500": {
  1569. "description": "Internal Server Error",
  1570. "schema": {
  1571. "$ref": "#/definitions/base.HTTPError"
  1572. }
  1573. }
  1574. }
  1575. }
  1576. }
  1577. },
  1578. "definitions": {
  1579. "base.HTTPError": {
  1580. "type": "object",
  1581. "properties": {
  1582. "code": {
  1583. "type": "integer",
  1584. "format": "int",
  1585. "example": 500
  1586. },
  1587. "message": {
  1588. "type": "string",
  1589. "example": "status bad request"
  1590. }
  1591. }
  1592. },
  1593. "v1.CaptchaIdData": {
  1594. "type": "object",
  1595. "properties": {
  1596. "capture_id": {
  1597. "type": "string"
  1598. }
  1599. }
  1600. },
  1601. "v1.CaptchaIdResponse": {
  1602. "type": "object",
  1603. "properties": {
  1604. "code": {
  1605. "description": "返回码",
  1606. "type": "integer",
  1607. "format": "int",
  1608. "default": 0
  1609. },
  1610. "data": {
  1611. "type": "object",
  1612. "$ref": "#/definitions/v1.CaptchaIdData"
  1613. },
  1614. "message": {
  1615. "description": "消息",
  1616. "type": "string",
  1617. "default": "success"
  1618. }
  1619. }
  1620. },
  1621. "v1.ChangePasswdBody": {
  1622. "type": "object",
  1623. "properties": {
  1624. "new": {
  1625. "type": "string"
  1626. },
  1627. "old": {
  1628. "type": "string"
  1629. }
  1630. }
  1631. },
  1632. "v1.ChangePasswdResponse": {
  1633. "type": "object",
  1634. "properties": {
  1635. "code": {
  1636. "description": "返回码",
  1637. "type": "integer",
  1638. "format": "int",
  1639. "default": 0
  1640. },
  1641. "message": {
  1642. "description": "消息",
  1643. "type": "string",
  1644. "default": "success"
  1645. }
  1646. }
  1647. },
  1648. "v1.ChannelAddBody": {
  1649. "type": "object",
  1650. "properties": {
  1651. "channelCount": {
  1652. "type": "integer"
  1653. },
  1654. "sn": {
  1655. "type": "string"
  1656. }
  1657. }
  1658. },
  1659. "v1.ChannelAddResponse": {
  1660. "type": "object",
  1661. "properties": {
  1662. "code": {
  1663. "description": "返回码",
  1664. "type": "integer",
  1665. "format": "int",
  1666. "default": 0
  1667. },
  1668. "message": {
  1669. "description": "消息",
  1670. "type": "string",
  1671. "default": "success"
  1672. }
  1673. }
  1674. },
  1675. "v1.ChannelItem": {
  1676. "type": "object",
  1677. "properties": {
  1678. "channel_no": {
  1679. "type": "string"
  1680. },
  1681. "id": {
  1682. "type": "integer"
  1683. },
  1684. "name": {
  1685. "type": "string"
  1686. },
  1687. "state": {
  1688. "type": "integer"
  1689. }
  1690. }
  1691. },
  1692. "v1.ChannelListReply": {
  1693. "type": "object",
  1694. "properties": {
  1695. "list": {
  1696. "type": "array",
  1697. "items": {
  1698. "$ref": "#/definitions/v1.ChannelItem"
  1699. }
  1700. },
  1701. "page": {
  1702. "type": "integer"
  1703. },
  1704. "page_size": {
  1705. "type": "integer"
  1706. },
  1707. "total": {
  1708. "type": "integer"
  1709. }
  1710. }
  1711. },
  1712. "v1.ChannelListResponse": {
  1713. "type": "object",
  1714. "properties": {
  1715. "code": {
  1716. "description": "返回码",
  1717. "type": "integer",
  1718. "format": "int",
  1719. "default": 0
  1720. },
  1721. "data": {
  1722. "type": "object",
  1723. "$ref": "#/definitions/v1.ChannelListReply"
  1724. },
  1725. "message": {
  1726. "description": "消息",
  1727. "type": "string",
  1728. "default": "success"
  1729. }
  1730. }
  1731. },
  1732. "v1.ChannelUpdateBody": {
  1733. "type": "object",
  1734. "properties": {
  1735. "id": {
  1736. "type": "integer"
  1737. },
  1738. "name": {
  1739. "type": "string"
  1740. }
  1741. }
  1742. },
  1743. "v1.ChannelUpdateResponse": {
  1744. "type": "object",
  1745. "properties": {
  1746. "code": {
  1747. "description": "返回码",
  1748. "type": "integer",
  1749. "format": "int",
  1750. "default": 0
  1751. },
  1752. "message": {
  1753. "description": "消息",
  1754. "type": "string",
  1755. "default": "success"
  1756. }
  1757. }
  1758. },
  1759. "v1.DeviceAddBody": {
  1760. "type": "object",
  1761. "properties": {
  1762. "batch": {
  1763. "description": "批次",
  1764. "type": "string"
  1765. },
  1766. "device_model": {
  1767. "description": "设备型号",
  1768. "type": "string"
  1769. },
  1770. "kind": {
  1771. "type": "integer"
  1772. },
  1773. "lat": {
  1774. "type": "number"
  1775. },
  1776. "lon": {
  1777. "type": "number"
  1778. },
  1779. "manufacturer": {
  1780. "description": "生产厂商",
  1781. "type": "string"
  1782. },
  1783. "name": {
  1784. "type": "string"
  1785. },
  1786. "person": {
  1787. "description": "联系人",
  1788. "type": "string"
  1789. },
  1790. "phone": {
  1791. "description": "联系电话",
  1792. "type": "string"
  1793. },
  1794. "project_code": {
  1795. "type": "string"
  1796. },
  1797. "project_id": {
  1798. "type": "integer"
  1799. },
  1800. "project_name": {
  1801. "type": "string"
  1802. },
  1803. "remark": {
  1804. "description": "备注",
  1805. "type": "string"
  1806. },
  1807. "sn": {
  1808. "type": "string"
  1809. },
  1810. "sub_kind": {
  1811. "type": "integer"
  1812. },
  1813. "unit": {
  1814. "description": "对接单位",
  1815. "type": "string"
  1816. },
  1817. "url": {
  1818. "description": "url视屏地址 仅扬尘有",
  1819. "type": "string"
  1820. }
  1821. }
  1822. },
  1823. "v1.DeviceAddReply": {
  1824. "type": "object",
  1825. "properties": {
  1826. "device_id": {
  1827. "type": "integer"
  1828. }
  1829. }
  1830. },
  1831. "v1.DeviceAddResponse": {
  1832. "type": "object",
  1833. "properties": {
  1834. "code": {
  1835. "description": "返回码",
  1836. "type": "integer",
  1837. "format": "int",
  1838. "default": 0
  1839. },
  1840. "data": {
  1841. "type": "object",
  1842. "$ref": "#/definitions/v1.DeviceAddReply"
  1843. },
  1844. "message": {
  1845. "description": "消息",
  1846. "type": "string",
  1847. "default": "success"
  1848. }
  1849. }
  1850. },
  1851. "v1.DeviceAllTypeListResponse": {
  1852. "type": "object",
  1853. "properties": {
  1854. "code": {
  1855. "description": "返回码",
  1856. "type": "integer",
  1857. "format": "int",
  1858. "default": 0
  1859. },
  1860. "data": {
  1861. "type": "object",
  1862. "$ref": "#/definitions/v1.DeviceTypeListReply"
  1863. },
  1864. "message": {
  1865. "description": "消息",
  1866. "type": "string",
  1867. "default": "success"
  1868. }
  1869. }
  1870. },
  1871. "v1.DeviceDelBody": {
  1872. "type": "object",
  1873. "properties": {
  1874. "id": {
  1875. "type": "integer"
  1876. },
  1877. "reason": {
  1878. "type": "string"
  1879. }
  1880. }
  1881. },
  1882. "v1.DeviceDelJobItem": {
  1883. "type": "object",
  1884. "properties": {
  1885. "apply_time": {
  1886. "description": "申请时间",
  1887. "type": "string"
  1888. },
  1889. "approve_time": {
  1890. "description": "审批时间",
  1891. "type": "string"
  1892. },
  1893. "device_name": {
  1894. "type": "string"
  1895. },
  1896. "feedback": {
  1897. "type": "string"
  1898. },
  1899. "id": {
  1900. "type": "integer"
  1901. },
  1902. "project_name": {
  1903. "description": "项目名称",
  1904. "type": "string"
  1905. },
  1906. "provider_name": {
  1907. "type": "string"
  1908. },
  1909. "reason": {
  1910. "type": "string"
  1911. },
  1912. "reviewer": {
  1913. "type": "string"
  1914. },
  1915. "safety_record_no": {
  1916. "description": "安检备案号",
  1917. "type": "string"
  1918. },
  1919. "sn": {
  1920. "type": "string"
  1921. },
  1922. "social_code": {
  1923. "type": "string"
  1924. },
  1925. "status": {
  1926. "description": "0 待审核 1 通过 2 项目不通过",
  1927. "type": "integer"
  1928. },
  1929. "type_code": {
  1930. "description": "设备类型编码",
  1931. "type": "integer"
  1932. },
  1933. "type_name": {
  1934. "type": "string"
  1935. }
  1936. }
  1937. },
  1938. "v1.DeviceDelJobListReply": {
  1939. "type": "object",
  1940. "properties": {
  1941. "list": {
  1942. "type": "array",
  1943. "items": {
  1944. "$ref": "#/definitions/v1.DeviceDelJobItem"
  1945. }
  1946. },
  1947. "page": {
  1948. "type": "integer"
  1949. },
  1950. "page_size": {
  1951. "type": "integer"
  1952. },
  1953. "total": {
  1954. "type": "integer"
  1955. }
  1956. }
  1957. },
  1958. "v1.DeviceDelJobListResponse": {
  1959. "type": "object",
  1960. "properties": {
  1961. "code": {
  1962. "description": "返回码",
  1963. "type": "integer",
  1964. "format": "int",
  1965. "default": 0
  1966. },
  1967. "data": {
  1968. "type": "object",
  1969. "$ref": "#/definitions/v1.DeviceDelJobListReply"
  1970. },
  1971. "message": {
  1972. "description": "消息",
  1973. "type": "string",
  1974. "default": "success"
  1975. }
  1976. }
  1977. },
  1978. "v1.DeviceDelResponse": {
  1979. "type": "object",
  1980. "properties": {
  1981. "code": {
  1982. "description": "返回码",
  1983. "type": "integer",
  1984. "format": "int",
  1985. "default": 0
  1986. },
  1987. "message": {
  1988. "description": "消息",
  1989. "type": "string",
  1990. "default": "success"
  1991. }
  1992. }
  1993. },
  1994. "v1.DeviceItem": {
  1995. "type": "object",
  1996. "properties": {
  1997. "approve_time": {
  1998. "description": "审批时间",
  1999. "type": "string"
  2000. },
  2001. "batch": {
  2002. "type": "string"
  2003. },
  2004. "created_time": {
  2005. "description": "申请时间",
  2006. "type": "string"
  2007. },
  2008. "id": {
  2009. "type": "integer"
  2010. },
  2011. "key": {
  2012. "type": "string"
  2013. },
  2014. "kind": {
  2015. "type": "string"
  2016. },
  2017. "lat": {
  2018. "type": "number"
  2019. },
  2020. "lon": {
  2021. "type": "number"
  2022. },
  2023. "manufacturer": {
  2024. "type": "string"
  2025. },
  2026. "model": {
  2027. "type": "string"
  2028. },
  2029. "name": {
  2030. "type": "string"
  2031. },
  2032. "person": {
  2033. "type": "string"
  2034. },
  2035. "phone": {
  2036. "type": "string"
  2037. },
  2038. "project_name": {
  2039. "type": "string"
  2040. },
  2041. "provider_name": {
  2042. "type": "string"
  2043. },
  2044. "safety_record_no": {
  2045. "description": "安检备案号",
  2046. "type": "string"
  2047. },
  2048. "sn": {
  2049. "type": "string"
  2050. },
  2051. "social_code": {
  2052. "type": "string"
  2053. },
  2054. "state": {
  2055. "description": "0 离线 1 在线",
  2056. "type": "integer"
  2057. },
  2058. "status": {
  2059. "description": "0 待审核 1 项目通过 2 项目不通过",
  2060. "type": "integer"
  2061. },
  2062. "sub_kind": {
  2063. "type": "string"
  2064. },
  2065. "type_code": {
  2066. "description": "设备类型编码",
  2067. "type": "integer"
  2068. },
  2069. "type_name": {
  2070. "type": "string"
  2071. },
  2072. "unit": {
  2073. "type": "string"
  2074. },
  2075. "url": {
  2076. "type": "string"
  2077. }
  2078. }
  2079. },
  2080. "v1.DeviceListReply": {
  2081. "type": "object",
  2082. "properties": {
  2083. "list": {
  2084. "type": "array",
  2085. "items": {
  2086. "$ref": "#/definitions/v1.DeviceItem"
  2087. }
  2088. },
  2089. "page": {
  2090. "type": "integer"
  2091. },
  2092. "page_size": {
  2093. "type": "integer"
  2094. },
  2095. "total": {
  2096. "type": "integer"
  2097. }
  2098. }
  2099. },
  2100. "v1.DeviceListResponse": {
  2101. "type": "object",
  2102. "properties": {
  2103. "code": {
  2104. "description": "返回码",
  2105. "type": "integer",
  2106. "format": "int",
  2107. "default": 0
  2108. },
  2109. "data": {
  2110. "type": "object",
  2111. "$ref": "#/definitions/v1.DeviceListReply"
  2112. },
  2113. "message": {
  2114. "description": "消息",
  2115. "type": "string",
  2116. "default": "success"
  2117. }
  2118. }
  2119. },
  2120. "v1.DeviceTypeAddBody": {
  2121. "type": "object",
  2122. "properties": {
  2123. "agent": {
  2124. "description": "经办人",
  2125. "type": "string"
  2126. },
  2127. "agent_phone": {
  2128. "description": "经办人电话",
  2129. "type": "string"
  2130. },
  2131. "appendix": {
  2132. "description": "诚信经营承诺书",
  2133. "type": "array",
  2134. "items": {
  2135. "type": "string"
  2136. }
  2137. },
  2138. "comment": {
  2139. "description": "备注",
  2140. "type": "string"
  2141. },
  2142. "device_type": {
  2143. "description": "设备类型",
  2144. "type": "integer"
  2145. },
  2146. "provider_id": {
  2147. "type": "integer"
  2148. }
  2149. }
  2150. },
  2151. "v1.DeviceTypeAddReply": {
  2152. "type": "object"
  2153. },
  2154. "v1.DeviceTypeAddResponse": {
  2155. "type": "object",
  2156. "properties": {
  2157. "code": {
  2158. "description": "返回码",
  2159. "type": "integer",
  2160. "format": "int",
  2161. "default": 0
  2162. },
  2163. "data": {
  2164. "type": "object",
  2165. "$ref": "#/definitions/v1.DeviceTypeAddReply"
  2166. },
  2167. "message": {
  2168. "description": "消息",
  2169. "type": "string",
  2170. "default": "success"
  2171. }
  2172. }
  2173. },
  2174. "v1.DeviceTypeItem": {
  2175. "type": "object",
  2176. "properties": {
  2177. "agent": {
  2178. "type": "string"
  2179. },
  2180. "agent_phone": {
  2181. "type": "string"
  2182. },
  2183. "appendix": {
  2184. "type": "string"
  2185. },
  2186. "approve_time": {
  2187. "type": "string"
  2188. },
  2189. "comment": {
  2190. "type": "string"
  2191. },
  2192. "created_time": {
  2193. "type": "string"
  2194. },
  2195. "feedback": {
  2196. "type": "string"
  2197. },
  2198. "need_appendix": {
  2199. "type": "boolean"
  2200. },
  2201. "reviewer": {
  2202. "type": "string"
  2203. },
  2204. "status": {
  2205. "type": "integer"
  2206. },
  2207. "type_code": {
  2208. "type": "integer"
  2209. },
  2210. "type_name": {
  2211. "type": "string"
  2212. }
  2213. }
  2214. },
  2215. "v1.DeviceTypeListReply": {
  2216. "type": "object",
  2217. "properties": {
  2218. "list": {
  2219. "type": "array",
  2220. "items": {
  2221. "$ref": "#/definitions/v1.DeviceTypeItem"
  2222. }
  2223. }
  2224. }
  2225. },
  2226. "v1.DeviceTypeListResponse": {
  2227. "type": "object",
  2228. "properties": {
  2229. "code": {
  2230. "description": "返回码",
  2231. "type": "integer",
  2232. "format": "int",
  2233. "default": 0
  2234. },
  2235. "data": {
  2236. "type": "array",
  2237. "items": {
  2238. "$ref": "#/definitions/v1.DeviceTypeItem"
  2239. }
  2240. },
  2241. "message": {
  2242. "description": "消息",
  2243. "type": "string",
  2244. "default": "success"
  2245. }
  2246. }
  2247. },
  2248. "v1.DeviceTypeTestingAddBody": {
  2249. "type": "object",
  2250. "properties": {
  2251. "agent": {
  2252. "description": "经办人",
  2253. "type": "string"
  2254. },
  2255. "agent_phone": {
  2256. "description": "经办人电话",
  2257. "type": "string"
  2258. },
  2259. "appendix": {
  2260. "type": "array",
  2261. "items": {
  2262. "type": "string"
  2263. }
  2264. },
  2265. "comment": {
  2266. "description": "备注",
  2267. "type": "string"
  2268. },
  2269. "device_type": {
  2270. "description": "设备类型",
  2271. "type": "integer"
  2272. },
  2273. "provider_id": {
  2274. "type": "integer"
  2275. }
  2276. }
  2277. },
  2278. "v1.DeviceTypeTestingAddReply": {
  2279. "type": "object"
  2280. },
  2281. "v1.DeviceTypeTestingAddResponse": {
  2282. "type": "object",
  2283. "properties": {
  2284. "code": {
  2285. "description": "返回码",
  2286. "type": "integer",
  2287. "format": "int",
  2288. "default": 0
  2289. },
  2290. "data": {
  2291. "type": "object",
  2292. "$ref": "#/definitions/v1.DeviceTypeTestingAddReply"
  2293. },
  2294. "message": {
  2295. "description": "消息",
  2296. "type": "string",
  2297. "default": "success"
  2298. }
  2299. }
  2300. },
  2301. "v1.GetVcodeReply": {
  2302. "type": "object",
  2303. "properties": {
  2304. "vcode": {
  2305. "type": "integer"
  2306. }
  2307. }
  2308. },
  2309. "v1.LogInfo": {
  2310. "type": "object",
  2311. "properties": {
  2312. "detail": {
  2313. "type": "string"
  2314. },
  2315. "name": {
  2316. "type": "string"
  2317. },
  2318. "operation": {
  2319. "type": "string"
  2320. },
  2321. "project_id": {
  2322. "type": "integer"
  2323. },
  2324. "project_name": {
  2325. "type": "string"
  2326. },
  2327. "project_no": {
  2328. "type": "string"
  2329. },
  2330. "result": {
  2331. "type": "string"
  2332. },
  2333. "safety_record_no": {
  2334. "type": "string"
  2335. },
  2336. "time": {
  2337. "type": "string"
  2338. },
  2339. "uid": {
  2340. "type": "integer"
  2341. }
  2342. }
  2343. },
  2344. "v1.LogListReply": {
  2345. "type": "object",
  2346. "properties": {
  2347. "list": {
  2348. "type": "array",
  2349. "items": {
  2350. "$ref": "#/definitions/v1.LogInfo"
  2351. }
  2352. },
  2353. "page": {
  2354. "type": "integer"
  2355. },
  2356. "page_size": {
  2357. "type": "integer"
  2358. },
  2359. "total": {
  2360. "type": "integer"
  2361. }
  2362. }
  2363. },
  2364. "v1.LogListResponse": {
  2365. "type": "object",
  2366. "properties": {
  2367. "code": {
  2368. "description": "返回码",
  2369. "type": "integer",
  2370. "format": "int",
  2371. "default": 0
  2372. },
  2373. "data": {
  2374. "type": "object",
  2375. "$ref": "#/definitions/v1.LogListReply"
  2376. },
  2377. "message": {
  2378. "description": "消息",
  2379. "type": "string",
  2380. "default": "success"
  2381. }
  2382. }
  2383. },
  2384. "v1.LoginBody": {
  2385. "type": "object",
  2386. "properties": {
  2387. "captcha": {
  2388. "type": "string"
  2389. },
  2390. "password": {
  2391. "type": "string"
  2392. },
  2393. "user": {
  2394. "type": "string"
  2395. },
  2396. "verify": {
  2397. "type": "string"
  2398. }
  2399. }
  2400. },
  2401. "v1.LoginData": {
  2402. "type": "object",
  2403. "properties": {
  2404. "refresh_token": {
  2405. "type": "string"
  2406. },
  2407. "token": {
  2408. "type": "string"
  2409. },
  2410. "uid": {
  2411. "type": "integer"
  2412. }
  2413. }
  2414. },
  2415. "v1.LoginResponse": {
  2416. "type": "object",
  2417. "properties": {
  2418. "code": {
  2419. "description": "返回码",
  2420. "type": "integer",
  2421. "format": "int",
  2422. "default": 0
  2423. },
  2424. "data": {
  2425. "type": "object",
  2426. "$ref": "#/definitions/v1.LoginData"
  2427. },
  2428. "message": {
  2429. "description": "消息",
  2430. "type": "string",
  2431. "default": "success"
  2432. }
  2433. }
  2434. },
  2435. "v1.MailPrepareBody": {
  2436. "type": "object",
  2437. "properties": {
  2438. "email": {
  2439. "type": "string"
  2440. },
  2441. "password": {
  2442. "type": "string"
  2443. }
  2444. }
  2445. },
  2446. "v1.MailPrepareResponse": {
  2447. "type": "object",
  2448. "properties": {
  2449. "code": {
  2450. "description": "返回码",
  2451. "type": "integer",
  2452. "format": "int",
  2453. "default": 0
  2454. },
  2455. "message": {
  2456. "description": "消息",
  2457. "type": "string",
  2458. "default": "success"
  2459. }
  2460. }
  2461. },
  2462. "v1.MailUpdateResponse": {
  2463. "type": "object",
  2464. "properties": {
  2465. "code": {
  2466. "description": "返回码",
  2467. "type": "integer",
  2468. "format": "int",
  2469. "default": 0
  2470. },
  2471. "message": {
  2472. "description": "消息",
  2473. "type": "string",
  2474. "default": "success"
  2475. }
  2476. }
  2477. },
  2478. "v1.PhoneUpdateBody": {
  2479. "type": "object",
  2480. "properties": {
  2481. "phone": {
  2482. "type": "string"
  2483. },
  2484. "vcode": {
  2485. "type": "integer"
  2486. }
  2487. }
  2488. },
  2489. "v1.PhoneUpdateResponse": {
  2490. "type": "object",
  2491. "properties": {
  2492. "code": {
  2493. "description": "返回码",
  2494. "type": "integer",
  2495. "format": "int",
  2496. "default": 0
  2497. },
  2498. "message": {
  2499. "description": "消息",
  2500. "type": "string",
  2501. "default": "success"
  2502. }
  2503. }
  2504. },
  2505. "v1.ProjectItem": {
  2506. "type": "object",
  2507. "properties": {
  2508. "id": {
  2509. "type": "integer"
  2510. },
  2511. "name": {
  2512. "type": "string"
  2513. },
  2514. "project_no": {
  2515. "type": "string"
  2516. },
  2517. "safety_record_no": {
  2518. "type": "string"
  2519. },
  2520. "short_name": {
  2521. "type": "string"
  2522. }
  2523. }
  2524. },
  2525. "v1.ProjectListResponse": {
  2526. "type": "object",
  2527. "properties": {
  2528. "code": {
  2529. "description": "返回码",
  2530. "type": "integer",
  2531. "format": "int",
  2532. "default": 0
  2533. },
  2534. "data": {
  2535. "type": "array",
  2536. "items": {
  2537. "$ref": "#/definitions/v1.ProjectItem"
  2538. }
  2539. },
  2540. "message": {
  2541. "description": "消息",
  2542. "type": "string",
  2543. "default": "success"
  2544. }
  2545. }
  2546. },
  2547. "v1.ProviderApproveStatusReply": {
  2548. "type": "object",
  2549. "properties": {
  2550. "approve_time": {
  2551. "type": "string"
  2552. },
  2553. "feedback": {
  2554. "type": "string"
  2555. },
  2556. "reviewer": {
  2557. "type": "string"
  2558. },
  2559. "status": {
  2560. "type": "integer"
  2561. }
  2562. }
  2563. },
  2564. "v1.ProviderApproveStatusResponse": {
  2565. "type": "object",
  2566. "properties": {
  2567. "code": {
  2568. "description": "返回码",
  2569. "type": "integer",
  2570. "format": "int",
  2571. "default": 0
  2572. },
  2573. "data": {
  2574. "type": "object",
  2575. "$ref": "#/definitions/v1.ProviderApproveStatusReply"
  2576. },
  2577. "message": {
  2578. "description": "消息",
  2579. "type": "string",
  2580. "default": "success"
  2581. }
  2582. }
  2583. },
  2584. "v1.ProviderInfoReply": {
  2585. "type": "object",
  2586. "properties": {
  2587. "info": {
  2588. "type": "object",
  2589. "$ref": "#/definitions/v1.ProviderItem"
  2590. }
  2591. }
  2592. },
  2593. "v1.ProviderInfoResponse": {
  2594. "type": "object",
  2595. "properties": {
  2596. "code": {
  2597. "description": "返回码",
  2598. "type": "integer",
  2599. "format": "int",
  2600. "default": 0
  2601. },
  2602. "data": {
  2603. "type": "object",
  2604. "$ref": "#/definitions/v1.ProviderInfoReply"
  2605. },
  2606. "message": {
  2607. "description": "消息",
  2608. "type": "string",
  2609. "default": "success"
  2610. }
  2611. }
  2612. },
  2613. "v1.ProviderItem": {
  2614. "type": "object",
  2615. "properties": {
  2616. "apply_time": {
  2617. "type": "string"
  2618. },
  2619. "approve_time": {
  2620. "type": "string"
  2621. },
  2622. "business_contact": {
  2623. "type": "string"
  2624. },
  2625. "business_contact_phone": {
  2626. "type": "string"
  2627. },
  2628. "business_license": {
  2629. "description": "营业执照",
  2630. "type": "string"
  2631. },
  2632. "business_responsible": {
  2633. "description": "业务负责人",
  2634. "type": "string"
  2635. },
  2636. "business_responsible_letter": {
  2637. "description": "业务负责人任命书",
  2638. "type": "string"
  2639. },
  2640. "business_responsible_phone": {
  2641. "description": "业务负责人电话",
  2642. "type": "string"
  2643. },
  2644. "emergency_contact": {
  2645. "type": "string"
  2646. },
  2647. "emergency_contact_phone": {
  2648. "type": "string"
  2649. },
  2650. "enterprise_location": {
  2651. "type": "string"
  2652. },
  2653. "feedback": {
  2654. "type": "string"
  2655. },
  2656. "id": {
  2657. "type": "integer"
  2658. },
  2659. "id_cert": {
  2660. "description": "证件号",
  2661. "type": "string"
  2662. },
  2663. "integrity_management_letter": {
  2664. "description": "诚信经营承诺书",
  2665. "type": "string"
  2666. },
  2667. "legal_person": {
  2668. "description": "法定代表人",
  2669. "type": "string"
  2670. },
  2671. "legal_person_letter": {
  2672. "description": "法人授权书",
  2673. "type": "string"
  2674. },
  2675. "name": {
  2676. "type": "string"
  2677. },
  2678. "reviewer": {
  2679. "type": "string"
  2680. },
  2681. "social_code": {
  2682. "type": "string"
  2683. },
  2684. "status": {
  2685. "type": "integer"
  2686. },
  2687. "user_name": {
  2688. "description": "用户名",
  2689. "type": "string"
  2690. }
  2691. }
  2692. },
  2693. "v1.PublicityData": {
  2694. "type": "object",
  2695. "properties": {
  2696. "list": {
  2697. "type": "array",
  2698. "items": {
  2699. "$ref": "#/definitions/v1.PublicityItem"
  2700. }
  2701. }
  2702. }
  2703. },
  2704. "v1.PublicityItem": {
  2705. "type": "object",
  2706. "properties": {
  2707. "name": {
  2708. "type": "string"
  2709. },
  2710. "social_code": {
  2711. "type": "string"
  2712. }
  2713. }
  2714. },
  2715. "v1.PublicityResponse": {
  2716. "type": "object",
  2717. "properties": {
  2718. "code": {
  2719. "description": "返回码",
  2720. "type": "integer",
  2721. "format": "int",
  2722. "default": 0
  2723. },
  2724. "data": {
  2725. "type": "object",
  2726. "$ref": "#/definitions/v1.PublicityData"
  2727. },
  2728. "message": {
  2729. "description": "消息",
  2730. "type": "string",
  2731. "default": "success"
  2732. }
  2733. }
  2734. },
  2735. "v1.RegisterBody": {
  2736. "type": "object",
  2737. "properties": {
  2738. "business_contact": {
  2739. "description": "业务联系人",
  2740. "type": "string"
  2741. },
  2742. "business_contact_phone": {
  2743. "description": "业务联系人电话",
  2744. "type": "string"
  2745. },
  2746. "business_license": {
  2747. "description": "营业执照",
  2748. "type": "array",
  2749. "items": {
  2750. "type": "string"
  2751. }
  2752. },
  2753. "business_responsible": {
  2754. "description": "业务负责人",
  2755. "type": "string"
  2756. },
  2757. "business_responsible_letter": {
  2758. "description": "业务负责人任命书",
  2759. "type": "array",
  2760. "items": {
  2761. "type": "string"
  2762. }
  2763. },
  2764. "business_responsible_phone": {
  2765. "description": "业务负责人电话",
  2766. "type": "string"
  2767. },
  2768. "emergency_contact": {
  2769. "description": "应急联系人",
  2770. "type": "string"
  2771. },
  2772. "emergency_contact_phone": {
  2773. "type": "string"
  2774. },
  2775. "enterprise_location": {
  2776. "description": "企业所属 0,省内 1 省外 省外企业须上传业务负责人任命书",
  2777. "type": "integer"
  2778. },
  2779. "id_cert": {
  2780. "description": "身份证",
  2781. "type": "string"
  2782. },
  2783. "integrity_management_letter": {
  2784. "description": "诚信经营承诺书",
  2785. "type": "array",
  2786. "items": {
  2787. "type": "string"
  2788. }
  2789. },
  2790. "legal_person": {
  2791. "description": "法人",
  2792. "type": "string"
  2793. },
  2794. "legal_person_letter": {
  2795. "description": "法人授权书",
  2796. "type": "array",
  2797. "items": {
  2798. "type": "string"
  2799. }
  2800. },
  2801. "name": {
  2802. "description": "供应商名称",
  2803. "type": "string"
  2804. },
  2805. "passwd": {
  2806. "description": "密码",
  2807. "type": "string"
  2808. },
  2809. "social_code": {
  2810. "description": "社会信用码",
  2811. "type": "string"
  2812. },
  2813. "user_name": {
  2814. "description": "登录名",
  2815. "type": "string"
  2816. },
  2817. "verify": {
  2818. "description": "验证码",
  2819. "type": "string"
  2820. }
  2821. }
  2822. },
  2823. "v1.RegisterReply": {
  2824. "type": "object"
  2825. },
  2826. "v1.RegisterResponse": {
  2827. "type": "object",
  2828. "properties": {
  2829. "code": {
  2830. "description": "返回码",
  2831. "type": "integer",
  2832. "format": "int",
  2833. "default": 0
  2834. },
  2835. "data": {
  2836. "type": "object",
  2837. "$ref": "#/definitions/v1.RegisterReply"
  2838. },
  2839. "message": {
  2840. "description": "消息",
  2841. "type": "string",
  2842. "default": "success"
  2843. }
  2844. }
  2845. },
  2846. "v1.SetPasswdBody": {
  2847. "type": "object",
  2848. "properties": {
  2849. "passwd": {
  2850. "type": "string"
  2851. },
  2852. "phone": {
  2853. "type": "string"
  2854. },
  2855. "vcode": {
  2856. "type": "integer"
  2857. }
  2858. }
  2859. },
  2860. "v1.SetPasswdResponse": {
  2861. "type": "object",
  2862. "properties": {
  2863. "code": {
  2864. "description": "返回码",
  2865. "type": "integer",
  2866. "format": "int",
  2867. "default": 0
  2868. },
  2869. "message": {
  2870. "description": "消息",
  2871. "type": "string",
  2872. "default": "success"
  2873. }
  2874. }
  2875. },
  2876. "v1.TokenResponse": {
  2877. "type": "object",
  2878. "properties": {
  2879. "code": {
  2880. "description": "返回码",
  2881. "type": "integer",
  2882. "format": "int",
  2883. "default": 0
  2884. },
  2885. "data": {
  2886. "type": "string"
  2887. },
  2888. "message": {
  2889. "description": "消息",
  2890. "type": "string",
  2891. "default": "success"
  2892. }
  2893. }
  2894. },
  2895. "v1.UploadResponse": {
  2896. "type": "object",
  2897. "properties": {
  2898. "code": {
  2899. "description": "返回码",
  2900. "type": "integer",
  2901. "format": "int",
  2902. "default": 0
  2903. },
  2904. "data": {
  2905. "type": "string"
  2906. },
  2907. "message": {
  2908. "description": "消息",
  2909. "type": "string",
  2910. "default": "success"
  2911. }
  2912. }
  2913. },
  2914. "v1.UserInfoReply": {
  2915. "type": "object",
  2916. "properties": {
  2917. "code": {
  2918. "type": "string"
  2919. },
  2920. "email": {
  2921. "type": "string"
  2922. },
  2923. "phone": {
  2924. "type": "string"
  2925. }
  2926. }
  2927. },
  2928. "v1.UserInfoResponse": {
  2929. "type": "object",
  2930. "properties": {
  2931. "code": {
  2932. "description": "返回码",
  2933. "type": "integer",
  2934. "format": "int",
  2935. "default": 0
  2936. },
  2937. "data": {
  2938. "type": "object",
  2939. "$ref": "#/definitions/v1.UserInfoReply"
  2940. },
  2941. "message": {
  2942. "description": "消息",
  2943. "type": "string",
  2944. "default": "success"
  2945. }
  2946. }
  2947. },
  2948. "v1.VcodeResponse": {
  2949. "type": "object",
  2950. "properties": {
  2951. "code": {
  2952. "description": "返回码",
  2953. "type": "integer",
  2954. "format": "int",
  2955. "default": 0
  2956. },
  2957. "data": {
  2958. "type": "object",
  2959. "$ref": "#/definitions/v1.GetVcodeReply"
  2960. },
  2961. "message": {
  2962. "description": "消息",
  2963. "type": "string",
  2964. "default": "success"
  2965. }
  2966. }
  2967. },
  2968. "v1.VedioAddBody": {
  2969. "type": "object",
  2970. "properties": {
  2971. "channelCount": {
  2972. "type": "integer"
  2973. },
  2974. "name": {
  2975. "type": "string"
  2976. },
  2977. "projectId": {
  2978. "type": "integer"
  2979. },
  2980. "vedioType": {
  2981. "type": "integer"
  2982. }
  2983. }
  2984. },
  2985. "v1.VedioAddReply": {
  2986. "type": "object",
  2987. "properties": {
  2988. "vedio_id": {
  2989. "type": "integer"
  2990. }
  2991. }
  2992. },
  2993. "v1.VedioAddResponse": {
  2994. "type": "object",
  2995. "properties": {
  2996. "code": {
  2997. "description": "返回码",
  2998. "type": "integer",
  2999. "format": "int",
  3000. "default": 0
  3001. },
  3002. "data": {
  3003. "type": "object",
  3004. "$ref": "#/definitions/v1.VedioAddReply"
  3005. },
  3006. "message": {
  3007. "description": "消息",
  3008. "type": "string",
  3009. "default": "success"
  3010. }
  3011. }
  3012. },
  3013. "v1.VedioItem": {
  3014. "type": "object",
  3015. "properties": {
  3016. "apply_time": {
  3017. "description": "申请时间",
  3018. "type": "string"
  3019. },
  3020. "approve_time": {
  3021. "description": "审批时间",
  3022. "type": "string"
  3023. },
  3024. "channel_count": {
  3025. "type": "integer"
  3026. },
  3027. "id": {
  3028. "type": "integer"
  3029. },
  3030. "ip": {
  3031. "type": "string"
  3032. },
  3033. "key": {
  3034. "type": "string"
  3035. },
  3036. "media_transport": {
  3037. "type": "string"
  3038. },
  3039. "name": {
  3040. "type": "string"
  3041. },
  3042. "port": {
  3043. "type": "integer"
  3044. },
  3045. "project_name": {
  3046. "type": "string"
  3047. },
  3048. "provider_name": {
  3049. "type": "string"
  3050. },
  3051. "safety_record_no": {
  3052. "description": "安检备案号",
  3053. "type": "string"
  3054. },
  3055. "sn": {
  3056. "type": "string"
  3057. },
  3058. "social_code": {
  3059. "type": "string"
  3060. },
  3061. "state": {
  3062. "description": "0 离线 1 在线",
  3063. "type": "integer"
  3064. },
  3065. "status": {
  3066. "description": "0 待审核 1 项目通过 2 项目不通过",
  3067. "type": "integer"
  3068. },
  3069. "type_code": {
  3070. "description": "设备类型编码",
  3071. "type": "integer"
  3072. },
  3073. "type_name": {
  3074. "type": "string"
  3075. }
  3076. }
  3077. },
  3078. "v1.VedioListReply": {
  3079. "type": "object",
  3080. "properties": {
  3081. "list": {
  3082. "type": "array",
  3083. "items": {
  3084. "$ref": "#/definitions/v1.VedioItem"
  3085. }
  3086. },
  3087. "page": {
  3088. "type": "integer"
  3089. },
  3090. "page_size": {
  3091. "type": "integer"
  3092. },
  3093. "total": {
  3094. "type": "integer"
  3095. }
  3096. }
  3097. },
  3098. "v1.VedioListResponse": {
  3099. "type": "object",
  3100. "properties": {
  3101. "code": {
  3102. "description": "返回码",
  3103. "type": "integer",
  3104. "format": "int",
  3105. "default": 0
  3106. },
  3107. "data": {
  3108. "type": "object",
  3109. "$ref": "#/definitions/v1.VedioListReply"
  3110. },
  3111. "message": {
  3112. "description": "消息",
  3113. "type": "string",
  3114. "default": "success"
  3115. }
  3116. }
  3117. }
  3118. }
  3119. }