swagger.yaml 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075
  1. definitions:
  2. base.HTTPError:
  3. properties:
  4. code:
  5. example: 500
  6. format: int
  7. type: integer
  8. message:
  9. example: status bad request
  10. type: string
  11. type: object
  12. v1.CaptchaIdData:
  13. properties:
  14. capture_id:
  15. type: string
  16. type: object
  17. v1.CaptchaIdResponse:
  18. properties:
  19. code:
  20. default: 0
  21. description: 返回码
  22. format: int
  23. type: integer
  24. data:
  25. $ref: '#/definitions/v1.CaptchaIdData'
  26. type: object
  27. message:
  28. default: success
  29. description: 消息
  30. type: string
  31. type: object
  32. v1.ChangePasswdBody:
  33. properties:
  34. new:
  35. type: string
  36. old:
  37. type: string
  38. type: object
  39. v1.ChangePasswdResponse:
  40. properties:
  41. code:
  42. default: 0
  43. description: 返回码
  44. format: int
  45. type: integer
  46. message:
  47. default: success
  48. description: 消息
  49. type: string
  50. type: object
  51. v1.ChannelItem:
  52. properties:
  53. channel_no:
  54. type: string
  55. id:
  56. type: integer
  57. name:
  58. type: string
  59. state:
  60. type: integer
  61. type: object
  62. v1.ChannelListReply:
  63. properties:
  64. list:
  65. items:
  66. $ref: '#/definitions/v1.ChannelItem'
  67. type: array
  68. page:
  69. type: integer
  70. page_size:
  71. type: integer
  72. total:
  73. type: integer
  74. type: object
  75. v1.ChannelListResponse:
  76. properties:
  77. code:
  78. default: 0
  79. description: 返回码
  80. format: int
  81. type: integer
  82. data:
  83. $ref: '#/definitions/v1.ChannelListReply'
  84. type: object
  85. message:
  86. default: success
  87. description: 消息
  88. type: string
  89. type: object
  90. v1.CompanyApproveStatusReply:
  91. properties:
  92. approve_time:
  93. type: string
  94. feedback:
  95. type: string
  96. status:
  97. type: integer
  98. type: object
  99. v1.CompanyApproveStatusResponse:
  100. properties:
  101. code:
  102. default: 0
  103. description: 返回码
  104. format: int
  105. type: integer
  106. data:
  107. $ref: '#/definitions/v1.CompanyApproveStatusReply'
  108. type: object
  109. message:
  110. default: success
  111. description: 消息
  112. type: string
  113. type: object
  114. v1.DeviceAllTypeItem:
  115. properties:
  116. id:
  117. type: integer
  118. type_code:
  119. type: integer
  120. type_name:
  121. type: string
  122. type: object
  123. v1.DeviceAllTypeListReply:
  124. properties:
  125. list:
  126. items:
  127. $ref: '#/definitions/v1.DeviceAllTypeItem'
  128. type: array
  129. type: object
  130. v1.DeviceAllTypeListResponse:
  131. properties:
  132. code:
  133. default: 0
  134. description: 返回码
  135. format: int
  136. type: integer
  137. data:
  138. $ref: '#/definitions/v1.DeviceAllTypeListReply'
  139. type: object
  140. message:
  141. default: success
  142. description: 消息
  143. type: string
  144. type: object
  145. v1.DeviceItem:
  146. properties:
  147. apply_time:
  148. description: 申请时间
  149. type: string
  150. approve_time:
  151. description: 审批时间
  152. type: string
  153. id:
  154. type: integer
  155. key:
  156. type: string
  157. name:
  158. type: string
  159. project_name:
  160. type: string
  161. provider_name:
  162. type: string
  163. safety_record_no:
  164. description: 安检备案号
  165. type: string
  166. sn:
  167. type: string
  168. social_code:
  169. type: string
  170. state:
  171. description: 0 离线 1 在线
  172. type: integer
  173. status:
  174. description: 0 待审核 1 项目通过 2 项目不通过
  175. type: integer
  176. type_code:
  177. description: 设备类型编码
  178. type: integer
  179. type_name:
  180. type: string
  181. type: object
  182. v1.DeviceListReply:
  183. properties:
  184. list:
  185. items:
  186. $ref: '#/definitions/v1.DeviceItem'
  187. type: array
  188. page:
  189. type: integer
  190. page_size:
  191. type: integer
  192. total:
  193. type: integer
  194. type: object
  195. v1.DeviceListResponse:
  196. properties:
  197. code:
  198. default: 0
  199. description: 返回码
  200. format: int
  201. type: integer
  202. data:
  203. $ref: '#/definitions/v1.DeviceListReply'
  204. type: object
  205. message:
  206. default: success
  207. description: 消息
  208. type: string
  209. type: object
  210. v1.DeviceTypeItem:
  211. properties:
  212. apply_time:
  213. description: 申请时间
  214. type: string
  215. approve_time:
  216. description: 政府审批时间
  217. type: string
  218. comment:
  219. description: 开发者建议
  220. type: string
  221. develop_approve_time:
  222. description: 开发者审批时间
  223. type: string
  224. feedback:
  225. description: 政府审批回复
  226. type: string
  227. id:
  228. type: integer
  229. provider_name:
  230. type: string
  231. social_code:
  232. type: string
  233. status:
  234. description: 0 待审核 1 对接测试通过 2 对接测试未通过 3 政府审核通过 4 政府审核未通过
  235. type: integer
  236. type_code:
  237. description: 设备类型编码
  238. type: integer
  239. type_name:
  240. type: string
  241. type: object
  242. v1.DeviceTypeListReply:
  243. properties:
  244. list:
  245. items:
  246. $ref: '#/definitions/v1.DeviceTypeItem'
  247. type: array
  248. page:
  249. type: integer
  250. page_size:
  251. type: integer
  252. total:
  253. type: integer
  254. type: object
  255. v1.DeviceTypeListResponse:
  256. properties:
  257. code:
  258. default: 0
  259. description: 返回码
  260. format: int
  261. type: integer
  262. data:
  263. $ref: '#/definitions/v1.DeviceTypeListReply'
  264. type: object
  265. message:
  266. default: success
  267. description: 消息
  268. type: string
  269. type: object
  270. v1.EnableProjectUserBody:
  271. properties:
  272. enable:
  273. type: boolean
  274. id:
  275. type: integer
  276. type: object
  277. v1.EnableProjectUserResponse:
  278. properties:
  279. code:
  280. default: 0
  281. description: 返回码
  282. format: int
  283. type: integer
  284. message:
  285. default: success
  286. description: 消息
  287. type: string
  288. type: object
  289. v1.GetVcodeReply:
  290. properties:
  291. vcode:
  292. type: integer
  293. type: object
  294. v1.LogInfo:
  295. properties:
  296. detail:
  297. type: string
  298. name:
  299. type: string
  300. operation:
  301. type: string
  302. project_id:
  303. type: integer
  304. project_name:
  305. type: string
  306. project_no:
  307. type: string
  308. result:
  309. type: string
  310. safety_record_no:
  311. type: string
  312. time:
  313. type: string
  314. uid:
  315. type: integer
  316. type: object
  317. v1.LogListReply:
  318. properties:
  319. list:
  320. items:
  321. $ref: '#/definitions/v1.LogInfo'
  322. type: array
  323. page:
  324. type: integer
  325. page_size:
  326. type: integer
  327. total:
  328. type: integer
  329. type: object
  330. v1.LogListResponse:
  331. properties:
  332. code:
  333. default: 0
  334. description: 返回码
  335. format: int
  336. type: integer
  337. data:
  338. $ref: '#/definitions/v1.LogListReply'
  339. type: object
  340. message:
  341. default: success
  342. description: 消息
  343. type: string
  344. type: object
  345. v1.LoginBody:
  346. properties:
  347. captcha:
  348. type: string
  349. password:
  350. type: string
  351. user:
  352. type: string
  353. verify:
  354. type: string
  355. type: object
  356. v1.LoginData:
  357. properties:
  358. refresh_token:
  359. type: string
  360. token:
  361. type: string
  362. uid:
  363. type: integer
  364. type: object
  365. v1.LoginResponse:
  366. properties:
  367. code:
  368. default: 0
  369. description: 返回码
  370. format: int
  371. type: integer
  372. data:
  373. $ref: '#/definitions/v1.LoginData'
  374. type: object
  375. message:
  376. default: success
  377. description: 消息
  378. type: string
  379. type: object
  380. v1.MailPrepareBody:
  381. properties:
  382. email:
  383. type: string
  384. password:
  385. type: string
  386. type: object
  387. v1.MailPrepareResponse:
  388. properties:
  389. code:
  390. default: 0
  391. description: 返回码
  392. format: int
  393. type: integer
  394. message:
  395. default: success
  396. description: 消息
  397. type: string
  398. type: object
  399. v1.MailUpdateResponse:
  400. properties:
  401. code:
  402. default: 0
  403. description: 返回码
  404. format: int
  405. type: integer
  406. message:
  407. default: success
  408. description: 消息
  409. type: string
  410. type: object
  411. v1.MapData:
  412. properties:
  413. url:
  414. type: string
  415. type: object
  416. v1.MapResponse:
  417. properties:
  418. code:
  419. default: 0
  420. description: 返回码
  421. format: int
  422. type: integer
  423. data:
  424. $ref: '#/definitions/v1.MapData'
  425. type: object
  426. message:
  427. default: success
  428. description: 消息
  429. type: string
  430. type: object
  431. v1.PhoneUpdateBody:
  432. properties:
  433. phone:
  434. type: string
  435. vcode:
  436. type: integer
  437. type: object
  438. v1.PhoneUpdateResponse:
  439. properties:
  440. code:
  441. default: 0
  442. description: 返回码
  443. format: int
  444. type: integer
  445. message:
  446. default: success
  447. description: 消息
  448. type: string
  449. type: object
  450. v1.ProjectAddBody:
  451. properties:
  452. ;location:
  453. description: 工程所在地
  454. type: string
  455. building_storey:
  456. description: 建筑层数 eg:主楼地上23层,地下2层;裙楼地上32层,地下3层
  457. type: string
  458. construction:
  459. description: 施工单位
  460. type: string
  461. covered_area:
  462. description: 建筑面积(单位m2)
  463. type: number
  464. desc:
  465. description: 项目介绍
  466. type: string
  467. design:
  468. description: 设计单位
  469. type: string
  470. development:
  471. description: 建设单位
  472. type: string
  473. end_day:
  474. type: integer
  475. exploration:
  476. description: 勘察单位
  477. type: string
  478. lat:
  479. description: 纬度
  480. type: number
  481. lon:
  482. description: 经度
  483. type: number
  484. name:
  485. description: 项目名称
  486. type: string
  487. oversee:
  488. description: 监理单位
  489. type: string
  490. phone:
  491. description: 项目负责人电话
  492. type: string
  493. price:
  494. description: 工程造价(万)
  495. type: number
  496. project_effect_pic:
  497. description: 项目效果图
  498. items:
  499. type: string
  500. type: array
  501. project_function:
  502. description: 项目功能
  503. type: string
  504. project_leader:
  505. description: 项目负责人
  506. type: string
  507. project_plan:
  508. description: 项目平面图
  509. items:
  510. type: string
  511. type: array
  512. project_type:
  513. description: 项目类型
  514. type: string
  515. safety_record_no:
  516. description: 安监备案号
  517. type: string
  518. start_day:
  519. type: integer
  520. total_level:
  521. description: 总层数
  522. type: integer
  523. type: object
  524. v1.ProjectDelResponse:
  525. properties:
  526. code:
  527. default: 0
  528. description: 返回码
  529. format: int
  530. type: integer
  531. message:
  532. default: success
  533. description: 消息
  534. type: string
  535. type: object
  536. v1.ProjectDistrictCity:
  537. properties:
  538. addr:
  539. type: string
  540. id:
  541. type: integer
  542. list:
  543. items:
  544. $ref: '#/definitions/v1.ProjectDistrictZone'
  545. type: array
  546. type: object
  547. v1.ProjectDistrictProvince:
  548. properties:
  549. addr:
  550. type: string
  551. id:
  552. type: integer
  553. list:
  554. items:
  555. $ref: '#/definitions/v1.ProjectDistrictCity'
  556. type: array
  557. type: object
  558. v1.ProjectDistrictReply:
  559. properties:
  560. list:
  561. items:
  562. $ref: '#/definitions/v1.ProjectDistrictProvince'
  563. type: array
  564. type: object
  565. v1.ProjectDistrictResponse:
  566. properties:
  567. code:
  568. default: 0
  569. description: 返回码
  570. format: int
  571. type: integer
  572. data:
  573. $ref: '#/definitions/v1.ProjectDistrictReply'
  574. type: object
  575. message:
  576. default: success
  577. description: 消息
  578. type: string
  579. type: object
  580. v1.ProjectDistrictZone:
  581. properties:
  582. addr:
  583. type: string
  584. id:
  585. type: integer
  586. type: object
  587. v1.ProjectFinishResponse:
  588. properties:
  589. code:
  590. default: 0
  591. description: 返回码
  592. format: int
  593. type: integer
  594. message:
  595. default: success
  596. description: 消息
  597. type: string
  598. type: object
  599. v1.ProjectInfoReply:
  600. properties:
  601. info:
  602. $ref: '#/definitions/v1.ProjectItem'
  603. type: object
  604. type: object
  605. v1.ProjectInfoResponse:
  606. properties:
  607. code:
  608. default: 0
  609. description: 返回码
  610. format: int
  611. type: integer
  612. data:
  613. $ref: '#/definitions/v1.ProjectInfoReply'
  614. type: object
  615. message:
  616. default: success
  617. description: 消息
  618. type: string
  619. type: object
  620. v1.ProjectItem:
  621. properties:
  622. building_storey:
  623. type: string
  624. construction:
  625. type: string
  626. covered_area:
  627. type: number
  628. create_time:
  629. type: string
  630. desc:
  631. type: string
  632. design:
  633. type: string
  634. development:
  635. type: string
  636. end_day:
  637. type: string
  638. exploration:
  639. type: string
  640. id:
  641. type: integer
  642. is_finish:
  643. type: boolean
  644. lat:
  645. type: number
  646. location:
  647. type: string
  648. lon:
  649. type: number
  650. name:
  651. type: string
  652. oversee:
  653. type: string
  654. phone:
  655. type: string
  656. price:
  657. type: number
  658. project_effect_pic:
  659. type: string
  660. project_function:
  661. type: string
  662. project_leader:
  663. type: string
  664. project_no:
  665. type: string
  666. project_plan:
  667. type: string
  668. project_type:
  669. type: string
  670. safety_record_no:
  671. type: string
  672. start_day:
  673. type: string
  674. total_level:
  675. type: integer
  676. type: object
  677. v1.ProjectListReply:
  678. properties:
  679. list:
  680. items:
  681. $ref: '#/definitions/v1.ProjectItem'
  682. type: array
  683. page:
  684. type: integer
  685. page_size:
  686. type: integer
  687. total:
  688. type: integer
  689. type: object
  690. v1.ProjectListResponse:
  691. properties:
  692. code:
  693. default: 0
  694. description: 返回码
  695. format: int
  696. type: integer
  697. data:
  698. $ref: '#/definitions/v1.ProjectListReply'
  699. type: object
  700. message:
  701. default: success
  702. description: 消息
  703. type: string
  704. type: object
  705. v1.ProjectUpdateBody:
  706. properties:
  707. building_storey:
  708. type: string
  709. construction:
  710. type: string
  711. covered_area:
  712. type: number
  713. desc:
  714. type: string
  715. design:
  716. type: string
  717. development:
  718. type: string
  719. end_day:
  720. type: integer
  721. exploration:
  722. type: string
  723. id:
  724. type: integer
  725. lat:
  726. type: number
  727. location:
  728. type: string
  729. lon:
  730. type: number
  731. name:
  732. type: string
  733. oversee:
  734. type: string
  735. phone:
  736. type: string
  737. price:
  738. type: number
  739. project_effect_pic:
  740. items:
  741. type: string
  742. type: array
  743. project_function:
  744. type: string
  745. project_leader:
  746. type: string
  747. project_no:
  748. type: string
  749. project_plan:
  750. items:
  751. type: string
  752. type: array
  753. project_type:
  754. type: string
  755. safety_record_no:
  756. type: string
  757. start_day:
  758. type: integer
  759. total_level:
  760. type: integer
  761. type: object
  762. v1.ProjectUpdateResponse:
  763. properties:
  764. code:
  765. default: 0
  766. description: 返回码
  767. format: int
  768. type: integer
  769. message:
  770. default: success
  771. description: 消息
  772. type: string
  773. type: object
  774. v1.ProjectUserItem:
  775. properties:
  776. enable:
  777. type: boolean
  778. id:
  779. type: integer
  780. passwd:
  781. type: string
  782. project_name:
  783. type: string
  784. safety_record_no:
  785. type: string
  786. user_type:
  787. type: integer
  788. username:
  789. type: string
  790. type: object
  791. v1.ProjectUserListReply:
  792. properties:
  793. list:
  794. items:
  795. $ref: '#/definitions/v1.ProjectUserItem'
  796. type: array
  797. page:
  798. type: integer
  799. page_size:
  800. type: integer
  801. total:
  802. type: integer
  803. type: object
  804. v1.ProjectUserListResponse:
  805. properties:
  806. code:
  807. default: 0
  808. description: 返回码
  809. format: int
  810. type: integer
  811. data:
  812. $ref: '#/definitions/v1.ProjectUserListReply'
  813. type: object
  814. message:
  815. default: success
  816. description: 消息
  817. type: string
  818. type: object
  819. v1.ProjectUserPasswordResetBody:
  820. properties:
  821. id:
  822. description: 账号id
  823. type: integer
  824. password:
  825. type: string
  826. type: object
  827. v1.ProjectUserPasswordResetResponse:
  828. properties:
  829. code:
  830. default: 0
  831. description: 返回码
  832. format: int
  833. type: integer
  834. message:
  835. default: success
  836. description: 消息
  837. type: string
  838. type: object
  839. v1.PublicityData:
  840. properties:
  841. list:
  842. items:
  843. $ref: '#/definitions/v1.PublicityItem'
  844. type: array
  845. type: object
  846. v1.PublicityDeviceTypeItem:
  847. properties:
  848. type_code:
  849. type: integer
  850. type_name:
  851. type: string
  852. type: object
  853. v1.PublicityItem:
  854. properties:
  855. devices:
  856. items:
  857. $ref: '#/definitions/v1.PublicityDeviceTypeItem'
  858. type: array
  859. name:
  860. type: string
  861. social_code:
  862. type: string
  863. type: object
  864. v1.PublicityResponse:
  865. properties:
  866. code:
  867. default: 0
  868. description: 返回码
  869. format: int
  870. type: integer
  871. data:
  872. $ref: '#/definitions/v1.PublicityData'
  873. type: object
  874. message:
  875. default: success
  876. description: 消息
  877. type: string
  878. type: object
  879. v1.RegisterBody:
  880. properties:
  881. business_contact:
  882. description: 业务联系人
  883. type: string
  884. business_contact_phone:
  885. description: 业务联系人电话
  886. type: string
  887. business_license:
  888. description: 营业执照
  889. items:
  890. type: string
  891. type: array
  892. business_responsible:
  893. description: 业务负责人
  894. type: string
  895. business_responsible_phone:
  896. description: 业务负责人电话
  897. type: string
  898. city:
  899. type: string
  900. emergency_contact:
  901. type: string
  902. emergency_contact_phone:
  903. type: string
  904. id_cert:
  905. description: 证件号
  906. type: string
  907. legal_person:
  908. description: 法定代表人
  909. type: string
  910. name:
  911. description: 公司名称
  912. type: string
  913. passwd:
  914. description: 密码
  915. type: string
  916. province:
  917. type: string
  918. social_code:
  919. description: 统一社会信用码
  920. type: string
  921. status:
  922. description: 注册状态 0 待审核 1 通过 2 未通过
  923. type: integer
  924. user_name:
  925. description: 用户名
  926. type: string
  927. verify:
  928. type: string
  929. zone:
  930. type: string
  931. type: object
  932. v1.RegisterReply:
  933. type: object
  934. v1.RegisterResponse:
  935. properties:
  936. code:
  937. default: 0
  938. description: 返回码
  939. format: int
  940. type: integer
  941. data:
  942. $ref: '#/definitions/v1.RegisterReply'
  943. type: object
  944. message:
  945. default: success
  946. description: 消息
  947. type: string
  948. type: object
  949. v1.SetPasswdBody:
  950. properties:
  951. passwd:
  952. type: string
  953. phone:
  954. type: string
  955. vcode:
  956. type: integer
  957. type: object
  958. v1.SetPasswdResponse:
  959. properties:
  960. code:
  961. default: 0
  962. description: 返回码
  963. format: int
  964. type: integer
  965. message:
  966. default: success
  967. description: 消息
  968. type: string
  969. type: object
  970. v1.TmpTokenData:
  971. properties:
  972. token:
  973. type: string
  974. type: object
  975. v1.TmpTokenResponse:
  976. properties:
  977. code:
  978. default: 0
  979. description: 返回码
  980. format: int
  981. type: integer
  982. data:
  983. $ref: '#/definitions/v1.TmpTokenData'
  984. type: object
  985. message:
  986. default: success
  987. description: 消息
  988. type: string
  989. type: object
  990. v1.TokenResponse:
  991. properties:
  992. code:
  993. default: 0
  994. description: 返回码
  995. format: int
  996. type: integer
  997. data:
  998. type: string
  999. message:
  1000. default: success
  1001. description: 消息
  1002. type: string
  1003. type: object
  1004. v1.UploadResponse:
  1005. properties:
  1006. code:
  1007. default: 0
  1008. description: 返回码
  1009. format: int
  1010. type: integer
  1011. data:
  1012. type: string
  1013. message:
  1014. default: success
  1015. description: 消息
  1016. type: string
  1017. type: object
  1018. v1.UserInfoReply:
  1019. properties:
  1020. email:
  1021. type: string
  1022. phone:
  1023. type: string
  1024. type: object
  1025. v1.UserInfoResponse:
  1026. properties:
  1027. code:
  1028. default: 0
  1029. description: 返回码
  1030. format: int
  1031. type: integer
  1032. data:
  1033. $ref: '#/definitions/v1.UserInfoReply'
  1034. type: object
  1035. message:
  1036. default: success
  1037. description: 消息
  1038. type: string
  1039. type: object
  1040. v1.VcodeResponse:
  1041. properties:
  1042. code:
  1043. default: 0
  1044. description: 返回码
  1045. format: int
  1046. type: integer
  1047. data:
  1048. $ref: '#/definitions/v1.GetVcodeReply'
  1049. type: object
  1050. message:
  1051. default: success
  1052. description: 消息
  1053. type: string
  1054. type: object
  1055. v1.VedioItem:
  1056. properties:
  1057. apply_time:
  1058. description: 申请时间
  1059. type: string
  1060. approve_time:
  1061. description: 审批时间
  1062. type: string
  1063. channel_count:
  1064. type: integer
  1065. id:
  1066. type: integer
  1067. ip:
  1068. type: string
  1069. key:
  1070. type: string
  1071. media_transport:
  1072. type: string
  1073. name:
  1074. type: string
  1075. port:
  1076. type: integer
  1077. project_name:
  1078. type: string
  1079. provider_name:
  1080. type: string
  1081. safety_record_no:
  1082. description: 安检备案号
  1083. type: string
  1084. sn:
  1085. type: string
  1086. social_code:
  1087. type: string
  1088. state:
  1089. description: 0 离线 1 在线
  1090. type: integer
  1091. status:
  1092. description: 0 待审核 1 项目通过 2 项目不通过
  1093. type: integer
  1094. type_code:
  1095. description: 设备类型编码
  1096. type: integer
  1097. type_name:
  1098. type: string
  1099. type: object
  1100. v1.VedioListReply:
  1101. properties:
  1102. list:
  1103. items:
  1104. $ref: '#/definitions/v1.VedioItem'
  1105. type: array
  1106. page:
  1107. type: integer
  1108. page_size:
  1109. type: integer
  1110. total:
  1111. type: integer
  1112. type: object
  1113. v1.VedioListResponse:
  1114. properties:
  1115. code:
  1116. default: 0
  1117. description: 返回码
  1118. format: int
  1119. type: integer
  1120. data:
  1121. $ref: '#/definitions/v1.VedioListReply'
  1122. type: object
  1123. message:
  1124. default: success
  1125. description: 消息
  1126. type: string
  1127. type: object
  1128. info:
  1129. contact: {}
  1130. description: This is a gateway server. On the page, you can go to do testing for every API.
  1131. license: {}
  1132. title: Project smart-enterprise-management-gateway's APIs
  1133. version: "1.1"
  1134. paths:
  1135. /api/v1.0/upload:
  1136. post:
  1137. consumes:
  1138. - application/json
  1139. description: 上传文件
  1140. parameters:
  1141. - description: jwt token
  1142. in: header
  1143. name: token
  1144. required: true
  1145. type: string
  1146. - description: file
  1147. in: formData
  1148. name: file
  1149. type: file
  1150. produces:
  1151. - application/json
  1152. responses:
  1153. "200":
  1154. description: OK
  1155. schema:
  1156. $ref: '#/definitions/v1.UploadResponse'
  1157. "500":
  1158. description: Internal Server Error
  1159. schema:
  1160. $ref: '#/definitions/base.HTTPError'
  1161. summary: 上传文件
  1162. tags:
  1163. - upload
  1164. - v1.0
  1165. /api/v1/device/list:
  1166. get:
  1167. consumes:
  1168. - application/json
  1169. description: 设备列表
  1170. parameters:
  1171. - description: ' '
  1172. in: header
  1173. name: token
  1174. required: true
  1175. type: string
  1176. - description: ' '
  1177. in: query
  1178. name: page
  1179. type: integer
  1180. - description: ' '
  1181. in: query
  1182. name: filter
  1183. type: string
  1184. produces:
  1185. - application/json
  1186. responses:
  1187. "200":
  1188. description: OK
  1189. schema:
  1190. $ref: '#/definitions/v1.DeviceListResponse'
  1191. "500":
  1192. description: Internal Server Error
  1193. schema:
  1194. $ref: '#/definitions/base.HTTPError'
  1195. summary: 设备列表
  1196. tags:
  1197. - device
  1198. /api/v1/device/type_list:
  1199. get:
  1200. consumes:
  1201. - application/json
  1202. description: 已通过审核的设备类型列表
  1203. parameters:
  1204. - description: ' '
  1205. in: header
  1206. name: token
  1207. required: true
  1208. type: string
  1209. - description: ' '
  1210. in: query
  1211. name: filter
  1212. type: string
  1213. - description: ' '
  1214. in: query
  1215. name: page
  1216. required: true
  1217. type: integer
  1218. produces:
  1219. - application/json
  1220. responses:
  1221. "200":
  1222. description: OK
  1223. schema:
  1224. $ref: '#/definitions/v1.DeviceTypeListResponse'
  1225. "500":
  1226. description: Internal Server Error
  1227. schema:
  1228. $ref: '#/definitions/base.HTTPError'
  1229. summary: 已通过审核的设备类型列表
  1230. tags:
  1231. - device
  1232. /api/v1/device/vedio_channel_list:
  1233. get:
  1234. consumes:
  1235. - application/json
  1236. description: 通道列表
  1237. parameters:
  1238. - description: ' '
  1239. in: header
  1240. name: token
  1241. required: true
  1242. type: string
  1243. - description: ' '
  1244. in: query
  1245. name: sn
  1246. required: true
  1247. type: string
  1248. - description: ' '
  1249. in: query
  1250. name: page
  1251. type: integer
  1252. - description: ' '
  1253. in: query
  1254. name: channel_no
  1255. type: string
  1256. produces:
  1257. - application/json
  1258. responses:
  1259. "200":
  1260. description: OK
  1261. schema:
  1262. $ref: '#/definitions/v1.ChannelListResponse'
  1263. "500":
  1264. description: Internal Server Error
  1265. schema:
  1266. $ref: '#/definitions/base.HTTPError'
  1267. summary: 通道列表
  1268. tags:
  1269. - device
  1270. /api/v1/device/vedio_list:
  1271. get:
  1272. consumes:
  1273. - application/json
  1274. description: 视频设备列表
  1275. parameters:
  1276. - description: ' '
  1277. in: header
  1278. name: token
  1279. required: true
  1280. type: string
  1281. - description: 过滤字段
  1282. in: query
  1283. name: filter
  1284. type: string
  1285. - description: ' '
  1286. in: query
  1287. name: page
  1288. type: integer
  1289. produces:
  1290. - application/json
  1291. responses:
  1292. "200":
  1293. description: OK
  1294. schema:
  1295. $ref: '#/definitions/v1.VedioListResponse'
  1296. "500":
  1297. description: Internal Server Error
  1298. schema:
  1299. $ref: '#/definitions/base.HTTPError'
  1300. summary: 视频设备列表
  1301. tags:
  1302. - device
  1303. /api/v1/device_type_all:
  1304. get:
  1305. consumes:
  1306. - application/json
  1307. description: 设备类型总列表
  1308. produces:
  1309. - application/json
  1310. responses:
  1311. "200":
  1312. description: OK
  1313. schema:
  1314. $ref: '#/definitions/v1.DeviceAllTypeListResponse'
  1315. "500":
  1316. description: Internal Server Error
  1317. schema:
  1318. $ref: '#/definitions/base.HTTPError'
  1319. summary: 设备类型总列表
  1320. tags:
  1321. - device
  1322. /api/v1/log/list:
  1323. get:
  1324. consumes:
  1325. - application/json
  1326. description: 操作日志列表
  1327. parameters:
  1328. - description: ' '
  1329. in: header
  1330. name: token
  1331. required: true
  1332. type: string
  1333. - description: ' '
  1334. in: query
  1335. name: page
  1336. required: true
  1337. type: string
  1338. - description: ' '
  1339. in: query
  1340. name: start
  1341. type: integer
  1342. - description: ' '
  1343. in: query
  1344. name: end
  1345. type: integer
  1346. produces:
  1347. - application/json
  1348. responses:
  1349. "200":
  1350. description: OK
  1351. schema:
  1352. $ref: '#/definitions/v1.LogListResponse'
  1353. "500":
  1354. description: Internal Server Error
  1355. schema:
  1356. $ref: '#/definitions/base.HTTPError'
  1357. summary: 操作日志列表
  1358. tags:
  1359. - log
  1360. /api/v1/map:
  1361. get:
  1362. consumes:
  1363. - application/json
  1364. description: 获取地图
  1365. produces:
  1366. - application/json
  1367. responses:
  1368. "200":
  1369. description: OK
  1370. schema:
  1371. $ref: '#/definitions/v1.MapResponse'
  1372. "500":
  1373. description: Internal Server Error
  1374. schema:
  1375. $ref: '#/definitions/base.HTTPError'
  1376. summary: 获取地图
  1377. tags:
  1378. - 前台
  1379. /api/v1/project:
  1380. post:
  1381. consumes:
  1382. - application/json
  1383. description: 添加项目
  1384. parameters:
  1385. - description: ' '
  1386. in: header
  1387. name: token
  1388. required: true
  1389. type: string
  1390. - description: ' '
  1391. in: body
  1392. name: body
  1393. required: true
  1394. schema:
  1395. $ref: '#/definitions/v1.ProjectAddBody'
  1396. produces:
  1397. - application/json
  1398. responses:
  1399. "200":
  1400. description: OK
  1401. schema:
  1402. $ref: '#/definitions/v1.ProjectListResponse'
  1403. "500":
  1404. description: Internal Server Error
  1405. schema:
  1406. $ref: '#/definitions/base.HTTPError'
  1407. summary: 添加项目
  1408. tags:
  1409. - project
  1410. put:
  1411. consumes:
  1412. - application/json
  1413. description: 变更项目
  1414. parameters:
  1415. - description: ' '
  1416. in: header
  1417. name: token
  1418. required: true
  1419. type: string
  1420. - description: ' '
  1421. in: body
  1422. name: body
  1423. required: true
  1424. schema:
  1425. $ref: '#/definitions/v1.ProjectUpdateBody'
  1426. produces:
  1427. - application/json
  1428. responses:
  1429. "200":
  1430. description: OK
  1431. schema:
  1432. $ref: '#/definitions/v1.ProjectUpdateResponse'
  1433. "500":
  1434. description: Internal Server Error
  1435. schema:
  1436. $ref: '#/definitions/base.HTTPError'
  1437. tags:
  1438. - project
  1439. /api/v1/project/{id}:
  1440. delete:
  1441. consumes:
  1442. - application/json
  1443. description: 项目删除
  1444. parameters:
  1445. - description: ' '
  1446. in: header
  1447. name: token
  1448. required: true
  1449. type: string
  1450. - description: ' '
  1451. in: path
  1452. name: id
  1453. required: true
  1454. type: integer
  1455. produces:
  1456. - application/json
  1457. responses:
  1458. "200":
  1459. description: OK
  1460. schema:
  1461. $ref: '#/definitions/v1.ProjectDelResponse'
  1462. "500":
  1463. description: Internal Server Error
  1464. schema:
  1465. $ref: '#/definitions/base.HTTPError'
  1466. summary: 项目删除
  1467. tags:
  1468. - project
  1469. /api/v1/project/district:
  1470. get:
  1471. consumes:
  1472. - application/json
  1473. description: 获取省市区
  1474. produces:
  1475. - application/json
  1476. responses:
  1477. "200":
  1478. description: OK
  1479. schema:
  1480. $ref: '#/definitions/v1.ProjectDistrictResponse'
  1481. "500":
  1482. description: Internal Server Error
  1483. schema:
  1484. $ref: '#/definitions/base.HTTPError'
  1485. tags:
  1486. - project
  1487. /api/v1/project/finish/{id}:
  1488. put:
  1489. consumes:
  1490. - application/json
  1491. description: 项目完工
  1492. parameters:
  1493. - description: ' '
  1494. in: header
  1495. name: token
  1496. required: true
  1497. type: string
  1498. - description: ' '
  1499. in: path
  1500. name: id
  1501. required: true
  1502. type: integer
  1503. produces:
  1504. - application/json
  1505. responses:
  1506. "200":
  1507. description: OK
  1508. schema:
  1509. $ref: '#/definitions/v1.ProjectFinishResponse'
  1510. "500":
  1511. description: Internal Server Error
  1512. schema:
  1513. $ref: '#/definitions/base.HTTPError'
  1514. summary: 项目完工
  1515. tags:
  1516. - project
  1517. /api/v1/project/info/{id}:
  1518. get:
  1519. consumes:
  1520. - application/json
  1521. description: 项目详情
  1522. parameters:
  1523. - description: ' '
  1524. in: header
  1525. name: token
  1526. required: true
  1527. type: string
  1528. - description: ' '
  1529. in: path
  1530. name: id
  1531. required: true
  1532. type: integer
  1533. produces:
  1534. - application/json
  1535. responses:
  1536. "200":
  1537. description: OK
  1538. schema:
  1539. $ref: '#/definitions/v1.ProjectInfoResponse'
  1540. "500":
  1541. description: Internal Server Error
  1542. schema:
  1543. $ref: '#/definitions/base.HTTPError'
  1544. summary: 项目详情
  1545. tags:
  1546. - project
  1547. /api/v1/project/list:
  1548. get:
  1549. consumes:
  1550. - application/json
  1551. description: 项目列表
  1552. parameters:
  1553. - description: ' '
  1554. in: header
  1555. name: token
  1556. required: true
  1557. type: string
  1558. - description: ' '
  1559. in: query
  1560. name: page
  1561. required: true
  1562. type: integer
  1563. - description: ' '
  1564. in: query
  1565. name: filter
  1566. type: string
  1567. - description: 小于0时代表获取所有
  1568. in: query
  1569. name: page_size
  1570. type: integer
  1571. produces:
  1572. - application/json
  1573. responses:
  1574. "200":
  1575. description: OK
  1576. schema:
  1577. $ref: '#/definitions/v1.ProjectListResponse'
  1578. "500":
  1579. description: Internal Server Error
  1580. schema:
  1581. $ref: '#/definitions/base.HTTPError'
  1582. summary: 项目列表
  1583. tags:
  1584. - project
  1585. /api/v1/project/password:
  1586. put:
  1587. consumes:
  1588. - application/json
  1589. description: 重置项目账号密码
  1590. parameters:
  1591. - description: ' '
  1592. in: header
  1593. name: token
  1594. required: true
  1595. type: string
  1596. - description: ' '
  1597. in: body
  1598. name: body
  1599. required: true
  1600. schema:
  1601. $ref: '#/definitions/v1.ProjectUserPasswordResetBody'
  1602. produces:
  1603. - application/json
  1604. responses:
  1605. "200":
  1606. description: OK
  1607. schema:
  1608. $ref: '#/definitions/v1.ProjectUserPasswordResetResponse'
  1609. "500":
  1610. description: Internal Server Error
  1611. schema:
  1612. $ref: '#/definitions/base.HTTPError'
  1613. summary: 重置项目账号密码
  1614. tags:
  1615. - project
  1616. /api/v1/project/user:
  1617. put:
  1618. consumes:
  1619. - application/json
  1620. description: 起停用项目账号
  1621. parameters:
  1622. - description: ' '
  1623. in: header
  1624. name: token
  1625. required: true
  1626. type: string
  1627. - description: ' '
  1628. in: body
  1629. name: body
  1630. required: true
  1631. schema:
  1632. $ref: '#/definitions/v1.EnableProjectUserBody'
  1633. produces:
  1634. - application/json
  1635. responses:
  1636. "200":
  1637. description: OK
  1638. schema:
  1639. $ref: '#/definitions/v1.EnableProjectUserResponse'
  1640. "500":
  1641. description: Internal Server Error
  1642. schema:
  1643. $ref: '#/definitions/base.HTTPError'
  1644. summary: 起停用项目账号
  1645. tags:
  1646. - project
  1647. /api/v1/project/user_list:
  1648. get:
  1649. consumes:
  1650. - application/json
  1651. description: 项目账号列表
  1652. parameters:
  1653. - description: ' '
  1654. in: header
  1655. name: token
  1656. required: true
  1657. type: string
  1658. - description: ' '
  1659. in: query
  1660. name: page
  1661. required: true
  1662. type: integer
  1663. - description: ' '
  1664. in: query
  1665. name: filter
  1666. type: string
  1667. produces:
  1668. - application/json
  1669. responses:
  1670. "200":
  1671. description: OK
  1672. schema:
  1673. $ref: '#/definitions/v1.ProjectUserListResponse'
  1674. "500":
  1675. description: Internal Server Error
  1676. schema:
  1677. $ref: '#/definitions/base.HTTPError'
  1678. summary: 项目账号列表
  1679. tags:
  1680. - project
  1681. /api/v1/publicity:
  1682. get:
  1683. consumes:
  1684. - application/json
  1685. description: 公示
  1686. parameters:
  1687. - description: 供应商名称
  1688. in: query
  1689. name: provider
  1690. type: string
  1691. - description: 设备类型
  1692. in: query
  1693. name: device_code
  1694. type: integer
  1695. produces:
  1696. - application/json
  1697. responses:
  1698. "200":
  1699. description: OK
  1700. schema:
  1701. $ref: '#/definitions/v1.PublicityResponse'
  1702. "500":
  1703. description: Internal Server Error
  1704. schema:
  1705. $ref: '#/definitions/base.HTTPError'
  1706. summary: 公示
  1707. tags:
  1708. - publicity
  1709. /api/v1/token_refresh:
  1710. put:
  1711. consumes:
  1712. - application/json
  1713. description: 刷新token
  1714. parameters:
  1715. - description: token
  1716. in: header
  1717. name: token
  1718. required: true
  1719. type: string
  1720. produces:
  1721. - application/json
  1722. responses:
  1723. "200":
  1724. description: OK
  1725. schema:
  1726. $ref: '#/definitions/v1.TokenResponse'
  1727. "500":
  1728. description: Internal Server Error
  1729. schema:
  1730. $ref: '#/definitions/base.HTTPError'
  1731. summary: 刷新token
  1732. tags:
  1733. - user
  1734. /api/v1/user/captcha_id:
  1735. get:
  1736. consumes:
  1737. - application/json
  1738. description: 获取图片验证码id
  1739. produces:
  1740. - application/json
  1741. responses:
  1742. "200":
  1743. description: OK
  1744. schema:
  1745. $ref: '#/definitions/v1.CaptchaIdResponse'
  1746. "500":
  1747. description: Internal Server Error
  1748. schema:
  1749. $ref: '#/definitions/base.HTTPError'
  1750. summary: 获取图片验证码id
  1751. tags:
  1752. - user
  1753. /api/v1/user/captcha_png/{captcha_id}:
  1754. get:
  1755. consumes:
  1756. - application/json
  1757. description: 获取图片验证码图片
  1758. parameters:
  1759. - description: ' '
  1760. in: path
  1761. name: captcha_id
  1762. required: true
  1763. type: string
  1764. produces:
  1765. - application/json
  1766. responses:
  1767. "500":
  1768. description: Internal Server Error
  1769. schema:
  1770. $ref: '#/definitions/base.HTTPError'
  1771. summary: 获取图片验证码图片
  1772. tags:
  1773. - user
  1774. /api/v1/user/change_passwd:
  1775. put:
  1776. consumes:
  1777. - application/json
  1778. description: 修改密码
  1779. parameters:
  1780. - description: ' '
  1781. in: header
  1782. name: token
  1783. required: true
  1784. type: string
  1785. - description: ' '
  1786. in: body
  1787. name: body
  1788. required: true
  1789. schema:
  1790. $ref: '#/definitions/v1.ChangePasswdBody'
  1791. produces:
  1792. - application/json
  1793. responses:
  1794. "200":
  1795. description: OK
  1796. schema:
  1797. $ref: '#/definitions/v1.ChangePasswdResponse'
  1798. "500":
  1799. description: Internal Server Error
  1800. schema:
  1801. $ref: '#/definitions/base.HTTPError'
  1802. summary: 修改密码
  1803. tags:
  1804. - user
  1805. /api/v1/user/info:
  1806. get:
  1807. consumes:
  1808. - application/json
  1809. description: 获取电话和邮箱
  1810. parameters:
  1811. - description: ' '
  1812. in: header
  1813. name: token
  1814. required: true
  1815. type: string
  1816. produces:
  1817. - application/json
  1818. responses:
  1819. "200":
  1820. description: OK
  1821. schema:
  1822. $ref: '#/definitions/v1.UserInfoResponse'
  1823. "500":
  1824. description: Internal Server Error
  1825. schema:
  1826. $ref: '#/definitions/base.HTTPError'
  1827. summary: 获取电话和邮箱
  1828. tags:
  1829. - 用户
  1830. /api/v1/user/login:
  1831. post:
  1832. consumes:
  1833. - application/json
  1834. description: 登录
  1835. parameters:
  1836. - description: 登录信息
  1837. in: body
  1838. name: body
  1839. required: true
  1840. schema:
  1841. $ref: '#/definitions/v1.LoginBody'
  1842. produces:
  1843. - application/json
  1844. responses:
  1845. "200":
  1846. description: OK
  1847. schema:
  1848. $ref: '#/definitions/v1.LoginResponse'
  1849. "500":
  1850. description: Internal Server Error
  1851. schema:
  1852. $ref: '#/definitions/base.HTTPError'
  1853. summary: 登录
  1854. tags:
  1855. - user
  1856. /api/v1/user/mail:
  1857. get:
  1858. consumes:
  1859. - application/json
  1860. description: 修改邮箱
  1861. parameters:
  1862. - description: ' '
  1863. in: query
  1864. name: token
  1865. required: true
  1866. type: string
  1867. produces:
  1868. - application/json
  1869. responses:
  1870. "200":
  1871. description: OK
  1872. schema:
  1873. $ref: '#/definitions/v1.MailUpdateResponse'
  1874. "500":
  1875. description: Internal Server Error
  1876. schema:
  1877. $ref: '#/definitions/base.HTTPError'
  1878. summary: 修改邮箱
  1879. tags:
  1880. - user
  1881. /api/v1/user/phone:
  1882. put:
  1883. consumes:
  1884. - application/json
  1885. description: 修改电话号码
  1886. parameters:
  1887. - description: ' '
  1888. in: header
  1889. name: token
  1890. required: true
  1891. type: string
  1892. - description: ' '
  1893. in: body
  1894. name: body
  1895. required: true
  1896. schema:
  1897. $ref: '#/definitions/v1.PhoneUpdateBody'
  1898. produces:
  1899. - application/json
  1900. responses:
  1901. "200":
  1902. description: OK
  1903. schema:
  1904. $ref: '#/definitions/v1.PhoneUpdateResponse'
  1905. "500":
  1906. description: Internal Server Error
  1907. schema:
  1908. $ref: '#/definitions/base.HTTPError'
  1909. summary: 修改电话号码
  1910. tags:
  1911. - user
  1912. /api/v1/user/register:
  1913. post:
  1914. consumes:
  1915. - application/json
  1916. description: 注册
  1917. parameters:
  1918. - description: 登录信息
  1919. in: body
  1920. name: body
  1921. required: true
  1922. schema:
  1923. $ref: '#/definitions/v1.RegisterBody'
  1924. produces:
  1925. - application/json
  1926. responses:
  1927. "200":
  1928. description: OK
  1929. schema:
  1930. $ref: '#/definitions/v1.RegisterResponse'
  1931. "500":
  1932. description: Internal Server Error
  1933. schema:
  1934. $ref: '#/definitions/base.HTTPError'
  1935. summary: 注册
  1936. tags:
  1937. - user
  1938. /api/v1/user/set_passwd:
  1939. put:
  1940. consumes:
  1941. - application/json
  1942. description: 找回密码设置密码
  1943. parameters:
  1944. - description: 登录信息
  1945. in: body
  1946. name: body
  1947. required: true
  1948. schema:
  1949. $ref: '#/definitions/v1.SetPasswdBody'
  1950. produces:
  1951. - application/json
  1952. responses:
  1953. "200":
  1954. description: OK
  1955. schema:
  1956. $ref: '#/definitions/v1.SetPasswdResponse'
  1957. "500":
  1958. description: Internal Server Error
  1959. schema:
  1960. $ref: '#/definitions/base.HTTPError'
  1961. summary: 找回密码设置密码
  1962. tags:
  1963. - user
  1964. /api/v1/user/status:
  1965. get:
  1966. consumes:
  1967. - application/json
  1968. description: 根据社会码获取注册状态
  1969. parameters:
  1970. - description: ' '
  1971. in: query
  1972. name: social_code
  1973. required: true
  1974. type: string
  1975. produces:
  1976. - application/json
  1977. responses:
  1978. "200":
  1979. description: OK
  1980. schema:
  1981. $ref: '#/definitions/v1.CompanyApproveStatusResponse'
  1982. "500":
  1983. description: Internal Server Error
  1984. schema:
  1985. $ref: '#/definitions/base.HTTPError'
  1986. summary: 根据社会码获取注册状态
  1987. tags:
  1988. - user
  1989. /api/v1/user/tmp_token:
  1990. get:
  1991. consumes:
  1992. - application/json
  1993. description: 获取临时token
  1994. parameters:
  1995. - description: ' '
  1996. in: header
  1997. name: token
  1998. required: true
  1999. type: string
  2000. - description: 项目id
  2001. in: query
  2002. name: project_id
  2003. required: true
  2004. type: string
  2005. produces:
  2006. - application/json
  2007. responses:
  2008. "200":
  2009. description: OK
  2010. schema:
  2011. $ref: '#/definitions/v1.TmpTokenResponse'
  2012. "500":
  2013. description: Internal Server Error
  2014. schema:
  2015. $ref: '#/definitions/base.HTTPError'
  2016. summary: 获取临时token
  2017. tags:
  2018. - user
  2019. /api/v1/user/verify_mail:
  2020. put:
  2021. consumes:
  2022. - application/json
  2023. description: 发送验证邮件
  2024. parameters:
  2025. - description: ' '
  2026. in: header
  2027. name: token
  2028. required: true
  2029. type: string
  2030. - description: ' '
  2031. in: body
  2032. name: body
  2033. required: true
  2034. schema:
  2035. $ref: '#/definitions/v1.MailPrepareBody'
  2036. produces:
  2037. - application/json
  2038. responses:
  2039. "200":
  2040. description: OK
  2041. schema:
  2042. $ref: '#/definitions/v1.MailPrepareResponse'
  2043. "500":
  2044. description: Internal Server Error
  2045. schema:
  2046. $ref: '#/definitions/base.HTTPError'
  2047. summary: 发送验证邮件
  2048. tags:
  2049. - user
  2050. /api/v1/vcode:
  2051. get:
  2052. consumes:
  2053. - application/json
  2054. description: 获取短信验证码
  2055. parameters:
  2056. - description: phone
  2057. in: query
  2058. name: phone
  2059. required: true
  2060. type: string
  2061. produces:
  2062. - application/json
  2063. responses:
  2064. "200":
  2065. description: OK
  2066. schema:
  2067. $ref: '#/definitions/v1.VcodeResponse'
  2068. "500":
  2069. description: Internal Server Error
  2070. schema:
  2071. $ref: '#/definitions/base.HTTPError'
  2072. summary: 获取短信验证码
  2073. tags:
  2074. - publicity
  2075. swagger: "2.0"