swagger.yaml 51 KB

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