docs.go 96 KB

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