swagger.yaml 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113
  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.ApplicationItem:
  13. properties:
  14. content:
  15. type: string
  16. desc:
  17. type: string
  18. enable:
  19. type: boolean
  20. icon:
  21. type: string
  22. id:
  23. type: integer
  24. name:
  25. type: string
  26. price:
  27. type: integer
  28. type: object
  29. v1.ApplicationListReply:
  30. properties:
  31. list:
  32. items:
  33. $ref: '#/definitions/v1.ApplicationItem'
  34. type: array
  35. page:
  36. type: integer
  37. total:
  38. type: integer
  39. type: object
  40. v1.ApplicationListResponse:
  41. properties:
  42. code:
  43. default: 0
  44. description: 返回码
  45. format: int
  46. type: integer
  47. data:
  48. $ref: '#/definitions/v1.ApplicationListReply'
  49. type: object
  50. message:
  51. default: success
  52. description: 消息
  53. type: string
  54. type: object
  55. v1.AreaData:
  56. properties:
  57. city_code:
  58. type: string
  59. code:
  60. type: string
  61. name:
  62. type: string
  63. province_code:
  64. type: string
  65. type: object
  66. v1.ChangePasswordBody:
  67. properties:
  68. new_password:
  69. type: string
  70. old_password:
  71. type: string
  72. type: object
  73. v1.ChangePasswordResponse:
  74. properties:
  75. code:
  76. default: 0
  77. description: 返回码
  78. format: int
  79. type: integer
  80. message:
  81. default: success
  82. description: 消息
  83. type: string
  84. type: object
  85. v1.CityData:
  86. properties:
  87. code:
  88. type: string
  89. name:
  90. type: string
  91. province_code:
  92. type: string
  93. type: object
  94. v1.CommitteeData:
  95. properties:
  96. code:
  97. type: string
  98. name:
  99. type: string
  100. street_code:
  101. type: string
  102. type: object
  103. v1.CompanyAddGardenBody:
  104. properties:
  105. appendix:
  106. description: 证明材料
  107. items:
  108. type: string
  109. type: array
  110. area:
  111. description: 区
  112. type: string
  113. area_code:
  114. type: string
  115. area_percent:
  116. description: 容积率
  117. type: number
  118. avg_price:
  119. type: integer
  120. building_area:
  121. description: 建筑面积
  122. type: number
  123. building_company:
  124. description: 开发企业
  125. type: string
  126. building_end:
  127. description: 建成年份结束时间戳
  128. type: integer
  129. building_start:
  130. description: 建成年份开始时间戳
  131. type: integer
  132. building_type:
  133. description: 1塔楼 2 板楼 3 塔板结合 4 其他
  134. type: integer
  135. city:
  136. description: 市
  137. type: string
  138. city_code:
  139. type: string
  140. committee:
  141. description: 社区
  142. type: string
  143. committee_code:
  144. type: string
  145. covered_area:
  146. description: 占地面积
  147. type: number
  148. electric_type:
  149. description: 电费类型多选 1 民用 2 商用
  150. items:
  151. type: integer
  152. type: array
  153. garden_addr:
  154. description: 小区地址
  155. type: string
  156. garden_desc:
  157. description: 小区描述
  158. type: string
  159. garden_name:
  160. description: 小区名字
  161. type: string
  162. garden_pic:
  163. description: 小区形象图片
  164. type: string
  165. garden_pics:
  166. description: 小区图片
  167. items:
  168. type: string
  169. type: array
  170. gas_fee_end:
  171. description: 燃气费开始,单位分
  172. type: integer
  173. gas_fee_start:
  174. description: 燃气费开始,单位分
  175. type: integer
  176. green_percent:
  177. description: 绿化率
  178. type: number
  179. house_total:
  180. description: 总户数
  181. type: integer
  182. lat:
  183. description: 纬度
  184. type: number
  185. lnt:
  186. description: 经度
  187. type: number
  188. order_id:
  189. description: 套餐订单id
  190. type: integer
  191. property_fee_end:
  192. description: 物业费结束, 单位分
  193. type: integer
  194. property_fee_start:
  195. description: 物业费开始,单位分
  196. type: integer
  197. property_person:
  198. description: 物业联系人
  199. type: string
  200. property_phone:
  201. description: 物业联系人手机号
  202. type: string
  203. province:
  204. description: 省
  205. type: string
  206. province_code:
  207. type: string
  208. space_info:
  209. description: 车位配比
  210. type: string
  211. space_total:
  212. description: 固定车位数
  213. type: integer
  214. street:
  215. description: 街道
  216. type: string
  217. street_code:
  218. type: string
  219. water_type:
  220. description: 水费类型多选 1 民用 2 商用
  221. items:
  222. type: integer
  223. type: array
  224. type: object
  225. v1.CompanyAddGardenReply:
  226. properties:
  227. id:
  228. type: integer
  229. type: object
  230. v1.CompanyAddGardenResponse:
  231. properties:
  232. code:
  233. default: 0
  234. description: 返回码
  235. format: int
  236. type: integer
  237. data:
  238. $ref: '#/definitions/v1.CompanyAddGardenReply'
  239. type: object
  240. message:
  241. default: success
  242. description: 消息
  243. type: string
  244. type: object
  245. v1.CompanyCanAddGardenReply:
  246. properties:
  247. can_add:
  248. type: boolean
  249. type: object
  250. v1.CompanyCanAddGardenResponse:
  251. properties:
  252. code:
  253. default: 0
  254. description: 返回码
  255. format: int
  256. type: integer
  257. data:
  258. $ref: '#/definitions/v1.CompanyCanAddGardenReply'
  259. type: object
  260. message:
  261. default: success
  262. description: 消息
  263. type: string
  264. type: object
  265. v1.CompanyEnterGardenData:
  266. properties:
  267. token:
  268. type: string
  269. type: object
  270. v1.CompanyEnterGardenResponse:
  271. properties:
  272. code:
  273. default: 0
  274. description: 返回码
  275. format: int
  276. type: integer
  277. data:
  278. $ref: '#/definitions/v1.CompanyEnterGardenData'
  279. type: object
  280. message:
  281. default: success
  282. description: 消息
  283. type: string
  284. type: object
  285. v1.CompanyGardenDelResponse:
  286. properties:
  287. code:
  288. default: 0
  289. description: 返回码
  290. format: int
  291. type: integer
  292. message:
  293. default: success
  294. description: 消息
  295. type: string
  296. type: object
  297. v1.CompanyGardenListResponse:
  298. properties:
  299. code:
  300. default: 0
  301. description: 返回码
  302. format: int
  303. type: integer
  304. data:
  305. $ref: '#/definitions/v1.GardenListReply'
  306. type: object
  307. message:
  308. default: success
  309. description: 消息
  310. type: string
  311. type: object
  312. v1.CompanyGardenUpdateBody:
  313. properties:
  314. area_percent:
  315. description: 容积率
  316. type: number
  317. avg_price:
  318. type: integer
  319. building_area:
  320. description: 建筑面积
  321. type: number
  322. building_company:
  323. description: 开发企业
  324. type: string
  325. building_end:
  326. description: 建成年份结束时间戳
  327. type: integer
  328. building_start:
  329. description: 建成年份开始时间戳
  330. type: integer
  331. building_type:
  332. description: 1塔楼 2 板楼 3 塔板结合 4 其他
  333. type: integer
  334. covered_area:
  335. description: 占地面积
  336. type: number
  337. electric_type:
  338. description: 电费类型多选 1 民用 2 商用
  339. items:
  340. type: integer
  341. type: array
  342. garden_addr:
  343. description: |-
  344. Province string `form:"province" json:"province"`
  345. ProvinceCode string `form:"province_code" json:"province_code"`
  346. City string `form:"city" json:"city"`
  347. CityCode string `form:"city_code" json:"city_code"`
  348. Area string `form:"area" json:"area"`
  349. AreaCode string `form:"area_code" json:"area_code"`
  350. 街道
  351. Street string `form:"street" json:"street"`
  352. StreetCode string `form:"street_code" json:"street_code"`
  353. 社区
  354. Committee string `form:"committee" json:"committee"`
  355. CommitteeCode string `form:"committee_code" json:"committee_code"`
  356. 小区名字
  357. GardenName string `form:"garden_name" json:"garden_name"`
  358. 小区地址
  359. type: string
  360. garden_desc:
  361. description: 小区描述
  362. type: string
  363. garden_pic:
  364. description: 小区形象图片
  365. type: string
  366. garden_pics:
  367. description: 小区图片
  368. items:
  369. type: string
  370. type: array
  371. gas_fee_end:
  372. description: 燃气费开始,单位分
  373. type: integer
  374. gas_fee_start:
  375. description: 燃气费开始,单位分
  376. type: integer
  377. green_percent:
  378. description: 绿化率
  379. type: number
  380. house_total:
  381. description: 总户数
  382. type: integer
  383. id:
  384. type: integer
  385. lat:
  386. description: 纬度
  387. type: number
  388. lnt:
  389. description: 经度
  390. type: number
  391. property_fee_end:
  392. description: 物业费结束, 单位分
  393. type: integer
  394. property_fee_start:
  395. description: 物业费开始,单位分
  396. type: integer
  397. property_person:
  398. description: 物业联系人
  399. type: string
  400. property_phone:
  401. description: 物业联系人手机号
  402. type: string
  403. space_info:
  404. description: 车位配比
  405. type: string
  406. space_total:
  407. description: 固定车位数
  408. type: integer
  409. water_type:
  410. description: 水费类型多选 1 民用 2 商用
  411. items:
  412. type: integer
  413. type: array
  414. type: object
  415. v1.CompanyGardenUpdateResponse:
  416. properties:
  417. code:
  418. default: 0
  419. description: 返回码
  420. format: int
  421. type: integer
  422. message:
  423. default: success
  424. description: 消息
  425. type: string
  426. type: object
  427. v1.CompanyInfoReply:
  428. properties:
  429. applicant:
  430. description: 申请人
  431. type: string
  432. applicant_duty:
  433. description: 申请人职位
  434. type: string
  435. applicant_identification:
  436. description: 申请人身份
  437. type: string
  438. applicant_phone:
  439. description: 申请人电话
  440. type: string
  441. approve_status:
  442. description: 审核状态
  443. type: integer
  444. approved_at:
  445. description: 审批时间
  446. type: string
  447. business_license:
  448. description: 营业执照
  449. type: string
  450. company_addr:
  451. description: 公司地址
  452. type: string
  453. company_name:
  454. description: 公司名称
  455. type: string
  456. company_phone:
  457. description: 公司电话
  458. type: string
  459. created_at:
  460. description: 申请时间
  461. type: string
  462. desc:
  463. description: 简介
  464. type: string
  465. expire:
  466. description: 小区有效天数
  467. type: integer
  468. free_garden_count:
  469. description: 免费小区个数
  470. type: integer
  471. garden_count:
  472. description: 已有小区个数
  473. type: integer
  474. legal_person:
  475. description: 法人
  476. type: string
  477. license_type:
  478. description: 营业执照类型
  479. type: integer
  480. logo:
  481. description: 公司logo
  482. type: string
  483. password:
  484. description: 密码
  485. type: string
  486. site:
  487. description: 网址
  488. type: string
  489. social_code:
  490. description: 社会信用码
  491. type: string
  492. username:
  493. description: 账户名
  494. type: string
  495. type: object
  496. v1.CompanyInfoResponse:
  497. properties:
  498. code:
  499. default: 0
  500. description: 返回码
  501. format: int
  502. type: integer
  503. data:
  504. $ref: '#/definitions/v1.CompanyInfoReply'
  505. type: object
  506. message:
  507. default: success
  508. description: 消息
  509. type: string
  510. type: object
  511. v1.CompanyMchGardenItem:
  512. properties:
  513. garden_id:
  514. type: integer
  515. garden_name:
  516. type: string
  517. mch_id:
  518. type: string
  519. pay_mode:
  520. type: integer
  521. type: object
  522. v1.CompanyMchGardenListReply:
  523. properties:
  524. list:
  525. items:
  526. $ref: '#/definitions/v1.CompanyMchGardenItem'
  527. type: array
  528. type: object
  529. v1.CompanyMchGardenListResponse:
  530. properties:
  531. code:
  532. default: 0
  533. description: 返回码
  534. format: int
  535. type: integer
  536. data:
  537. $ref: '#/definitions/v1.CompanyMchGardenListReply'
  538. type: object
  539. message:
  540. default: success
  541. description: 消息
  542. type: string
  543. type: object
  544. v1.CompanyPackageApplicationItem:
  545. properties:
  546. content:
  547. type: string
  548. desc:
  549. type: string
  550. enable:
  551. type: boolean
  552. icon:
  553. type: string
  554. id:
  555. type: integer
  556. name:
  557. type: string
  558. price:
  559. type: integer
  560. type: object
  561. v1.CompanyPackageItem:
  562. properties:
  563. amount:
  564. description: 总价
  565. type: integer
  566. application_list:
  567. items:
  568. $ref: '#/definitions/v1.CompanyPackageApplicationItem'
  569. type: array
  570. cid:
  571. type: integer
  572. company_name:
  573. type: string
  574. created_at:
  575. type: integer
  576. desc:
  577. type: string
  578. enable:
  579. type: boolean
  580. expire_at:
  581. type: integer
  582. feedback:
  583. type: string
  584. garden_id:
  585. type: integer
  586. garden_name:
  587. type: string
  588. name:
  589. type: string
  590. order_id:
  591. type: integer
  592. package_id:
  593. type: integer
  594. pay_type:
  595. description: 1 对公转帐
  596. type: integer
  597. period:
  598. description: 周期
  599. type: integer
  600. price:
  601. description: 套餐价格
  602. type: integer
  603. status:
  604. description: 1 待审批 2 通过 3 未通过
  605. type: integer
  606. type: object
  607. v1.CompanyPackageListReply:
  608. properties:
  609. list:
  610. items:
  611. $ref: '#/definitions/v1.CompanyPackageItem'
  612. type: array
  613. page:
  614. type: integer
  615. total:
  616. type: integer
  617. type: object
  618. v1.CompanyPackageListResponse:
  619. properties:
  620. code:
  621. default: 0
  622. description: 返回码
  623. format: int
  624. type: integer
  625. data:
  626. $ref: '#/definitions/v1.CompanyPackageListReply'
  627. type: object
  628. message:
  629. default: success
  630. description: 消息
  631. type: string
  632. type: object
  633. v1.CompanyRegisterBody:
  634. properties:
  635. applicant:
  636. description: 申请人
  637. type: string
  638. applicant_duty:
  639. description: 申请人职位
  640. type: string
  641. applicant_identification:
  642. description: 申请人身份
  643. type: string
  644. applicant_phone:
  645. description: 申请人电话
  646. type: string
  647. business_license:
  648. description: 营业执照
  649. type: string
  650. company_addr:
  651. description: 公司地址
  652. type: string
  653. company_name:
  654. description: 公司名称
  655. type: string
  656. company_phone:
  657. description: 公司电话
  658. type: string
  659. desc:
  660. description: 简介
  661. type: string
  662. free_garden_count:
  663. description: 免费小区个数
  664. type: integer
  665. legal_person:
  666. description: 法人
  667. type: string
  668. license_type:
  669. description: 营业执照类型
  670. type: integer
  671. logo:
  672. description: 公司logo
  673. type: string
  674. password:
  675. description: 密码
  676. type: string
  677. site:
  678. description: 网址
  679. type: string
  680. social_code:
  681. description: 社会信用码
  682. type: string
  683. username:
  684. description: 账户名
  685. type: string
  686. type: object
  687. v1.CompanyRegisterResponse:
  688. properties:
  689. code:
  690. default: 0
  691. description: 返回码
  692. format: int
  693. type: integer
  694. data:
  695. $ref: '#/definitions/v1.RegisterReply'
  696. type: object
  697. message:
  698. default: success
  699. description: 消息
  700. type: string
  701. type: object
  702. v1.CompanyStatisticReply:
  703. properties:
  704. deal_list:
  705. items:
  706. $ref: '#/definitions/v1.DealItem'
  707. type: array
  708. garden_count:
  709. description: 小区数
  710. type: integer
  711. house_count:
  712. description: 房屋数
  713. type: integer
  714. space_count:
  715. description: 车位数
  716. type: integer
  717. user_count:
  718. description: 住户数
  719. type: integer
  720. type: object
  721. v1.CompanyStatisticResponse:
  722. properties:
  723. code:
  724. default: 0
  725. description: 返回码
  726. format: int
  727. type: integer
  728. data:
  729. $ref: '#/definitions/v1.CompanyStatisticReply'
  730. type: object
  731. message:
  732. default: success
  733. description: 消息
  734. type: string
  735. type: object
  736. v1.CompanyUpdateBody:
  737. properties:
  738. business_license:
  739. description: 营业执照
  740. type: string
  741. company_addr:
  742. description: 公司地址
  743. type: string
  744. company_name:
  745. description: 公司名称
  746. type: string
  747. company_phone:
  748. description: 公司电话
  749. type: string
  750. desc:
  751. description: 简介
  752. type: string
  753. license_type:
  754. description: 营业执照类型
  755. type: integer
  756. logo:
  757. description: 公司logo
  758. type: string
  759. site:
  760. description: 网址
  761. type: string
  762. social_code:
  763. description: 社会信用码
  764. type: string
  765. type: object
  766. v1.CompanyUpdateResponse:
  767. properties:
  768. code:
  769. default: 0
  770. description: 返回码
  771. format: int
  772. type: integer
  773. message:
  774. default: success
  775. description: 消息
  776. type: string
  777. type: object
  778. v1.CompanyUserAddBody:
  779. properties:
  780. email:
  781. type: string
  782. password:
  783. type: string
  784. phone:
  785. type: string
  786. real_name:
  787. type: string
  788. user_name:
  789. type: string
  790. type: object
  791. v1.CompanyUserAddReply:
  792. properties:
  793. id:
  794. type: integer
  795. type: object
  796. v1.CompanyUserAddResponse:
  797. properties:
  798. code:
  799. default: 0
  800. description: 返回码
  801. format: int
  802. type: integer
  803. data:
  804. $ref: '#/definitions/v1.CompanyUserAddReply'
  805. type: object
  806. message:
  807. default: success
  808. description: 消息
  809. type: string
  810. type: object
  811. v1.CompanyUserDelResponse:
  812. properties:
  813. code:
  814. default: 0
  815. description: 返回码
  816. format: int
  817. type: integer
  818. message:
  819. default: success
  820. description: 消息
  821. type: string
  822. type: object
  823. v1.CompanyUserItem:
  824. properties:
  825. created_at:
  826. type: integer
  827. email:
  828. type: string
  829. id:
  830. type: integer
  831. password:
  832. type: string
  833. phone:
  834. type: string
  835. real_name:
  836. type: string
  837. super:
  838. type: boolean
  839. user_name:
  840. type: string
  841. type: object
  842. v1.CompanyUserListReply:
  843. properties:
  844. list:
  845. items:
  846. $ref: '#/definitions/v1.CompanyUserItem'
  847. type: array
  848. page:
  849. type: integer
  850. total:
  851. type: integer
  852. type: object
  853. v1.CompanyUserListResponse:
  854. properties:
  855. code:
  856. default: 0
  857. description: 返回码
  858. format: int
  859. type: integer
  860. data:
  861. $ref: '#/definitions/v1.CompanyUserListReply'
  862. type: object
  863. message:
  864. default: success
  865. description: 消息
  866. type: string
  867. type: object
  868. v1.CompanyUserUpdateBody:
  869. properties:
  870. email:
  871. type: string
  872. id:
  873. type: integer
  874. password:
  875. type: string
  876. phone:
  877. type: string
  878. real_name:
  879. type: string
  880. user_name:
  881. type: string
  882. type: object
  883. v1.CompanyUserUpdateResponse:
  884. properties:
  885. code:
  886. default: 0
  887. description: 返回码
  888. format: int
  889. type: integer
  890. message:
  891. default: success
  892. description: 消息
  893. type: string
  894. type: object
  895. v1.CompanyWxAccountApplyBody:
  896. properties:
  897. bank_account_info:
  898. $ref: '#/definitions/v1.CompanyWxBankAccountInfo'
  899. description: 银行账号资料 必填
  900. type: object
  901. business_info:
  902. $ref: '#/definitions/v1.CompanyWxBusinessInfo'
  903. description: 经营资料 必填
  904. type: object
  905. contact_info:
  906. $ref: '#/definitions/v1.CompanyWxContactInfo'
  907. description: 超管员资料 必填
  908. type: object
  909. subject_info:
  910. $ref: '#/definitions/v1.CompanyWxSubjectInfo'
  911. description: 主体资料 必填
  912. type: object
  913. type: object
  914. v1.CompanyWxAccountApplyInfoReply:
  915. properties:
  916. bank_account_info:
  917. $ref: '#/definitions/v1.CompanyWxBankAccountInfo'
  918. description: 银行账号资料
  919. type: object
  920. business_info:
  921. $ref: '#/definitions/v1.CompanyWxBusinessInfo'
  922. description: 经营资料
  923. type: object
  924. contact_info:
  925. $ref: '#/definitions/v1.CompanyWxContactInfo'
  926. description: 超管员资料
  927. type: object
  928. id:
  929. type: integer
  930. subject_info:
  931. $ref: '#/definitions/v1.CompanyWxSubjectInfo'
  932. description: 主体资料
  933. type: object
  934. type: object
  935. v1.CompanyWxAccountApplyInfoResponse:
  936. properties:
  937. code:
  938. default: 0
  939. description: 返回码
  940. format: int
  941. type: integer
  942. data:
  943. $ref: '#/definitions/v1.CompanyWxAccountApplyInfoReply'
  944. type: object
  945. message:
  946. default: success
  947. description: 消息
  948. type: string
  949. type: object
  950. v1.CompanyWxAccountApplyListItem:
  951. properties:
  952. business_code:
  953. description: 单号
  954. type: string
  955. id:
  956. type: integer
  957. mch_id:
  958. description: 商户号(申请审批成功才会有)
  959. type: string
  960. merchant_name:
  961. description: 申请的商户名称
  962. type: string
  963. reason:
  964. description: 驳回原因
  965. type: string
  966. sign_url:
  967. description: 二维码
  968. type: string
  969. state:
  970. description: |-
  971. 1、APPLYMENT_STATE_EDITTING(编辑中):提交申请发生错误导致,请尝试重新提交。
  972. 2、APPLYMENT_STATE_AUDITING(审核中):申请单正在审核中,超级管理员用微信打开“签约链接”,完成绑定微信号后,申请单进度将通过微信公众号通知超级管理员,引导完成后续步骤。
  973. 3、APPLYMENT_STATE_REJECTED(已驳回):请按照驳回原因修改申请资料,超级管理员用微信打开“签约链接”,完成绑定微信号,后续申请单进度将通过微信公众号通知超级管理员。
  974. 4、APPLYMENT_STATE_TO_BE_CONFIRMED(待账户验证):请超级管理员使用微信打开返回的“签约链接”,根据页面指引完成账户验证。
  975. 5、APPLYMENT_STATE_TO_BE_SIGNED(待签约):请超级管理员使用微信打开返回的“签约链接”,根据页面指引完成签约。
  976. 6、APPLYMENT_STATE_SIGNING(开通权限中):系统开通相关权限中,请耐心等待。
  977. 7、APPLYMENT_STATE_FINISHED(已完成):商户入驻申请已完成。
  978. 8、APPLYMENT_STATE_CANCELED(已作废):申请单已被撤销。
  979. type: string
  980. state_msg:
  981. description: 状态描述
  982. type: string
  983. type: object
  984. v1.CompanyWxAccountApplyListReply:
  985. properties:
  986. list:
  987. items:
  988. $ref: '#/definitions/v1.CompanyWxAccountApplyListItem'
  989. type: array
  990. page:
  991. type: integer
  992. total:
  993. type: integer
  994. type: object
  995. v1.CompanyWxAccountApplyResponse:
  996. properties:
  997. code:
  998. default: 0
  999. description: 返回码
  1000. format: int
  1001. type: integer
  1002. message:
  1003. default: success
  1004. description: 消息
  1005. type: string
  1006. type: object
  1007. v1.CompanyWxAccountListResponse:
  1008. properties:
  1009. code:
  1010. default: 0
  1011. description: 返回码
  1012. format: int
  1013. type: integer
  1014. data:
  1015. $ref: '#/definitions/v1.CompanyWxAccountApplyListReply'
  1016. type: object
  1017. message:
  1018. default: success
  1019. description: 消息
  1020. type: string
  1021. type: object
  1022. v1.CompanyWxBankAccountInfo:
  1023. properties:
  1024. account_bank:
  1025. description: 开户行
  1026. type: string
  1027. account_name:
  1028. description: 开户姓名, 开户名称必须与营业执照/登记证书的“商户名称”一致
  1029. type: string
  1030. account_number:
  1031. description: 银行账号
  1032. type: string
  1033. bank_account_type:
  1034. type: string
  1035. bank_address_code:
  1036. description: 开户银行省市编码
  1037. type: string
  1038. bank_branch_id:
  1039. description: |-
  1040. 开户银行联行号
  1041. 1、17家直连银行无需填写,如为其他银行,则开户银行全称(含支行)和开户银行联行号二选一。
  1042. 2、详细参见开户银行全称(含支行)对照表。
  1043. 示例值:402713354941
  1044. type: string
  1045. bank_name:
  1046. description: |-
  1047. 开户银行全称(含支行)
  1048. 1、17家直连银行无需填写,如为其他银行,则开户银行全称(含支行)和 开户银行联行号二选一。
  1049. 2、需填写银行全称,如"深圳农村商业银行XXX支行",详细参见开户银行全称(含支行)对照表。
  1050. 示例值:施秉县农村信用合作联社城关信用社
  1051. type: string
  1052. type: object
  1053. v1.CompanyWxBusinessInfo:
  1054. properties:
  1055. merchant_shortname:
  1056. description: |-
  1057. 1、请输入2-30个字符,支持中文/字母/数字/特殊符号
  1058. 2、在支付完成页向买家展示,需与微信经营类目相关;
  1059. 3、简称要求
  1060. (1)不支持单纯以人名来命名,若为个体户经营,可用“个体户+经营者名称”或“经营者名称+业务”命名,如“个体户张三”或“张三餐饮店”;
  1061. (2)不支持无实际意义的文案,如“XX特约商户”、“800”、“XX客服电话XXX”
  1062. type: string
  1063. service_phone:
  1064. description: 客服电话
  1065. type: string
  1066. type: object
  1067. v1.CompanyWxBusinessLicenseInfo:
  1068. properties:
  1069. legal_person:
  1070. description: 法人姓名
  1071. type: string
  1072. license_address:
  1073. type: string
  1074. license_copy:
  1075. description: 营业执照图片
  1076. type: string
  1077. license_copy_url:
  1078. description: 营业执照图片
  1079. type: string
  1080. license_number:
  1081. description: 统一社会信用码
  1082. type: string
  1083. merchant_name:
  1084. description: 营业执照上的商户名称
  1085. type: string
  1086. period_begin:
  1087. type: string
  1088. period_end:
  1089. type: string
  1090. type: object
  1091. v1.CompanyWxCertificateInfo:
  1092. properties:
  1093. cert_copy:
  1094. description: 证书图片id
  1095. type: string
  1096. cert_number:
  1097. description: 证书号
  1098. type: string
  1099. cert_type:
  1100. description: |-
  1101. 当主体为事业单位时,选择此枚举值:
  1102. CERTIFICATE_TYPE_2388:事业单位法人证书
  1103. 当主体为政府机关,选择此枚举值:
  1104. CERTIFICATE_TYPE_2389:统一社会信用代码证书
  1105. 当主体为社会组织,选择以下枚举值之一:
  1106. CERTIFICATE_TYPE_2389:统一社会信用代码证书
  1107. CERTIFICATE_TYPE_2394:社会团体法人登记证书
  1108. CERTIFICATE_TYPE_2395:民办非企业单位登记证书
  1109. CERTIFICATE_TYPE_2396:基金会法人登记证书
  1110. CERTIFICATE_TYPE_2397:慈善组织公开募捐资格证书(已废弃)
  1111. CERTIFICATE_TYPE_2398:农民专业合作社法人营业执照(已废弃)
  1112. CERTIFICATE_TYPE_2520:执业许可证/执业证
  1113. CERTIFICATE_TYPE_2521:基层群众性自治组织特别法人统一社会信用代码证
  1114. CERTIFICATE_TYPE_2522:农村集体经济组织登记证
  1115. CERTIFICATE_TYPE_2399:宗教活动场所登记证
  1116. CERTIFICATE_TYPE_2400:政府部门下发的其他有效证明文件
  1117. type: string
  1118. company_address:
  1119. description: 证书上的注册地址
  1120. type: string
  1121. legal_person:
  1122. description: 证书上的法人
  1123. type: string
  1124. merchant_name:
  1125. description: 商户名称
  1126. type: string
  1127. period_begin:
  1128. description: 证书开始时间 2006-01-02
  1129. type: string
  1130. period_end:
  1131. description: 证书结束时间2006-01-02,若为长期则填长期
  1132. type: string
  1133. type: object
  1134. v1.CompanyWxContactInfo:
  1135. properties:
  1136. business_authorization_letter:
  1137. description: 授权函(当为经办人时才填)
  1138. type: string
  1139. business_authorization_letter_url:
  1140. description: 授权函(当为经办人时才填)
  1141. type: string
  1142. contact_email:
  1143. description: 联系人邮箱(当为经办人时才填)
  1144. type: string
  1145. contact_id_doc_copy:
  1146. description: 证件正面图片id(当为经办人时才填)
  1147. type: string
  1148. contact_id_doc_copy_back:
  1149. description: 证件背面图片id(当为经办人时才填)
  1150. type: string
  1151. contact_id_doc_copy_back_url:
  1152. description: 证件背面图片id(当为经办人时才填)
  1153. type: string
  1154. contact_id_doc_copy_url:
  1155. description: 证件正面图片id(当为经办人时才填)
  1156. type: string
  1157. contact_id_doc_type:
  1158. description: 联系人证件类型(当为经办人时才填)
  1159. type: string
  1160. contact_id_number:
  1161. description: 证件号(当为经办人时才填)
  1162. type: string
  1163. contact_name:
  1164. description: 联系人姓名
  1165. type: string
  1166. contact_period_begin:
  1167. description: 证件开始时间(当为经办人时才填)
  1168. type: string
  1169. contact_period_end:
  1170. description: 证件结束时间(当为经办人时才填)
  1171. type: string
  1172. contact_type:
  1173. description: LEGAL:经营者/法人,SUPER:经办人 。
  1174. type: string
  1175. mobile_phone:
  1176. description: 联系人电话(当为经办人时才填)
  1177. type: string
  1178. openid:
  1179. type: string
  1180. type: object
  1181. v1.CompanyWxIdDocInfo:
  1182. properties:
  1183. doc_period_begin:
  1184. description: 开始时间
  1185. type: string
  1186. doc_period_end:
  1187. description: 结束时间
  1188. type: string
  1189. id_doc_address:
  1190. type: string
  1191. id_doc_copy:
  1192. description: 证件图片
  1193. type: string
  1194. id_doc_copy_back:
  1195. type: string
  1196. id_doc_copy_back_url:
  1197. type: string
  1198. id_doc_copy_url:
  1199. description: 证件图片url
  1200. type: string
  1201. id_doc_name:
  1202. description: 证件姓名
  1203. type: string
  1204. id_doc_number:
  1205. description: 证件号
  1206. type: string
  1207. id_doc_type:
  1208. description: |-
  1209. IDENTIFICATION_TYPE_IDCARD:中国大陆居民-身份证
  1210. IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照
  1211. IDENTIFICATION_TYPE_HONGKONG_PASSPORT:中国香港居民-来往内地通行证
  1212. IDENTIFICATION_TYPE_MACAO_PASSPORT:中国澳门居民-来往内地通行证
  1213. IDENTIFICATION_TYPE_TAIWAN_PASSPORT:中国台湾居民-来往大陆通行证
  1214. type: string
  1215. type: object
  1216. v1.CompanyWxIdentityInfo:
  1217. properties:
  1218. authorize_letter_copy:
  1219. description: |-
  1220. 法定代表人说明函图片id
  1221. 1、当证件持有人类型为经办人时,必须上传。其他情况,无需上传。
  1222. 2、若因特殊情况,无法提供法定代表人证件时,请参照示例图打印法定代表人说明函,全部信息需打印,不支持手写商户信息,并加盖公章。
  1223. 3、可上传1张图片,请填写通过图片上传APIAPI预先上传图片生成好的MediaID。
  1224. type: string
  1225. authorize_letter_copy_url:
  1226. type: string
  1227. id_doc_info:
  1228. $ref: '#/definitions/v1.CompanyWxIdDocInfo'
  1229. description: 证件信息
  1230. type: object
  1231. id_holder_type:
  1232. description: |-
  1233. 1. 主体类型为政府机关、事业单位时选传:
  1234. (1)若上传的是法人证件,则不需要上传该字段
  1235. (2)若因特殊情况,无法提供法人证件时,可上传经办人。 (经办人:经商户授权办理微信支付业务的人员,授权范围包括但不限于签约,入驻过程需完成账户验证)。
  1236. type: string
  1237. owner:
  1238. description: 法人是否为最终受益人
  1239. type: boolean
  1240. type: object
  1241. v1.CompanyWxSubjectInfo:
  1242. properties:
  1243. business_license_info:
  1244. $ref: '#/definitions/v1.CompanyWxBusinessLicenseInfo'
  1245. description: 营业执照信息
  1246. type: object
  1247. cert_info:
  1248. $ref: '#/definitions/v1.CompanyWxCertificateInfo'
  1249. description: 主体为政府机关/事业单位/其他组织时,必填。
  1250. type: object
  1251. identity_info:
  1252. $ref: '#/definitions/v1.CompanyWxIdentityInfo'
  1253. description: 法人身份信息
  1254. type: object
  1255. subject_type:
  1256. description: |-
  1257. 主体类型需与营业执照/登记证书上一致,可参考选择主体指引
  1258. SUBJECT_TYPE_INDIVIDUAL(个体户):营业执照上的主体类型一般为个体户、个体工商户、个体经营;
  1259. SUBJECT_TYPE_ENTERPRISE(企业):营业执照上的主体类型一般为有限公司、有限责任公司;
  1260. SUBJECT_TYPE_INSTITUTIONS(党政、机关及事业单位):包括国内各级、各类政府机构、事业单位等(如:公安、党团、司法、交通、旅游、工商税务、市政、医疗、教育、学校等机构);
  1261. SUBJECT_TYPE_OTHERS(其他组织):不属于企业、政府/事业单位的组织机构(如社会团体、民办非企业、基金会),要求机构已办理组织机构代码证。
  1262. type: string
  1263. ubo_infos:
  1264. description: |-
  1265. 受益人身份信息,若法人不是最终受益人,该字段必填
  1266. 若经营者/法人不是最终受益所有人,则需提填写受益所有人信息。
  1267. 根据国家相关法律法规,需要提供公司受益所有人信息,受益所有人需符合至少以下条件之一:
  1268. 1、直接或者间接拥有超过25%公司股权或者表决权的自然人。
  1269. 2、通过人事、财务等其他方式对公司进行控制的自然人。
  1270. 3、公司的高级管理人员,包括公司的经理、副经理、财务负责人、上市公司董事会秘书和公司章程规定的其他人员。
  1271. items:
  1272. $ref: '#/definitions/v1.CompanyWxIdDocInfo'
  1273. type: array
  1274. type: object
  1275. v1.DealItem:
  1276. properties:
  1277. date_timestamp:
  1278. type: integer
  1279. deal_amount:
  1280. description: 成交额
  1281. type: integer
  1282. deal_count:
  1283. description: 成交量
  1284. type: integer
  1285. type: object
  1286. v1.GardenItem:
  1287. properties:
  1288. appendix:
  1289. items:
  1290. type: string
  1291. type: array
  1292. area:
  1293. description: 区
  1294. type: string
  1295. area_code:
  1296. type: string
  1297. area_percent:
  1298. description: 容积率
  1299. type: number
  1300. avg_price:
  1301. type: integer
  1302. building_area:
  1303. description: 建筑面积
  1304. type: number
  1305. building_company:
  1306. description: 开发企业
  1307. type: string
  1308. building_end:
  1309. description: 建成年份结束时间戳
  1310. type: integer
  1311. building_start:
  1312. description: 建成年份开始时间戳
  1313. type: integer
  1314. building_type:
  1315. description: 1塔楼 2 板楼 3 塔板结合 4 其他
  1316. type: integer
  1317. cid:
  1318. description: 物业公司id
  1319. type: integer
  1320. city:
  1321. description: 市
  1322. type: string
  1323. city_code:
  1324. type: string
  1325. committee:
  1326. description: 社区
  1327. type: string
  1328. committee_code:
  1329. type: string
  1330. covered_area:
  1331. description: 占地面积
  1332. type: number
  1333. electric_type:
  1334. description: 电费类型多选 1 民用 2 商用
  1335. items:
  1336. type: integer
  1337. type: array
  1338. feedback:
  1339. type: string
  1340. garden_addr:
  1341. description: 小区地址
  1342. type: string
  1343. garden_desc:
  1344. type: string
  1345. garden_name:
  1346. description: 小区名字
  1347. type: string
  1348. garden_pic:
  1349. type: string
  1350. garden_pics:
  1351. description: 小区图片
  1352. items:
  1353. type: string
  1354. type: array
  1355. gas_fee_end:
  1356. description: 燃气费开始,单位分
  1357. type: integer
  1358. gas_fee_start:
  1359. description: 燃气费开始,单位分
  1360. type: integer
  1361. green_percent:
  1362. description: 绿化率
  1363. type: number
  1364. house_total:
  1365. description: 总户数
  1366. type: integer
  1367. id:
  1368. type: integer
  1369. in_use:
  1370. type: boolean
  1371. lat:
  1372. description: 纬度
  1373. type: number
  1374. lnt:
  1375. description: 经度
  1376. type: number
  1377. property_fee_end:
  1378. description: 物业费结束, 单位分
  1379. type: integer
  1380. property_fee_start:
  1381. description: 物业费开始,单位分
  1382. type: integer
  1383. property_person:
  1384. description: 物业联系人
  1385. type: string
  1386. property_phone:
  1387. description: 物业联系人手机号
  1388. type: string
  1389. province:
  1390. description: 省
  1391. type: string
  1392. province_code:
  1393. type: string
  1394. space_info:
  1395. description: 车位配比
  1396. type: string
  1397. space_total:
  1398. description: 固定车位数
  1399. type: integer
  1400. status:
  1401. type: integer
  1402. street:
  1403. description: 街道
  1404. type: string
  1405. street_code:
  1406. type: string
  1407. water_type:
  1408. description: 水费类型多选 1 民用 2 商用
  1409. items:
  1410. type: integer
  1411. type: array
  1412. type: object
  1413. v1.GardenKeyInfoChangeBody:
  1414. properties:
  1415. area:
  1416. description: 区
  1417. type: string
  1418. area_code:
  1419. type: string
  1420. city:
  1421. description: 市
  1422. type: string
  1423. city_code:
  1424. type: string
  1425. committee:
  1426. description: 社区
  1427. type: string
  1428. committee_code:
  1429. type: string
  1430. garden_id:
  1431. type: integer
  1432. garden_name:
  1433. description: 小区名字
  1434. type: string
  1435. province:
  1436. description: 省
  1437. type: string
  1438. province_code:
  1439. type: string
  1440. street:
  1441. description: 街道
  1442. type: string
  1443. street_code:
  1444. type: string
  1445. type: object
  1446. v1.GardenKeyInfoChangeListReply:
  1447. properties:
  1448. list:
  1449. items:
  1450. $ref: '#/definitions/v1.GardenKeyInfoData'
  1451. type: array
  1452. page:
  1453. type: integer
  1454. total:
  1455. type: integer
  1456. type: object
  1457. v1.GardenKeyInfoChangeListResponse:
  1458. properties:
  1459. code:
  1460. default: 0
  1461. description: 返回码
  1462. format: int
  1463. type: integer
  1464. data:
  1465. $ref: '#/definitions/v1.GardenKeyInfoChangeListReply'
  1466. type: object
  1467. message:
  1468. default: success
  1469. description: 消息
  1470. type: string
  1471. type: object
  1472. v1.GardenKeyInfoChangeResponse:
  1473. properties:
  1474. code:
  1475. default: 0
  1476. description: 返回码
  1477. format: int
  1478. type: integer
  1479. message:
  1480. default: success
  1481. description: 消息
  1482. type: string
  1483. type: object
  1484. v1.GardenKeyInfoData:
  1485. properties:
  1486. cid:
  1487. type: integer
  1488. feedback:
  1489. type: string
  1490. garden_detail:
  1491. type: string
  1492. garden_id:
  1493. type: integer
  1494. garden_name:
  1495. type: string
  1496. id:
  1497. type: integer
  1498. list:
  1499. items:
  1500. $ref: '#/definitions/v1.GardenKeyInfoItem'
  1501. type: array
  1502. status:
  1503. type: integer
  1504. type: object
  1505. v1.GardenKeyInfoItem:
  1506. properties:
  1507. field_name:
  1508. type: string
  1509. field_value_dst:
  1510. type: string
  1511. field_value_src:
  1512. type: string
  1513. type: object
  1514. v1.GardenListReply:
  1515. properties:
  1516. list:
  1517. items:
  1518. $ref: '#/definitions/v1.GardenItem'
  1519. type: array
  1520. page:
  1521. type: integer
  1522. total:
  1523. type: integer
  1524. type: object
  1525. v1.GardenSetMchBody:
  1526. properties:
  1527. garden_id:
  1528. type: integer
  1529. mch_id:
  1530. type: string
  1531. type: object
  1532. v1.GardenSetMchPayModeBody:
  1533. properties:
  1534. garden_id:
  1535. type: integer
  1536. pay_mode:
  1537. description: 1 不支持线上支付 2 支付到物业公司账户 3 支付到软件提供商账户
  1538. type: integer
  1539. type: object
  1540. v1.GardenSetMchPayModeResponse:
  1541. properties:
  1542. code:
  1543. default: 0
  1544. description: 返回码
  1545. format: int
  1546. type: integer
  1547. message:
  1548. default: success
  1549. description: 消息
  1550. type: string
  1551. type: object
  1552. v1.GardenSetMchResponse:
  1553. properties:
  1554. code:
  1555. default: 0
  1556. description: 返回码
  1557. format: int
  1558. type: integer
  1559. message:
  1560. default: success
  1561. description: 消息
  1562. type: string
  1563. type: object
  1564. v1.GetVcodeReply:
  1565. properties:
  1566. vcode:
  1567. type: integer
  1568. type: object
  1569. v1.GetVcodeResponse:
  1570. properties:
  1571. code:
  1572. default: 0
  1573. description: 返回码
  1574. format: int
  1575. type: integer
  1576. data:
  1577. $ref: '#/definitions/v1.GetVcodeReply'
  1578. type: object
  1579. message:
  1580. default: success
  1581. description: 消息
  1582. type: string
  1583. type: object
  1584. v1.LoginBody:
  1585. properties:
  1586. password:
  1587. type: string
  1588. user:
  1589. type: string
  1590. type: object
  1591. v1.LoginByPhoneBody:
  1592. properties:
  1593. phone:
  1594. type: string
  1595. vcode:
  1596. description: 短信验证码
  1597. type: integer
  1598. type: object
  1599. v1.LoginByPhoneResponse:
  1600. properties:
  1601. code:
  1602. default: 0
  1603. description: 返回码
  1604. format: int
  1605. type: integer
  1606. data:
  1607. $ref: '#/definitions/v1.LoginData'
  1608. type: object
  1609. message:
  1610. default: success
  1611. description: 消息
  1612. type: string
  1613. type: object
  1614. v1.LoginData:
  1615. properties:
  1616. token:
  1617. type: string
  1618. uid:
  1619. type: integer
  1620. user:
  1621. type: string
  1622. type: object
  1623. v1.LoginResponse:
  1624. properties:
  1625. code:
  1626. default: 0
  1627. description: 返回码
  1628. format: int
  1629. type: integer
  1630. data:
  1631. $ref: '#/definitions/v1.LoginData'
  1632. type: object
  1633. message:
  1634. default: success
  1635. description: 消息
  1636. type: string
  1637. type: object
  1638. v1.PackageItem:
  1639. properties:
  1640. application_names:
  1641. description: 应用名称
  1642. items:
  1643. type: string
  1644. type: array
  1645. desc:
  1646. type: string
  1647. enable:
  1648. type: boolean
  1649. house_count:
  1650. type: integer
  1651. id:
  1652. type: integer
  1653. name:
  1654. type: string
  1655. price:
  1656. description: 单价
  1657. type: integer
  1658. type: object
  1659. v1.PackageListReply:
  1660. properties:
  1661. list:
  1662. items:
  1663. $ref: '#/definitions/v1.PackageItem'
  1664. type: array
  1665. page:
  1666. type: integer
  1667. total:
  1668. type: integer
  1669. type: object
  1670. v1.PackageListResponse:
  1671. properties:
  1672. code:
  1673. default: 0
  1674. description: 返回码
  1675. format: int
  1676. type: integer
  1677. data:
  1678. $ref: '#/definitions/v1.PackageListReply'
  1679. type: object
  1680. message:
  1681. default: success
  1682. description: 消息
  1683. type: string
  1684. type: object
  1685. v1.PackageOrderAddBody:
  1686. properties:
  1687. amount:
  1688. description: 单价*周期得出的总价
  1689. type: integer
  1690. package_id:
  1691. type: integer
  1692. period:
  1693. description: 周期年
  1694. type: integer
  1695. type: object
  1696. v1.PackageOrderAddRenewBody:
  1697. properties:
  1698. amount:
  1699. type: integer
  1700. garden_id:
  1701. type: integer
  1702. package_id:
  1703. type: integer
  1704. period:
  1705. type: integer
  1706. type: object
  1707. v1.PackageOrderAddRenewResponse:
  1708. properties:
  1709. code:
  1710. default: 0
  1711. description: 返回码
  1712. format: int
  1713. type: integer
  1714. data:
  1715. $ref: '#/definitions/v1.PackageOrderAddReply'
  1716. type: object
  1717. message:
  1718. default: success
  1719. description: 消息
  1720. type: string
  1721. type: object
  1722. v1.PackageOrderAddReply:
  1723. properties:
  1724. amount:
  1725. description: 订单金额
  1726. type: integer
  1727. bank_account:
  1728. description: 银行账号
  1729. type: string
  1730. bank_name:
  1731. description: 开户行
  1732. type: string
  1733. bank_user_name:
  1734. description: 户名
  1735. type: string
  1736. garden_count:
  1737. type: integer
  1738. order_id:
  1739. type: integer
  1740. package_name:
  1741. type: string
  1742. pay_type:
  1743. description: 支付方式 1 对公转账
  1744. type: integer
  1745. period:
  1746. type: integer
  1747. type: object
  1748. v1.PackageOrderAddResponse:
  1749. properties:
  1750. code:
  1751. default: 0
  1752. description: 返回码
  1753. format: int
  1754. type: integer
  1755. data:
  1756. $ref: '#/definitions/v1.PackageOrderAddReply'
  1757. type: object
  1758. message:
  1759. default: success
  1760. description: 消息
  1761. type: string
  1762. type: object
  1763. v1.ProvinceCityAreaReply:
  1764. properties:
  1765. area_list:
  1766. items:
  1767. $ref: '#/definitions/v1.AreaData'
  1768. type: array
  1769. city_list:
  1770. items:
  1771. $ref: '#/definitions/v1.CityData'
  1772. type: array
  1773. province_list:
  1774. items:
  1775. $ref: '#/definitions/v1.ProvinceData'
  1776. type: array
  1777. type: object
  1778. v1.ProvinceCityAreaResponse:
  1779. properties:
  1780. code:
  1781. default: 0
  1782. description: 返回码
  1783. format: int
  1784. type: integer
  1785. data:
  1786. $ref: '#/definitions/v1.ProvinceCityAreaReply'
  1787. type: object
  1788. message:
  1789. default: success
  1790. description: 消息
  1791. type: string
  1792. type: object
  1793. v1.ProvinceData:
  1794. properties:
  1795. code:
  1796. type: string
  1797. name:
  1798. type: string
  1799. type: object
  1800. v1.RegisterReply:
  1801. properties:
  1802. id:
  1803. type: integer
  1804. type: object
  1805. v1.ResetPasswordBody:
  1806. properties:
  1807. password:
  1808. type: string
  1809. phone:
  1810. type: string
  1811. vcode:
  1812. description: 短信验证码
  1813. type: integer
  1814. type: object
  1815. v1.ResetPasswordResponse:
  1816. properties:
  1817. code:
  1818. default: 0
  1819. description: 返回码
  1820. format: int
  1821. type: integer
  1822. message:
  1823. default: success
  1824. description: 消息
  1825. type: string
  1826. type: object
  1827. v1.StreetCommitteeReply:
  1828. properties:
  1829. committee_list:
  1830. items:
  1831. $ref: '#/definitions/v1.CommitteeData'
  1832. type: array
  1833. street_list:
  1834. items:
  1835. $ref: '#/definitions/v1.StreetData'
  1836. type: array
  1837. type: object
  1838. v1.StreetCommitteeResponse:
  1839. properties:
  1840. code:
  1841. default: 0
  1842. description: 返回码
  1843. format: int
  1844. type: integer
  1845. data:
  1846. $ref: '#/definitions/v1.StreetCommitteeReply'
  1847. type: object
  1848. message:
  1849. default: success
  1850. description: 消息
  1851. type: string
  1852. type: object
  1853. v1.StreetData:
  1854. properties:
  1855. code:
  1856. type: string
  1857. name:
  1858. type: string
  1859. type: object
  1860. v1.TemplateData:
  1861. properties:
  1862. url:
  1863. type: string
  1864. type: object
  1865. v1.TemplateResponse:
  1866. properties:
  1867. code:
  1868. default: 0
  1869. description: 返回码
  1870. format: int
  1871. type: integer
  1872. data:
  1873. $ref: '#/definitions/v1.TemplateData'
  1874. type: object
  1875. message:
  1876. default: success
  1877. description: 消息
  1878. type: string
  1879. type: object
  1880. v1.TokenResponse:
  1881. properties:
  1882. code:
  1883. default: 0
  1884. description: 返回码
  1885. format: int
  1886. type: integer
  1887. data:
  1888. type: string
  1889. message:
  1890. default: success
  1891. description: 消息
  1892. type: string
  1893. refresh_token:
  1894. type: string
  1895. type: object
  1896. v1.UploadResponse:
  1897. properties:
  1898. code:
  1899. default: 0
  1900. description: 返回码
  1901. format: int
  1902. type: integer
  1903. data:
  1904. type: string
  1905. message:
  1906. default: success
  1907. description: 消息
  1908. type: string
  1909. type: object
  1910. v1.UploadWxData:
  1911. properties:
  1912. mediaId:
  1913. type: string
  1914. url:
  1915. type: string
  1916. type: object
  1917. v1.UploadWxResponse:
  1918. properties:
  1919. code:
  1920. default: 0
  1921. description: 返回码
  1922. format: int
  1923. type: integer
  1924. data:
  1925. $ref: '#/definitions/v1.UploadWxData'
  1926. type: object
  1927. message:
  1928. default: success
  1929. description: 消息
  1930. type: string
  1931. type: object
  1932. info:
  1933. contact: {}
  1934. description: This is a gateway server. On the page, you can go to do testing for every API.
  1935. license: {}
  1936. title: Project property-company-gateway's APIs
  1937. version: "1.1"
  1938. paths:
  1939. /api/v1/application:
  1940. get:
  1941. consumes:
  1942. - application/json
  1943. description: 所有应用列表
  1944. parameters:
  1945. - description: ' '
  1946. in: header
  1947. name: token
  1948. required: true
  1949. type: string
  1950. - description: 第几页,1为起始页, -1 不分页返回所有
  1951. in: query
  1952. name: page
  1953. required: true
  1954. type: integer
  1955. - description: 每页条数,-1 不分页返回所有
  1956. in: query
  1957. name: page_size
  1958. type: integer
  1959. produces:
  1960. - application/json
  1961. responses:
  1962. "200":
  1963. description: OK
  1964. schema:
  1965. $ref: '#/definitions/v1.ApplicationListResponse'
  1966. "500":
  1967. description: Internal Server Error
  1968. schema:
  1969. $ref: '#/definitions/base.HTTPError'
  1970. summary: 所有应用列表
  1971. tags:
  1972. - 应用
  1973. /api/v1/area/province_city_area:
  1974. get:
  1975. consumes:
  1976. - application/json
  1977. description: 省市区列表
  1978. parameters:
  1979. - description: ' '
  1980. in: header
  1981. name: token
  1982. required: true
  1983. type: string
  1984. produces:
  1985. - application/json
  1986. responses:
  1987. "200":
  1988. description: OK
  1989. schema:
  1990. $ref: '#/definitions/v1.ProvinceCityAreaResponse'
  1991. "500":
  1992. description: Internal Server Error
  1993. schema:
  1994. $ref: '#/definitions/base.HTTPError'
  1995. summary: 省市区列表
  1996. tags:
  1997. - 区域
  1998. /api/v1/area/street_committee:
  1999. get:
  2000. consumes:
  2001. - application/json
  2002. description: 街道社区列表
  2003. parameters:
  2004. - description: ' '
  2005. in: header
  2006. name: token
  2007. required: true
  2008. type: string
  2009. - description: 区域代码
  2010. in: query
  2011. name: area_code
  2012. required: true
  2013. type: string
  2014. produces:
  2015. - application/json
  2016. responses:
  2017. "200":
  2018. description: OK
  2019. schema:
  2020. $ref: '#/definitions/v1.StreetCommitteeResponse'
  2021. "500":
  2022. description: Internal Server Error
  2023. schema:
  2024. $ref: '#/definitions/base.HTTPError'
  2025. summary: 街道社区列表
  2026. tags:
  2027. - 区域
  2028. /api/v1/company:
  2029. get:
  2030. consumes:
  2031. - application/json
  2032. description: 获取公司信息
  2033. parameters:
  2034. - description: ' '
  2035. in: header
  2036. name: token
  2037. required: true
  2038. type: string
  2039. produces:
  2040. - application/json
  2041. responses:
  2042. "200":
  2043. description: OK
  2044. schema:
  2045. $ref: '#/definitions/v1.CompanyInfoResponse'
  2046. "500":
  2047. description: Internal Server Error
  2048. schema:
  2049. $ref: '#/definitions/base.HTTPError'
  2050. summary: 获取公司信息
  2051. tags:
  2052. - 公司
  2053. post:
  2054. consumes:
  2055. - application/json
  2056. description: 注册公司
  2057. parameters:
  2058. - description: 注册信息
  2059. in: body
  2060. name: body
  2061. required: true
  2062. schema:
  2063. $ref: '#/definitions/v1.CompanyRegisterBody'
  2064. produces:
  2065. - application/json
  2066. responses:
  2067. "200":
  2068. description: OK
  2069. schema:
  2070. $ref: '#/definitions/v1.CompanyRegisterResponse'
  2071. "500":
  2072. description: Internal Server Error
  2073. schema:
  2074. $ref: '#/definitions/base.HTTPError'
  2075. summary: 注册公司
  2076. tags:
  2077. - 公司
  2078. put:
  2079. consumes:
  2080. - application/json
  2081. description: 更改公司信息
  2082. parameters:
  2083. - description: ' '
  2084. in: header
  2085. name: token
  2086. required: true
  2087. type: string
  2088. - description: 注册信息
  2089. in: body
  2090. name: body
  2091. required: true
  2092. schema:
  2093. $ref: '#/definitions/v1.CompanyUpdateBody'
  2094. produces:
  2095. - application/json
  2096. responses:
  2097. "200":
  2098. description: OK
  2099. schema:
  2100. $ref: '#/definitions/v1.CompanyUpdateResponse'
  2101. "500":
  2102. description: Internal Server Error
  2103. schema:
  2104. $ref: '#/definitions/base.HTTPError'
  2105. summary: 更改公司信息
  2106. tags:
  2107. - 公司
  2108. /api/v1/company/garden_mch:
  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: mch_id
  2122. type: string
  2123. produces:
  2124. - application/json
  2125. responses:
  2126. "200":
  2127. description: OK
  2128. schema:
  2129. $ref: '#/definitions/v1.CompanyMchGardenListResponse'
  2130. "500":
  2131. description: Internal Server Error
  2132. schema:
  2133. $ref: '#/definitions/base.HTTPError'
  2134. summary: 获取小区支付商户号和支付类型信息
  2135. tags:
  2136. - 公司
  2137. put:
  2138. consumes:
  2139. - application/json
  2140. description: 设置小区支付商户号
  2141. parameters:
  2142. - description: ' '
  2143. in: header
  2144. name: token
  2145. required: true
  2146. type: string
  2147. - description: 信息
  2148. in: body
  2149. name: body
  2150. required: true
  2151. schema:
  2152. $ref: '#/definitions/v1.GardenSetMchBody'
  2153. produces:
  2154. - application/json
  2155. responses:
  2156. "200":
  2157. description: OK
  2158. schema:
  2159. $ref: '#/definitions/v1.GardenSetMchResponse'
  2160. "500":
  2161. description: Internal Server Error
  2162. schema:
  2163. $ref: '#/definitions/base.HTTPError'
  2164. summary: 设置小区支付商户号
  2165. tags:
  2166. - 公司
  2167. /api/v1/company/garden_paymode:
  2168. put:
  2169. consumes:
  2170. - application/json
  2171. description: 设置小区线上支付类型
  2172. parameters:
  2173. - description: ' '
  2174. in: header
  2175. name: token
  2176. required: true
  2177. type: string
  2178. - description: 信息
  2179. in: body
  2180. name: body
  2181. required: true
  2182. schema:
  2183. $ref: '#/definitions/v1.GardenSetMchPayModeBody'
  2184. produces:
  2185. - application/json
  2186. responses:
  2187. "200":
  2188. description: OK
  2189. schema:
  2190. $ref: '#/definitions/v1.GardenSetMchPayModeResponse'
  2191. "500":
  2192. description: Internal Server Error
  2193. schema:
  2194. $ref: '#/definitions/base.HTTPError'
  2195. summary: 设置小区线上支付类型
  2196. tags:
  2197. - 公司
  2198. /api/v1/company/template:
  2199. get:
  2200. consumes:
  2201. - application/json
  2202. description: 获取静态文件url
  2203. parameters:
  2204. - description: token
  2205. in: header
  2206. name: token
  2207. required: true
  2208. type: string
  2209. - description: 1 业务办理授权函 2 银行对照表 3 省市区编码对照表
  2210. in: query
  2211. name: template_type
  2212. required: true
  2213. type: integer
  2214. produces:
  2215. - application/json
  2216. responses:
  2217. "200":
  2218. description: OK
  2219. schema:
  2220. $ref: '#/definitions/v1.TemplateResponse'
  2221. "500":
  2222. description: Internal Server Error
  2223. schema:
  2224. $ref: '#/definitions/base.HTTPError'
  2225. summary: 获取静态文件url
  2226. tags:
  2227. - 公司
  2228. /api/v1/company/wx_account:
  2229. get:
  2230. consumes:
  2231. - application/json
  2232. description: 微信商户申请记录
  2233. parameters:
  2234. - description: ' '
  2235. in: header
  2236. name: token
  2237. required: true
  2238. type: string
  2239. - description: ' '
  2240. in: query
  2241. name: page
  2242. required: true
  2243. type: integer
  2244. - description: ' '
  2245. in: query
  2246. name: page_size
  2247. required: true
  2248. type: integer
  2249. produces:
  2250. - application/json
  2251. responses:
  2252. "200":
  2253. description: OK
  2254. schema:
  2255. $ref: '#/definitions/v1.CompanyWxAccountListResponse'
  2256. "500":
  2257. description: Internal Server Error
  2258. schema:
  2259. $ref: '#/definitions/base.HTTPError'
  2260. summary: 微信商户申请记录
  2261. tags:
  2262. - 公司
  2263. post:
  2264. consumes:
  2265. - application/json
  2266. description: 微信商户资料提交
  2267. parameters:
  2268. - description: ' '
  2269. in: header
  2270. name: token
  2271. required: true
  2272. type: string
  2273. - description: 信息
  2274. in: body
  2275. name: body
  2276. required: true
  2277. schema:
  2278. $ref: '#/definitions/v1.CompanyWxAccountApplyBody'
  2279. produces:
  2280. - application/json
  2281. responses:
  2282. "200":
  2283. description: OK
  2284. schema:
  2285. $ref: '#/definitions/v1.CompanyWxAccountApplyResponse'
  2286. "500":
  2287. description: Internal Server Error
  2288. schema:
  2289. $ref: '#/definitions/base.HTTPError'
  2290. summary: 微信商户资料提交
  2291. tags:
  2292. - 公司
  2293. /api/v1/company/wx_account_info:
  2294. get:
  2295. consumes:
  2296. - application/json
  2297. description: 微信商户申请资料详情
  2298. parameters:
  2299. - description: ' '
  2300. in: header
  2301. name: token
  2302. required: true
  2303. type: string
  2304. - description: 申请记录id
  2305. in: query
  2306. name: id
  2307. required: true
  2308. type: integer
  2309. produces:
  2310. - application/json
  2311. responses:
  2312. "200":
  2313. description: OK
  2314. schema:
  2315. $ref: '#/definitions/v1.CompanyWxAccountApplyInfoResponse'
  2316. "500":
  2317. description: Internal Server Error
  2318. schema:
  2319. $ref: '#/definitions/base.HTTPError'
  2320. summary: 微信商户申请资料详情
  2321. tags:
  2322. - 公司
  2323. /api/v1/company_user:
  2324. delete:
  2325. consumes:
  2326. - application/json
  2327. description: 删除用户
  2328. parameters:
  2329. - description: token
  2330. in: header
  2331. name: token
  2332. required: true
  2333. type: string
  2334. - description: ' '
  2335. in: query
  2336. name: id
  2337. required: true
  2338. type: integer
  2339. produces:
  2340. - application/json
  2341. responses:
  2342. "200":
  2343. description: OK
  2344. schema:
  2345. $ref: '#/definitions/v1.CompanyUserDelResponse'
  2346. "500":
  2347. description: Internal Server Error
  2348. schema:
  2349. $ref: '#/definitions/base.HTTPError'
  2350. summary: 删除用户
  2351. tags:
  2352. - 用户管理
  2353. get:
  2354. consumes:
  2355. - application/json
  2356. description: 用户列表
  2357. parameters:
  2358. - description: token
  2359. in: header
  2360. name: token
  2361. required: true
  2362. type: string
  2363. - description: ' '
  2364. in: query
  2365. name: page
  2366. required: true
  2367. type: integer
  2368. - description: ' '
  2369. in: query
  2370. name: page_size
  2371. type: integer
  2372. produces:
  2373. - application/json
  2374. responses:
  2375. "200":
  2376. description: OK
  2377. schema:
  2378. $ref: '#/definitions/v1.CompanyUserListResponse'
  2379. "500":
  2380. description: Internal Server Error
  2381. schema:
  2382. $ref: '#/definitions/base.HTTPError'
  2383. summary: 用户列表
  2384. tags:
  2385. - 用户管理
  2386. post:
  2387. consumes:
  2388. - application/json
  2389. description: 添加用户
  2390. parameters:
  2391. - description: token
  2392. in: header
  2393. name: token
  2394. required: true
  2395. type: string
  2396. - description: 用户信息
  2397. in: body
  2398. name: body
  2399. required: true
  2400. schema:
  2401. $ref: '#/definitions/v1.CompanyUserAddBody'
  2402. produces:
  2403. - application/json
  2404. responses:
  2405. "200":
  2406. description: OK
  2407. schema:
  2408. $ref: '#/definitions/v1.CompanyUserAddResponse'
  2409. "500":
  2410. description: Internal Server Error
  2411. schema:
  2412. $ref: '#/definitions/base.HTTPError'
  2413. summary: 添加用户
  2414. tags:
  2415. - 用户管理
  2416. put:
  2417. consumes:
  2418. - application/json
  2419. description: 更改用户
  2420. parameters:
  2421. - description: token
  2422. in: header
  2423. name: token
  2424. required: true
  2425. type: string
  2426. - description: 用户信息
  2427. in: body
  2428. name: body
  2429. required: true
  2430. schema:
  2431. $ref: '#/definitions/v1.CompanyUserUpdateBody'
  2432. produces:
  2433. - application/json
  2434. responses:
  2435. "200":
  2436. description: OK
  2437. schema:
  2438. $ref: '#/definitions/v1.CompanyUserUpdateResponse'
  2439. "500":
  2440. description: Internal Server Error
  2441. schema:
  2442. $ref: '#/definitions/base.HTTPError'
  2443. summary: 更改用户
  2444. tags:
  2445. - 用户管理
  2446. /api/v1/garden:
  2447. delete:
  2448. consumes:
  2449. - application/json
  2450. description: 删除小区
  2451. parameters:
  2452. - description: ' '
  2453. in: header
  2454. name: token
  2455. required: true
  2456. type: string
  2457. - description: 小区id
  2458. in: query
  2459. name: id
  2460. required: true
  2461. type: integer
  2462. produces:
  2463. - application/json
  2464. responses:
  2465. "200":
  2466. description: OK
  2467. schema:
  2468. $ref: '#/definitions/v1.CompanyGardenDelResponse'
  2469. "500":
  2470. description: Internal Server Error
  2471. schema:
  2472. $ref: '#/definitions/base.HTTPError'
  2473. summary: 删除小区
  2474. tags:
  2475. - 小区
  2476. get:
  2477. consumes:
  2478. - application/json
  2479. description: 小区列表
  2480. parameters:
  2481. - description: ' '
  2482. in: header
  2483. name: token
  2484. required: true
  2485. type: string
  2486. - description: ' '
  2487. in: query
  2488. name: page
  2489. required: true
  2490. type: integer
  2491. - description: ' '
  2492. in: query
  2493. name: page_size
  2494. type: integer
  2495. - description: 'true 待审批或审批未通过的数据 false 审批通过的数据 '
  2496. in: query
  2497. name: not_approved
  2498. type: boolean
  2499. produces:
  2500. - application/json
  2501. responses:
  2502. "200":
  2503. description: OK
  2504. schema:
  2505. $ref: '#/definitions/v1.CompanyGardenListResponse'
  2506. "500":
  2507. description: Internal Server Error
  2508. schema:
  2509. $ref: '#/definitions/base.HTTPError'
  2510. summary: 小区列表
  2511. tags:
  2512. - 小区
  2513. post:
  2514. consumes:
  2515. - application/json
  2516. description: 新增小区
  2517. parameters:
  2518. - description: ' '
  2519. in: header
  2520. name: token
  2521. required: true
  2522. type: string
  2523. - description: 小区信息
  2524. in: body
  2525. name: body
  2526. required: true
  2527. schema:
  2528. $ref: '#/definitions/v1.CompanyAddGardenBody'
  2529. produces:
  2530. - application/json
  2531. responses:
  2532. "200":
  2533. description: OK
  2534. schema:
  2535. $ref: '#/definitions/v1.CompanyAddGardenResponse'
  2536. "500":
  2537. description: Internal Server Error
  2538. schema:
  2539. $ref: '#/definitions/base.HTTPError'
  2540. summary: 新增小区
  2541. tags:
  2542. - 小区
  2543. put:
  2544. consumes:
  2545. - application/json
  2546. description: 修改小区
  2547. parameters:
  2548. - description: ' '
  2549. in: header
  2550. name: token
  2551. required: true
  2552. type: string
  2553. - description: 小区信息
  2554. in: body
  2555. name: body
  2556. required: true
  2557. schema:
  2558. $ref: '#/definitions/v1.CompanyGardenUpdateBody'
  2559. produces:
  2560. - application/json
  2561. responses:
  2562. "200":
  2563. description: OK
  2564. schema:
  2565. $ref: '#/definitions/v1.CompanyGardenUpdateResponse'
  2566. "500":
  2567. description: Internal Server Error
  2568. schema:
  2569. $ref: '#/definitions/base.HTTPError'
  2570. summary: 修改小区
  2571. tags:
  2572. - 小区
  2573. /api/v1/garden/check:
  2574. get:
  2575. consumes:
  2576. - application/json
  2577. description: 判断是否可以添加小区
  2578. parameters:
  2579. - description: ' '
  2580. in: header
  2581. name: token
  2582. required: true
  2583. type: string
  2584. produces:
  2585. - application/json
  2586. responses:
  2587. "200":
  2588. description: OK
  2589. schema:
  2590. $ref: '#/definitions/v1.CompanyCanAddGardenResponse'
  2591. "500":
  2592. description: Internal Server Error
  2593. schema:
  2594. $ref: '#/definitions/base.HTTPError'
  2595. summary: 判断是否可以添加小区
  2596. tags:
  2597. - 小区
  2598. /api/v1/garden/entry:
  2599. get:
  2600. consumes:
  2601. - application/json
  2602. description: 小区入口
  2603. parameters:
  2604. - description: ' '
  2605. in: header
  2606. name: token
  2607. required: true
  2608. type: string
  2609. - description: ' '
  2610. in: query
  2611. name: garden_id
  2612. required: true
  2613. type: integer
  2614. produces:
  2615. - application/json
  2616. responses:
  2617. "200":
  2618. description: OK
  2619. schema:
  2620. $ref: '#/definitions/v1.CompanyEnterGardenResponse'
  2621. "500":
  2622. description: Internal Server Error
  2623. schema:
  2624. $ref: '#/definitions/base.HTTPError'
  2625. summary: 小区入口
  2626. tags:
  2627. - 小区
  2628. /api/v1/garden/key_info:
  2629. get:
  2630. consumes:
  2631. - application/json
  2632. description: 小区关键信息申请列表
  2633. parameters:
  2634. - description: ' '
  2635. in: header
  2636. name: token
  2637. required: true
  2638. type: string
  2639. - description: ' '
  2640. in: query
  2641. name: page
  2642. type: integer
  2643. - description: ' '
  2644. in: query
  2645. name: page_size
  2646. type: integer
  2647. - description: '0不过率 1 待审核 2 审核通过 3 未通过 '
  2648. in: query
  2649. name: status
  2650. type: integer
  2651. produces:
  2652. - application/json
  2653. responses:
  2654. "200":
  2655. description: OK
  2656. schema:
  2657. $ref: '#/definitions/v1.GardenKeyInfoChangeListResponse'
  2658. "500":
  2659. description: Internal Server Error
  2660. schema:
  2661. $ref: '#/definitions/base.HTTPError'
  2662. summary: 小区关键信息申请列表
  2663. tags:
  2664. - 小区
  2665. put:
  2666. consumes:
  2667. - application/json
  2668. description: 申请修改小区关键信息
  2669. parameters:
  2670. - description: ' '
  2671. in: header
  2672. name: token
  2673. required: true
  2674. type: string
  2675. - description: 小区信息
  2676. in: body
  2677. name: body
  2678. required: true
  2679. schema:
  2680. $ref: '#/definitions/v1.GardenKeyInfoChangeBody'
  2681. produces:
  2682. - application/json
  2683. responses:
  2684. "200":
  2685. description: OK
  2686. schema:
  2687. $ref: '#/definitions/v1.GardenKeyInfoChangeResponse'
  2688. "500":
  2689. description: Internal Server Error
  2690. schema:
  2691. $ref: '#/definitions/base.HTTPError'
  2692. summary: 申请修改小区关键信息
  2693. tags:
  2694. - 小区
  2695. /api/v1/order/package:
  2696. get:
  2697. consumes:
  2698. - application/json
  2699. description: 公司已购套餐订单列表
  2700. parameters:
  2701. - description: ' '
  2702. in: header
  2703. name: token
  2704. required: true
  2705. type: string
  2706. - description: 第几页,1为起始页, -1 不分页返回所有
  2707. in: query
  2708. name: page
  2709. required: true
  2710. type: integer
  2711. - description: 每页条数,-1 不分页返回所有
  2712. in: query
  2713. name: page_size
  2714. type: integer
  2715. - description: 0不过滤,1待认证 2 已通过 3 未通过
  2716. in: query
  2717. name: status
  2718. type: integer
  2719. produces:
  2720. - application/json
  2721. responses:
  2722. "200":
  2723. description: OK
  2724. schema:
  2725. $ref: '#/definitions/v1.CompanyPackageListResponse'
  2726. "500":
  2727. description: Internal Server Error
  2728. schema:
  2729. $ref: '#/definitions/base.HTTPError'
  2730. summary: 公司已购套餐订单列表
  2731. tags:
  2732. - 已购套餐
  2733. post:
  2734. consumes:
  2735. - application/json
  2736. description: 新增套餐
  2737. parameters:
  2738. - description: ' '
  2739. in: header
  2740. name: token
  2741. required: true
  2742. type: string
  2743. - description: 信息
  2744. in: body
  2745. name: body
  2746. required: true
  2747. schema:
  2748. $ref: '#/definitions/v1.PackageOrderAddBody'
  2749. produces:
  2750. - application/json
  2751. responses:
  2752. "200":
  2753. description: OK
  2754. schema:
  2755. $ref: '#/definitions/v1.PackageOrderAddResponse'
  2756. "500":
  2757. description: Internal Server Error
  2758. schema:
  2759. $ref: '#/definitions/base.HTTPError'
  2760. summary: 新增套餐
  2761. tags:
  2762. - 公司套餐
  2763. /api/v1/order/package_for_garden:
  2764. get:
  2765. consumes:
  2766. - application/json
  2767. description: 创建小区时获取可用的套餐
  2768. parameters:
  2769. - description: ' '
  2770. in: header
  2771. name: token
  2772. required: true
  2773. type: string
  2774. - description: 第几页,1为起始页, -1 不分页返回所有
  2775. in: query
  2776. name: page
  2777. required: true
  2778. type: integer
  2779. - description: 每页条数,-1 不分页返回所有
  2780. in: query
  2781. name: page_size
  2782. type: integer
  2783. produces:
  2784. - application/json
  2785. responses:
  2786. "200":
  2787. description: OK
  2788. schema:
  2789. $ref: '#/definitions/v1.CompanyPackageListResponse'
  2790. "500":
  2791. description: Internal Server Error
  2792. schema:
  2793. $ref: '#/definitions/base.HTTPError'
  2794. summary: 创建小区时获取可用的套餐
  2795. tags:
  2796. - 已购套餐
  2797. /api/v1/order/renew:
  2798. post:
  2799. consumes:
  2800. - application/json
  2801. description: 套餐续费
  2802. parameters:
  2803. - description: ' '
  2804. in: header
  2805. name: token
  2806. required: true
  2807. type: string
  2808. - description: 信息
  2809. in: body
  2810. name: body
  2811. required: true
  2812. schema:
  2813. $ref: '#/definitions/v1.PackageOrderAddRenewBody'
  2814. produces:
  2815. - application/json
  2816. responses:
  2817. "200":
  2818. description: OK
  2819. schema:
  2820. $ref: '#/definitions/v1.PackageOrderAddRenewResponse'
  2821. "500":
  2822. description: Internal Server Error
  2823. schema:
  2824. $ref: '#/definitions/base.HTTPError'
  2825. summary: 套餐续费
  2826. tags:
  2827. - 公司套餐
  2828. /api/v1/package:
  2829. get:
  2830. consumes:
  2831. - application/json
  2832. description: 套餐列表
  2833. parameters:
  2834. - description: ' '
  2835. in: header
  2836. name: token
  2837. required: true
  2838. type: string
  2839. - description: 第几页,1为起始页, -1 不分页返回所有
  2840. in: query
  2841. name: page
  2842. required: true
  2843. type: integer
  2844. - description: 每页条数,-1 不分页返回所有
  2845. in: query
  2846. name: page_size
  2847. type: integer
  2848. - description: 0不过滤,1已发布的 2 未发布的
  2849. in: query
  2850. name: enable
  2851. type: integer
  2852. produces:
  2853. - application/json
  2854. responses:
  2855. "200":
  2856. description: OK
  2857. schema:
  2858. $ref: '#/definitions/v1.PackageListResponse'
  2859. "500":
  2860. description: Internal Server Error
  2861. schema:
  2862. $ref: '#/definitions/base.HTTPError'
  2863. summary: 套餐列表
  2864. tags:
  2865. - 套餐
  2866. /api/v1/statistic:
  2867. get:
  2868. consumes:
  2869. - application/json
  2870. description: 统计
  2871. parameters:
  2872. - description: token
  2873. in: header
  2874. name: token
  2875. required: true
  2876. type: string
  2877. produces:
  2878. - application/json
  2879. responses:
  2880. "200":
  2881. description: OK
  2882. schema:
  2883. $ref: '#/definitions/v1.CompanyStatisticResponse'
  2884. "500":
  2885. description: Internal Server Error
  2886. schema:
  2887. $ref: '#/definitions/base.HTTPError'
  2888. summary: 统计
  2889. tags:
  2890. - 首页
  2891. /api/v1/token_refresh:
  2892. put:
  2893. consumes:
  2894. - application/json
  2895. description: 刷新token
  2896. parameters:
  2897. - description: token
  2898. in: header
  2899. name: token
  2900. required: true
  2901. type: string
  2902. produces:
  2903. - application/json
  2904. responses:
  2905. "200":
  2906. description: OK
  2907. schema:
  2908. $ref: '#/definitions/v1.TokenResponse'
  2909. "500":
  2910. description: Internal Server Error
  2911. schema:
  2912. $ref: '#/definitions/base.HTTPError'
  2913. summary: 刷新token
  2914. tags:
  2915. - 用户
  2916. /api/v1/upload:
  2917. post:
  2918. consumes:
  2919. - application/json
  2920. description: 上传文件
  2921. parameters:
  2922. - description: jwt token
  2923. in: header
  2924. name: token
  2925. required: true
  2926. type: string
  2927. - description: file
  2928. in: formData
  2929. name: file
  2930. type: file
  2931. produces:
  2932. - application/json
  2933. responses:
  2934. "200":
  2935. description: OK
  2936. schema:
  2937. $ref: '#/definitions/v1.UploadResponse'
  2938. "500":
  2939. description: Internal Server Error
  2940. schema:
  2941. $ref: '#/definitions/base.HTTPError'
  2942. summary: 上传文件
  2943. tags:
  2944. - upload
  2945. /api/v1/upload_wx:
  2946. post:
  2947. consumes:
  2948. - application/json
  2949. description: 上传文件
  2950. parameters:
  2951. - description: jwt token
  2952. in: header
  2953. name: token
  2954. required: true
  2955. type: string
  2956. - description: file
  2957. in: formData
  2958. name: file
  2959. type: file
  2960. produces:
  2961. - application/json
  2962. responses:
  2963. "200":
  2964. description: OK
  2965. schema:
  2966. $ref: '#/definitions/v1.UploadWxResponse'
  2967. "500":
  2968. description: Internal Server Error
  2969. schema:
  2970. $ref: '#/definitions/base.HTTPError'
  2971. summary: 上传文件
  2972. tags:
  2973. - upload
  2974. /api/v1/user/change_password:
  2975. put:
  2976. consumes:
  2977. - application/json
  2978. description: 修改密码
  2979. parameters:
  2980. - description: ' '
  2981. in: header
  2982. name: token
  2983. required: true
  2984. type: string
  2985. - description: 信息
  2986. in: body
  2987. name: body
  2988. required: true
  2989. schema:
  2990. $ref: '#/definitions/v1.ChangePasswordBody'
  2991. produces:
  2992. - application/json
  2993. responses:
  2994. "200":
  2995. description: OK
  2996. schema:
  2997. $ref: '#/definitions/v1.ChangePasswordResponse'
  2998. "500":
  2999. description: Internal Server Error
  3000. schema:
  3001. $ref: '#/definitions/base.HTTPError'
  3002. summary: 修改密码
  3003. tags:
  3004. - 用户
  3005. /api/v1/user/login:
  3006. post:
  3007. consumes:
  3008. - application/json
  3009. description: 登录
  3010. parameters:
  3011. - description: 登录信息
  3012. in: body
  3013. name: body
  3014. required: true
  3015. schema:
  3016. $ref: '#/definitions/v1.LoginBody'
  3017. produces:
  3018. - application/json
  3019. responses:
  3020. "200":
  3021. description: OK
  3022. schema:
  3023. $ref: '#/definitions/v1.LoginResponse'
  3024. "500":
  3025. description: Internal Server Error
  3026. schema:
  3027. $ref: '#/definitions/base.HTTPError'
  3028. summary: 登录
  3029. tags:
  3030. - 用户
  3031. /api/v1/user/login_by_phone:
  3032. post:
  3033. consumes:
  3034. - application/json
  3035. description: 手机号登录
  3036. parameters:
  3037. - description: ' '
  3038. in: body
  3039. name: body
  3040. required: true
  3041. schema:
  3042. $ref: '#/definitions/v1.LoginByPhoneBody'
  3043. produces:
  3044. - application/json
  3045. responses:
  3046. "200":
  3047. description: OK
  3048. schema:
  3049. $ref: '#/definitions/v1.LoginByPhoneResponse'
  3050. "500":
  3051. description: Internal Server Error
  3052. schema:
  3053. $ref: '#/definitions/base.HTTPError'
  3054. summary: 手机号登录
  3055. tags:
  3056. - 用户
  3057. /api/v1/user/reset_password:
  3058. put:
  3059. consumes:
  3060. - application/json
  3061. description: 忘记密码重置密码
  3062. parameters:
  3063. - description: 信息
  3064. in: body
  3065. name: body
  3066. required: true
  3067. schema:
  3068. $ref: '#/definitions/v1.ResetPasswordBody'
  3069. produces:
  3070. - application/json
  3071. responses:
  3072. "200":
  3073. description: OK
  3074. schema:
  3075. $ref: '#/definitions/v1.ResetPasswordResponse'
  3076. "500":
  3077. description: Internal Server Error
  3078. schema:
  3079. $ref: '#/definitions/base.HTTPError'
  3080. summary: 忘记密码重置密码
  3081. tags:
  3082. - 用户
  3083. /api/v1/user/vcode:
  3084. get:
  3085. consumes:
  3086. - application/json
  3087. description: 获取短信验证码
  3088. parameters:
  3089. - description: ' '
  3090. in: query
  3091. name: phone
  3092. required: true
  3093. type: string
  3094. produces:
  3095. - application/json
  3096. responses:
  3097. "200":
  3098. description: OK
  3099. schema:
  3100. $ref: '#/definitions/v1.GetVcodeResponse'
  3101. "500":
  3102. description: Internal Server Error
  3103. schema:
  3104. $ref: '#/definitions/base.HTTPError'
  3105. summary: 获取短信验证码
  3106. tags:
  3107. - 用户
  3108. swagger: "2.0"