swagger.json 95 KB

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