swagger.yaml 58 KB

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