swagger.yaml 65 KB

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