CityPackage.swagger.json 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "城市套餐",
  5. "description": "城市套餐模块",
  6. "version": "1.0"
  7. },
  8. "tags": [
  9. {
  10. "name": "API接口/后台/城市套餐"
  11. }
  12. ],
  13. "consumes": [
  14. "application/json"
  15. ],
  16. "produces": [
  17. "application/json"
  18. ],
  19. "paths": {
  20. "/cityPackage/area/all-area-level-list": {
  21. "post": {
  22. "summary": "获取层级关系的树形结构地区数据 只有省和市两级",
  23. "operationId": "CityPackageService_AllAreaLevelList",
  24. "responses": {
  25. "200": {
  26. "description": "A successful response.",
  27. "schema": {
  28. "$ref": "#/definitions/apiAllAreaLevelListRes"
  29. }
  30. },
  31. "default": {
  32. "description": "An unexpected error response.",
  33. "schema": {
  34. "$ref": "#/definitions/rpcStatus"
  35. }
  36. }
  37. },
  38. "parameters": [
  39. {
  40. "name": "body",
  41. "in": "body",
  42. "required": true,
  43. "schema": {
  44. "$ref": "#/definitions/apiAllAreaLevelListReq"
  45. }
  46. },
  47. {
  48. "name": "r",
  49. "description": "接口地址",
  50. "in": "query",
  51. "required": true,
  52. "example": "cityPackage/area/all-area-level-list"
  53. }
  54. ],
  55. "tags": [
  56. "API接口/后台/城市套餐"
  57. ]
  58. }
  59. },
  60. "/cityPackage/area/area-list": {
  61. "post": {
  62. "summary": "主体门店开通的地区列表",
  63. "operationId": "CityPackageService_AreaList",
  64. "responses": {
  65. "200": {
  66. "description": "A successful response.",
  67. "schema": {
  68. "$ref": "#/definitions/apiAreaListRes"
  69. }
  70. },
  71. "default": {
  72. "description": "An unexpected error response.",
  73. "schema": {
  74. "$ref": "#/definitions/rpcStatus"
  75. }
  76. }
  77. },
  78. "parameters": [
  79. {
  80. "name": "body",
  81. "in": "body",
  82. "required": true,
  83. "schema": {
  84. "$ref": "#/definitions/apiAreaListReq"
  85. }
  86. },
  87. {
  88. "name": "r",
  89. "description": "接口地址",
  90. "in": "query",
  91. "required": true,
  92. "example": "cityPackage/area/area-list"
  93. }
  94. ],
  95. "tags": [
  96. "API接口/后台/城市套餐"
  97. ]
  98. }
  99. },
  100. "/cityPackage/area/close-area": {
  101. "post": {
  102. "summary": "主体门店停用地区",
  103. "operationId": "CityPackageService_CloseArea",
  104. "responses": {
  105. "200": {
  106. "description": "A successful response.",
  107. "schema": {
  108. "$ref": "#/definitions/apiCloseAreaRes"
  109. }
  110. },
  111. "default": {
  112. "description": "An unexpected error response.",
  113. "schema": {
  114. "$ref": "#/definitions/rpcStatus"
  115. }
  116. }
  117. },
  118. "parameters": [
  119. {
  120. "name": "body",
  121. "in": "body",
  122. "required": true,
  123. "schema": {
  124. "$ref": "#/definitions/apiCloseAreaReq"
  125. }
  126. },
  127. {
  128. "name": "r",
  129. "description": "接口地址",
  130. "in": "query",
  131. "required": true,
  132. "example": "cityPackage/area/close-area"
  133. }
  134. ],
  135. "tags": [
  136. "API接口/后台/城市套餐"
  137. ]
  138. }
  139. },
  140. "/cityPackage/area/open-area": {
  141. "post": {
  142. "summary": "主体门店编辑地区",
  143. "operationId": "CityPackageService_OpenArea",
  144. "responses": {
  145. "200": {
  146. "description": "A successful response.",
  147. "schema": {
  148. "$ref": "#/definitions/apiOpenAreaRes"
  149. }
  150. },
  151. "default": {
  152. "description": "An unexpected error response.",
  153. "schema": {
  154. "$ref": "#/definitions/rpcStatus"
  155. }
  156. }
  157. },
  158. "parameters": [
  159. {
  160. "name": "body",
  161. "in": "body",
  162. "required": true,
  163. "schema": {
  164. "$ref": "#/definitions/apiOpenAreaReq"
  165. }
  166. },
  167. {
  168. "name": "r",
  169. "description": "接口地址",
  170. "in": "query",
  171. "required": true,
  172. "example": "cityPackage/area/open-area"
  173. }
  174. ],
  175. "tags": [
  176. "API接口/后台/城市套餐"
  177. ]
  178. }
  179. },
  180. "/cityPackage/area/sub-area-list": {
  181. "post": {
  182. "summary": "子门店可选的地区列表",
  183. "operationId": "CityPackageService_SubAreaList",
  184. "responses": {
  185. "200": {
  186. "description": "A successful response.",
  187. "schema": {
  188. "$ref": "#/definitions/apiSubAreaListRes"
  189. }
  190. },
  191. "default": {
  192. "description": "An unexpected error response.",
  193. "schema": {
  194. "$ref": "#/definitions/rpcStatus"
  195. }
  196. }
  197. },
  198. "parameters": [
  199. {
  200. "name": "body",
  201. "in": "body",
  202. "required": true,
  203. "schema": {
  204. "$ref": "#/definitions/apiSubAreaListReq"
  205. }
  206. },
  207. {
  208. "name": "r",
  209. "description": "接口地址",
  210. "in": "query",
  211. "required": true,
  212. "example": "cityPackage/area/sub-area-list"
  213. }
  214. ],
  215. "tags": [
  216. "API接口/后台/城市套餐"
  217. ]
  218. }
  219. },
  220. "/cityPackage/area/sub-remove-area": {
  221. "post": {
  222. "summary": "子门店移除地区",
  223. "operationId": "CityPackageService_SubRemoveArea",
  224. "responses": {
  225. "200": {
  226. "description": "A successful response.",
  227. "schema": {
  228. "$ref": "#/definitions/apiSubRemoveAreaRes"
  229. }
  230. },
  231. "default": {
  232. "description": "An unexpected error response.",
  233. "schema": {
  234. "$ref": "#/definitions/rpcStatus"
  235. }
  236. }
  237. },
  238. "parameters": [
  239. {
  240. "name": "body",
  241. "in": "body",
  242. "required": true,
  243. "schema": {
  244. "$ref": "#/definitions/apiSubRemoveAreaReq"
  245. }
  246. },
  247. {
  248. "name": "r",
  249. "description": "接口地址",
  250. "in": "query",
  251. "required": true,
  252. "example": "cityPackage/area/sub-remove-area"
  253. }
  254. ],
  255. "tags": [
  256. "API接口/后台/城市套餐"
  257. ]
  258. }
  259. },
  260. "/cityPackage/area/sub-select-area": {
  261. "post": {
  262. "summary": "子门店选择地区",
  263. "operationId": "CityPackageService_SubSelectArea",
  264. "responses": {
  265. "200": {
  266. "description": "A successful response.",
  267. "schema": {
  268. "$ref": "#/definitions/apiSubSelectAreaRes"
  269. }
  270. },
  271. "default": {
  272. "description": "An unexpected error response.",
  273. "schema": {
  274. "$ref": "#/definitions/rpcStatus"
  275. }
  276. }
  277. },
  278. "parameters": [
  279. {
  280. "name": "body",
  281. "in": "body",
  282. "required": true,
  283. "schema": {
  284. "$ref": "#/definitions/apiSubSelectAreaReq"
  285. }
  286. },
  287. {
  288. "name": "r",
  289. "description": "接口地址",
  290. "in": "query",
  291. "required": true,
  292. "example": "cityPackage/area/sub-select-area"
  293. }
  294. ],
  295. "tags": [
  296. "API接口/后台/城市套餐"
  297. ]
  298. }
  299. },
  300. "/cityPackage/area/sub-shop-list": {
  301. "post": {
  302. "summary": "子门店列表",
  303. "operationId": "CityPackageService_SubShopList",
  304. "responses": {
  305. "200": {
  306. "description": "A successful response.",
  307. "schema": {
  308. "$ref": "#/definitions/apiSubShopListRes"
  309. }
  310. },
  311. "default": {
  312. "description": "An unexpected error response.",
  313. "schema": {
  314. "$ref": "#/definitions/rpcStatus"
  315. }
  316. }
  317. },
  318. "parameters": [
  319. {
  320. "name": "body",
  321. "in": "body",
  322. "required": true,
  323. "schema": {
  324. "$ref": "#/definitions/apiSubShopListReq"
  325. }
  326. },
  327. {
  328. "name": "r",
  329. "description": "接口地址",
  330. "in": "query",
  331. "required": true,
  332. "example": "cityPackage/area/sub-shop-list"
  333. }
  334. ],
  335. "tags": [
  336. "API接口/后台/城市套餐"
  337. ]
  338. }
  339. },
  340. "/cityPackage/city-package/add-package": {
  341. "post": {
  342. "summary": "添加套餐",
  343. "operationId": "CityPackageService_AddPackage",
  344. "responses": {
  345. "200": {
  346. "description": "A successful response.",
  347. "schema": {
  348. "$ref": "#/definitions/apiCityPackageAddRes"
  349. }
  350. },
  351. "default": {
  352. "description": "An unexpected error response.",
  353. "schema": {
  354. "$ref": "#/definitions/rpcStatus"
  355. }
  356. }
  357. },
  358. "parameters": [
  359. {
  360. "name": "body",
  361. "in": "body",
  362. "required": true,
  363. "schema": {
  364. "$ref": "#/definitions/apiCityPackageAddReq"
  365. }
  366. },
  367. {
  368. "name": "r",
  369. "description": "接口地址",
  370. "in": "query",
  371. "required": true,
  372. "example": "cityPackage/city-package/add-package"
  373. }
  374. ],
  375. "tags": [
  376. "API接口/后台/城市套餐"
  377. ]
  378. }
  379. },
  380. "/cityPackage/city-package/change-listed-status": {
  381. "post": {
  382. "summary": "套餐改变上下架状态",
  383. "operationId": "CityPackageService_ChangeListedStatus",
  384. "responses": {
  385. "200": {
  386. "description": "A successful response.",
  387. "schema": {
  388. "$ref": "#/definitions/apiChangeListedStatusRes"
  389. }
  390. },
  391. "default": {
  392. "description": "An unexpected error response.",
  393. "schema": {
  394. "$ref": "#/definitions/rpcStatus"
  395. }
  396. }
  397. },
  398. "parameters": [
  399. {
  400. "name": "body",
  401. "in": "body",
  402. "required": true,
  403. "schema": {
  404. "$ref": "#/definitions/apiChangeListedStatusReq"
  405. }
  406. },
  407. {
  408. "name": "r",
  409. "description": "接口地址",
  410. "in": "query",
  411. "required": true,
  412. "example": "cityPackage/city-package/change-listed-status"
  413. }
  414. ],
  415. "tags": [
  416. "API接口/后台/城市套餐"
  417. ]
  418. }
  419. },
  420. "/cityPackage/city-package/change-recommend": {
  421. "post": {
  422. "summary": "套餐的推荐变更",
  423. "operationId": "CityPackageService_ChangeRecommend",
  424. "responses": {
  425. "200": {
  426. "description": "A successful response.",
  427. "schema": {
  428. "$ref": "#/definitions/apiChangeRecommendRes"
  429. }
  430. },
  431. "default": {
  432. "description": "An unexpected error response.",
  433. "schema": {
  434. "$ref": "#/definitions/rpcStatus"
  435. }
  436. }
  437. },
  438. "parameters": [
  439. {
  440. "name": "body",
  441. "in": "body",
  442. "required": true,
  443. "schema": {
  444. "$ref": "#/definitions/apiChangeRecommendReq"
  445. }
  446. },
  447. {
  448. "name": "r",
  449. "description": "接口地址",
  450. "in": "query",
  451. "required": true,
  452. "example": "cityPackage/city-package/change-recommend"
  453. }
  454. ],
  455. "tags": [
  456. "API接口/后台/城市套餐"
  457. ]
  458. }
  459. },
  460. "/cityPackage/city-package/edit-package": {
  461. "post": {
  462. "summary": "编辑套餐",
  463. "operationId": "CityPackageService_EditPackage",
  464. "responses": {
  465. "200": {
  466. "description": "A successful response.",
  467. "schema": {
  468. "$ref": "#/definitions/apiEditPackageRes"
  469. }
  470. },
  471. "default": {
  472. "description": "An unexpected error response.",
  473. "schema": {
  474. "$ref": "#/definitions/rpcStatus"
  475. }
  476. }
  477. },
  478. "parameters": [
  479. {
  480. "name": "body",
  481. "in": "body",
  482. "required": true,
  483. "schema": {
  484. "$ref": "#/definitions/apiEditPackageReq"
  485. }
  486. },
  487. {
  488. "name": "r",
  489. "description": "接口地址",
  490. "in": "query",
  491. "required": true,
  492. "example": "cityPackage/city-package/edit-package"
  493. }
  494. ],
  495. "tags": [
  496. "API接口/后台/城市套餐"
  497. ]
  498. }
  499. },
  500. "/cityPackage/city-package/list-package": {
  501. "post": {
  502. "summary": "套餐列表",
  503. "operationId": "CityPackageService_ListPackage",
  504. "responses": {
  505. "200": {
  506. "description": "A successful response.",
  507. "schema": {
  508. "$ref": "#/definitions/apiListPackageRes"
  509. }
  510. },
  511. "default": {
  512. "description": "An unexpected error response.",
  513. "schema": {
  514. "$ref": "#/definitions/rpcStatus"
  515. }
  516. }
  517. },
  518. "parameters": [
  519. {
  520. "name": "body",
  521. "in": "body",
  522. "required": true,
  523. "schema": {
  524. "$ref": "#/definitions/apiListPackageReq"
  525. }
  526. },
  527. {
  528. "name": "r",
  529. "description": "接口地址",
  530. "in": "query",
  531. "required": true,
  532. "example": "cityPackage/city-package/list-package"
  533. }
  534. ],
  535. "tags": [
  536. "API接口/后台/城市套餐"
  537. ]
  538. }
  539. },
  540. "/cityPackage/city-package/package-area-list": {
  541. "post": {
  542. "summary": "套餐的地区使用范围",
  543. "operationId": "CityPackageService_PackageAreaList",
  544. "responses": {
  545. "200": {
  546. "description": "A successful response.",
  547. "schema": {
  548. "$ref": "#/definitions/apiPackageAreaListRes"
  549. }
  550. },
  551. "default": {
  552. "description": "An unexpected error response.",
  553. "schema": {
  554. "$ref": "#/definitions/rpcStatus"
  555. }
  556. }
  557. },
  558. "parameters": [
  559. {
  560. "name": "body",
  561. "in": "body",
  562. "required": true,
  563. "schema": {
  564. "$ref": "#/definitions/apiPackageAreaListReq"
  565. }
  566. },
  567. {
  568. "name": "r",
  569. "description": "接口地址",
  570. "in": "query",
  571. "required": true,
  572. "example": "cityPackage/city-package/package-area-list"
  573. }
  574. ],
  575. "tags": [
  576. "API接口/后台/城市套餐"
  577. ]
  578. }
  579. },
  580. "/cityPackage/order/order-list": {
  581. "post": {
  582. "summary": "订单列表",
  583. "operationId": "CityPackageService_OrderList",
  584. "responses": {
  585. "200": {
  586. "description": "A successful response.",
  587. "schema": {
  588. "$ref": "#/definitions/apiOrderListRes"
  589. }
  590. },
  591. "default": {
  592. "description": "An unexpected error response.",
  593. "schema": {
  594. "$ref": "#/definitions/rpcStatus"
  595. }
  596. }
  597. },
  598. "parameters": [
  599. {
  600. "name": "body",
  601. "in": "body",
  602. "required": true,
  603. "schema": {
  604. "$ref": "#/definitions/apiOrderListReq"
  605. }
  606. },
  607. {
  608. "name": "r",
  609. "description": "接口地址",
  610. "in": "query",
  611. "required": true,
  612. "example": "cityPackage/order/order-list"
  613. }
  614. ],
  615. "tags": [
  616. "API接口/后台/城市套餐"
  617. ]
  618. }
  619. }
  620. },
  621. "definitions": {
  622. "CityPackageAddReqAddItem": {
  623. "type": "object",
  624. "properties": {
  625. "name": {
  626. "type": "string",
  627. "title": "套餐名称"
  628. },
  629. "type": {
  630. "$ref": "#/definitions/apiPackageType",
  631. "title": "套餐类型"
  632. },
  633. "pledge": {
  634. "type": "integer",
  635. "format": "int32",
  636. "title": "押金"
  637. },
  638. "total_day": {
  639. "type": "integer",
  640. "format": "int32",
  641. "title": "天数"
  642. },
  643. "total_num": {
  644. "type": "integer",
  645. "format": "int32",
  646. "title": "次数"
  647. },
  648. "show_money": {
  649. "type": "integer",
  650. "format": "int32",
  651. "title": "套餐显示价格"
  652. },
  653. "money": {
  654. "type": "integer",
  655. "format": "int32",
  656. "title": "套餐实际价格,元"
  657. },
  658. "exchange_money": {
  659. "type": "integer",
  660. "format": "int32",
  661. "title": "单次换电价格,元"
  662. },
  663. "buy_limit": {
  664. "type": "integer",
  665. "format": "int32",
  666. "title": "购买限制数量"
  667. },
  668. "listed_status": {
  669. "$ref": "#/definitions/apiLISTED_STATUS",
  670. "title": "上下架状态"
  671. },
  672. "stock": {
  673. "type": "integer",
  674. "format": "int32",
  675. "title": "库存"
  676. },
  677. "package_category": {
  678. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  679. "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
  680. },
  681. "area_list": {
  682. "type": "array",
  683. "items": {
  684. "type": "object",
  685. "$ref": "#/definitions/apiAreaEnt"
  686. },
  687. "title": "支持的区县ID列表"
  688. },
  689. "battery_tag_info": {
  690. "$ref": "#/definitions/apiEntTag",
  691. "title": "电池标签信息"
  692. },
  693. "car_model_info": {
  694. "$ref": "#/definitions/apiCarModelEnt",
  695. "title": "车型信息"
  696. }
  697. }
  698. },
  699. "CityPackageOrderEntOrderInfoItem": {
  700. "type": "object",
  701. "properties": {
  702. "base_info": {
  703. "$ref": "#/definitions/apiEntOrder",
  704. "title": "基础信息"
  705. },
  706. "current_battery_sn": {
  707. "type": "string",
  708. "title": "当前电池"
  709. },
  710. "battery_sn": {
  711. "type": "string",
  712. "title": "购买绑定的电池"
  713. },
  714. "remain_capacity": {
  715. "type": "string",
  716. "title": "剩余用量"
  717. },
  718. "pledge_status": {
  719. "type": "integer",
  720. "format": "int32",
  721. "title": "押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退"
  722. }
  723. }
  724. },
  725. "OpenAreaReqOpenItem": {
  726. "type": "object",
  727. "properties": {
  728. "area_id": {
  729. "type": "string",
  730. "title": "选择区域的id"
  731. },
  732. "battery_deposit": {
  733. "type": "integer",
  734. "format": "int32",
  735. "title": "电池押金"
  736. },
  737. "car_deposit": {
  738. "type": "integer",
  739. "format": "int32",
  740. "title": "车辆押金"
  741. },
  742. "battery_car_deposit": {
  743. "type": "integer",
  744. "format": "int32",
  745. "title": "车电一体押金"
  746. },
  747. "open_status": {
  748. "$ref": "#/definitions/apiYES_NO",
  749. "title": "开通状态"
  750. }
  751. }
  752. },
  753. "SubAreaListResSubItem": {
  754. "type": "object",
  755. "properties": {
  756. "province_name": {
  757. "type": "string",
  758. "title": "省份"
  759. },
  760. "city_name": {
  761. "type": "string",
  762. "title": "城市"
  763. },
  764. "battery_deposit": {
  765. "type": "integer",
  766. "format": "int32",
  767. "title": "电池押金"
  768. },
  769. "car_deposit": {
  770. "type": "integer",
  771. "format": "int32",
  772. "title": "车辆押金"
  773. },
  774. "battery_car_deposit": {
  775. "type": "integer",
  776. "format": "int32",
  777. "title": "车电一体押金"
  778. }
  779. }
  780. },
  781. "SubShopListResSubShopListResItem": {
  782. "type": "object",
  783. "properties": {
  784. "shop_info": {
  785. "$ref": "#/definitions/apiAdminBaseInfo",
  786. "title": "门店信息"
  787. },
  788. "province_name": {
  789. "type": "string",
  790. "title": "省份"
  791. },
  792. "city_name": {
  793. "type": "string",
  794. "title": "城市"
  795. },
  796. "battery_deposit": {
  797. "type": "integer",
  798. "format": "int32",
  799. "title": "电池押金"
  800. },
  801. "car_deposit": {
  802. "type": "integer",
  803. "format": "int32",
  804. "title": "车辆押金"
  805. },
  806. "battery_car_deposit": {
  807. "type": "integer",
  808. "format": "int32",
  809. "title": "车电一体押金"
  810. },
  811. "area_ids": {
  812. "type": "array",
  813. "items": {
  814. "type": "string"
  815. },
  816. "title": "选择的城市列表"
  817. }
  818. }
  819. },
  820. "apiAdminBaseInfo": {
  821. "type": "object",
  822. "properties": {
  823. "admin_id": {
  824. "type": "integer",
  825. "format": "int32",
  826. "title": "门店ID"
  827. },
  828. "shop_name": {
  829. "type": "string",
  830. "title": "门店名称"
  831. }
  832. }
  833. },
  834. "apiAllAreaLevelListReq": {
  835. "type": "object"
  836. },
  837. "apiAllAreaLevelListRes": {
  838. "type": "object",
  839. "properties": {
  840. "list": {
  841. "$ref": "#/definitions/apiAreaLevelEnt",
  842. "title": "省列表"
  843. }
  844. }
  845. },
  846. "apiAreaEnt": {
  847. "type": "object",
  848. "properties": {
  849. "province_code": {
  850. "type": "string",
  851. "title": "省编号"
  852. },
  853. "province_name": {
  854. "type": "string",
  855. "title": "省名称"
  856. },
  857. "city_code": {
  858. "type": "string",
  859. "title": "市编号"
  860. },
  861. "city_name": {
  862. "type": "string",
  863. "title": "市名称"
  864. },
  865. "area_code": {
  866. "type": "string",
  867. "title": "区编号"
  868. },
  869. "area_name": {
  870. "type": "string",
  871. "title": "区名称"
  872. },
  873. "area_id": {
  874. "type": "string",
  875. "title": "地区code"
  876. }
  877. }
  878. },
  879. "apiAreaLevelEnt": {
  880. "type": "object",
  881. "properties": {
  882. "province_code": {
  883. "type": "string",
  884. "title": "区域信息\n省编号"
  885. },
  886. "province_name": {
  887. "type": "string",
  888. "title": "省名称"
  889. },
  890. "city_code": {
  891. "type": "string",
  892. "title": "市编号"
  893. },
  894. "city_name": {
  895. "type": "string",
  896. "title": "市名称"
  897. },
  898. "area_code": {
  899. "type": "string",
  900. "title": "区编号"
  901. },
  902. "area_name": {
  903. "type": "string",
  904. "title": "区名称"
  905. },
  906. "area_id": {
  907. "type": "string",
  908. "title": "地区code"
  909. },
  910. "children": {
  911. "type": "array",
  912. "items": {
  913. "type": "object",
  914. "$ref": "#/definitions/apiAreaLevelEnt"
  915. },
  916. "title": "子级区域"
  917. }
  918. }
  919. },
  920. "apiAreaListReq": {
  921. "type": "object",
  922. "properties": {
  923. "page_arg": {
  924. "$ref": "#/definitions/apiPageArg",
  925. "title": "分页参数"
  926. },
  927. "open_status": {
  928. "$ref": "#/definitions/apiYES_NO",
  929. "title": "开通状态"
  930. },
  931. "province_code": {
  932. "type": "string",
  933. "title": "省份CODE"
  934. },
  935. "city_code": {
  936. "type": "string",
  937. "title": "城市CODE"
  938. }
  939. }
  940. },
  941. "apiAreaListRes": {
  942. "type": "object",
  943. "properties": {
  944. "total": {
  945. "type": "integer",
  946. "format": "int32",
  947. "title": "总条数"
  948. },
  949. "list": {
  950. "type": "array",
  951. "items": {
  952. "type": "object",
  953. "$ref": "#/definitions/apiPackageAreaEnt"
  954. },
  955. "title": "地区列表"
  956. }
  957. }
  958. },
  959. "apiCarModelEnt": {
  960. "type": "object",
  961. "properties": {
  962. "model_name": {
  963. "type": "string",
  964. "title": "车型名称"
  965. },
  966. "model_code": {
  967. "type": "string",
  968. "title": "车型编号"
  969. },
  970. "model_images": {
  971. "type": "array",
  972. "items": {
  973. "type": "string"
  974. },
  975. "title": "车型图片"
  976. },
  977. "model_id": {
  978. "type": "string",
  979. "title": "车型ID"
  980. },
  981. "data_time": {
  982. "$ref": "#/definitions/apiDataTime",
  983. "title": "数据时间"
  984. }
  985. }
  986. },
  987. "apiChangeListedStatusReq": {
  988. "type": "object",
  989. "properties": {
  990. "package_code": {
  991. "type": "array",
  992. "items": {
  993. "type": "string"
  994. },
  995. "title": "套餐code"
  996. },
  997. "status": {
  998. "$ref": "#/definitions/apiLISTED_STATUS",
  999. "title": "更新的状态"
  1000. }
  1001. }
  1002. },
  1003. "apiChangeListedStatusRes": {
  1004. "type": "object"
  1005. },
  1006. "apiChangeRecommendReq": {
  1007. "type": "object",
  1008. "properties": {
  1009. "package_code": {
  1010. "type": "array",
  1011. "items": {
  1012. "type": "string"
  1013. },
  1014. "title": "套餐code"
  1015. },
  1016. "is_recommend": {
  1017. "$ref": "#/definitions/apiYES_NO",
  1018. "title": "是否推荐"
  1019. }
  1020. }
  1021. },
  1022. "apiChangeRecommendRes": {
  1023. "type": "object"
  1024. },
  1025. "apiCityPackageAddReq": {
  1026. "type": "object",
  1027. "properties": {
  1028. "shop_id": {
  1029. "type": "integer",
  1030. "format": "int32",
  1031. "title": "门店ID 默认为当前登陆的门店ID"
  1032. },
  1033. "package_list": {
  1034. "type": "array",
  1035. "items": {
  1036. "type": "object",
  1037. "$ref": "#/definitions/CityPackageAddReqAddItem"
  1038. },
  1039. "title": "套餐数组列表"
  1040. },
  1041. "package_category": {
  1042. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1043. "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
  1044. }
  1045. }
  1046. },
  1047. "apiCityPackageAddRes": {
  1048. "type": "object",
  1049. "properties": {
  1050. "fail_count": {
  1051. "type": "integer",
  1052. "format": "int32",
  1053. "title": "失败的数量"
  1054. },
  1055. "success_count": {
  1056. "type": "integer",
  1057. "format": "int32",
  1058. "title": "成功的数量"
  1059. },
  1060. "total_count": {
  1061. "type": "integer",
  1062. "format": "int32",
  1063. "title": "总请求添加数量"
  1064. }
  1065. }
  1066. },
  1067. "apiCityPackageEnt": {
  1068. "type": "object",
  1069. "properties": {
  1070. "package_info": {
  1071. "$ref": "#/definitions/apiEntPackage",
  1072. "title": "套餐信息"
  1073. },
  1074. "package_category": {
  1075. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1076. "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
  1077. },
  1078. "area_list": {
  1079. "type": "array",
  1080. "items": {
  1081. "type": "object",
  1082. "$ref": "#/definitions/apiAreaEnt"
  1083. },
  1084. "title": "支持的区县ID列表"
  1085. },
  1086. "battery_tag_info": {
  1087. "$ref": "#/definitions/apiEntTag",
  1088. "title": "电池标签信息"
  1089. },
  1090. "car_tag_info": {
  1091. "$ref": "#/definitions/apiEntTag",
  1092. "title": "车型信息"
  1093. },
  1094. "shop_info": {
  1095. "$ref": "#/definitions/apiEntAdmin",
  1096. "title": "门店信息"
  1097. },
  1098. "is_recommend": {
  1099. "$ref": "#/definitions/apiYES_NO",
  1100. "title": "是否是推荐"
  1101. }
  1102. },
  1103. "title": "城市套餐的信息"
  1104. },
  1105. "apiCityPackageOrderEnt": {
  1106. "type": "object",
  1107. "properties": {
  1108. "order_info": {
  1109. "$ref": "#/definitions/CityPackageOrderEntOrderInfoItem",
  1110. "title": "订单信息"
  1111. },
  1112. "insurance_info": {
  1113. "type": "string",
  1114. "title": "保险信息"
  1115. },
  1116. "city_package_info": {
  1117. "$ref": "#/definitions/apiCityPackageEnt",
  1118. "title": "城市套餐信息"
  1119. }
  1120. },
  1121. "title": "城市套餐订单实体"
  1122. },
  1123. "apiCloseAreaReq": {
  1124. "type": "object",
  1125. "properties": {
  1126. "area_ids": {
  1127. "type": "array",
  1128. "items": {
  1129. "type": "string"
  1130. },
  1131. "title": "地区CODE列表"
  1132. }
  1133. }
  1134. },
  1135. "apiCloseAreaRes": {
  1136. "type": "object"
  1137. },
  1138. "apiDEVICE_USE_TYPE": {
  1139. "type": "string",
  1140. "enum": [
  1141. "DEVICE_USE_TYPE_RESERVED",
  1142. "DEVICE_USE_TYPE_BATTERY",
  1143. "DEVICE_USE_TYPE_ELECTRIC_VEHICLE",
  1144. "DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY"
  1145. ],
  1146. "default": "DEVICE_USE_TYPE_RESERVED",
  1147. "description": "- DEVICE_USE_TYPE_RESERVED: 保留\n - DEVICE_USE_TYPE_BATTERY: 租电/电池\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE: 租车/车辆\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY: 车电一体/车电一体",
  1148. "title": "设备用途类型 | 对象使用类型"
  1149. },
  1150. "apiDataTime": {
  1151. "type": "object",
  1152. "properties": {
  1153. "ctime": {
  1154. "type": "integer",
  1155. "format": "int32",
  1156. "title": "创建时间 时间戳 秒"
  1157. },
  1158. "utime": {
  1159. "type": "integer",
  1160. "format": "int32",
  1161. "title": "更新时间 时间戳 秒"
  1162. },
  1163. "dtime": {
  1164. "type": "integer",
  1165. "format": "int32",
  1166. "title": "删除时间 时间戳 秒"
  1167. }
  1168. },
  1169. "title": "数据的创建时间、更新时间、删除时间"
  1170. },
  1171. "apiEditPackageReq": {
  1172. "type": "object",
  1173. "properties": {
  1174. "data": {
  1175. "$ref": "#/definitions/apiCityPackageEnt",
  1176. "title": "套餐数据"
  1177. }
  1178. }
  1179. },
  1180. "apiEditPackageRes": {
  1181. "type": "object"
  1182. },
  1183. "apiEntAdmin": {
  1184. "type": "object",
  1185. "properties": {
  1186. "base_info": {
  1187. "$ref": "#/definitions/apiAdminBaseInfo",
  1188. "title": "门店基本信息"
  1189. }
  1190. },
  1191. "title": "门店实体"
  1192. },
  1193. "apiEntOrder": {
  1194. "type": "object",
  1195. "properties": {
  1196. "order_sn": {
  1197. "type": "string",
  1198. "title": "订单编号"
  1199. },
  1200. "order_id": {
  1201. "type": "integer",
  1202. "format": "int32",
  1203. "title": "订单ID"
  1204. },
  1205. "user_info": {
  1206. "$ref": "#/definitions/apiEntUser",
  1207. "title": "用户信息"
  1208. },
  1209. "shop_info": {
  1210. "$ref": "#/definitions/apiEntAdmin",
  1211. "title": "门店信息"
  1212. },
  1213. "order_time": {
  1214. "$ref": "#/definitions/apiOrderTime",
  1215. "title": "订单时间"
  1216. },
  1217. "pay_method": {
  1218. "$ref": "#/definitions/apiPAY_METHOD",
  1219. "title": "支付方式"
  1220. },
  1221. "order_source": {
  1222. "$ref": "#/definitions/apiREQUEST_SOURCE",
  1223. "title": "订单来源"
  1224. },
  1225. "pay_status": {
  1226. "type": "integer",
  1227. "format": "int32",
  1228. "title": "支付状态"
  1229. }
  1230. },
  1231. "title": "订单实体"
  1232. },
  1233. "apiEntPackage": {
  1234. "type": "object",
  1235. "properties": {
  1236. "name": {
  1237. "type": "string",
  1238. "title": "套餐名称"
  1239. },
  1240. "type": {
  1241. "$ref": "#/definitions/apiPackageType",
  1242. "title": "套餐类型"
  1243. },
  1244. "pledge": {
  1245. "type": "integer",
  1246. "format": "int32",
  1247. "title": "押金"
  1248. },
  1249. "total_day": {
  1250. "type": "integer",
  1251. "format": "int32",
  1252. "title": "天数"
  1253. },
  1254. "total_num": {
  1255. "type": "integer",
  1256. "format": "int32",
  1257. "title": "次数"
  1258. },
  1259. "show_money": {
  1260. "type": "integer",
  1261. "format": "int32",
  1262. "title": "套餐显示价格"
  1263. },
  1264. "money": {
  1265. "type": "integer",
  1266. "format": "int32",
  1267. "title": "套餐实际价格,元"
  1268. },
  1269. "exchange_money": {
  1270. "type": "integer",
  1271. "format": "int32",
  1272. "title": "单次换电价格,元"
  1273. },
  1274. "buy_limit": {
  1275. "type": "integer",
  1276. "format": "int32",
  1277. "title": "购买限制数量"
  1278. },
  1279. "listed_status": {
  1280. "$ref": "#/definitions/apiLISTED_STATUS",
  1281. "title": "上下架状态"
  1282. },
  1283. "code": {
  1284. "type": "string",
  1285. "title": "套餐code"
  1286. },
  1287. "stock": {
  1288. "type": "integer",
  1289. "format": "int32",
  1290. "title": "库存"
  1291. },
  1292. "ctime": {
  1293. "type": "integer",
  1294. "format": "int32",
  1295. "title": "创建时间 时间戳 秒"
  1296. },
  1297. "utime": {
  1298. "type": "integer",
  1299. "format": "int32",
  1300. "title": "更新时间 时间戳 秒"
  1301. },
  1302. "dtime": {
  1303. "type": "integer",
  1304. "format": "int32",
  1305. "title": "删除时间 时间戳 秒"
  1306. }
  1307. }
  1308. },
  1309. "apiEntTag": {
  1310. "type": "object",
  1311. "properties": {
  1312. "tag_name": {
  1313. "type": "string",
  1314. "title": "标签名称"
  1315. },
  1316. "tag_code": {
  1317. "type": "string",
  1318. "title": "标签code"
  1319. },
  1320. "tag_type": {
  1321. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1322. "title": "标签类型"
  1323. },
  1324. "tag_images": {
  1325. "type": "array",
  1326. "items": {
  1327. "type": "string"
  1328. },
  1329. "title": "tag的图片"
  1330. }
  1331. }
  1332. },
  1333. "apiEntUser": {
  1334. "type": "object",
  1335. "properties": {
  1336. "base_info": {
  1337. "$ref": "#/definitions/apiUserBaseInfo"
  1338. }
  1339. },
  1340. "title": "用户实体"
  1341. },
  1342. "apiLISTED_STATUS": {
  1343. "type": "string",
  1344. "enum": [
  1345. "LISTED_STATUS_RESERVED",
  1346. "LISTED_STATUS_LISTED",
  1347. "LISTED_STATUS_UNLISTED"
  1348. ],
  1349. "default": "LISTED_STATUS_RESERVED",
  1350. "description": "- LISTED_STATUS_RESERVED: 保留\n - LISTED_STATUS_LISTED: 上架\n - LISTED_STATUS_UNLISTED: 下架",
  1351. "title": "上下架状态"
  1352. },
  1353. "apiListPackageReq": {
  1354. "type": "object",
  1355. "properties": {
  1356. "page_arg": {
  1357. "$ref": "#/definitions/apiPageArg",
  1358. "title": "分页参数"
  1359. },
  1360. "shop_arg": {
  1361. "$ref": "#/definitions/apiShopArg",
  1362. "title": "门店筛选参数"
  1363. },
  1364. "package_category": {
  1365. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1366. "title": "套餐分类"
  1367. },
  1368. "listed_status": {
  1369. "$ref": "#/definitions/apiLISTED_STATUS",
  1370. "title": "上下架状态"
  1371. }
  1372. }
  1373. },
  1374. "apiListPackageRes": {
  1375. "type": "object",
  1376. "properties": {
  1377. "total": {
  1378. "type": "integer",
  1379. "format": "int32",
  1380. "title": "总条数"
  1381. },
  1382. "list": {
  1383. "type": "array",
  1384. "items": {
  1385. "type": "object",
  1386. "$ref": "#/definitions/apiCityPackageEnt"
  1387. },
  1388. "title": "套餐列表数组"
  1389. }
  1390. }
  1391. },
  1392. "apiOpenAreaReq": {
  1393. "type": "object",
  1394. "properties": {
  1395. "list": {
  1396. "type": "array",
  1397. "items": {
  1398. "type": "object",
  1399. "$ref": "#/definitions/OpenAreaReqOpenItem"
  1400. },
  1401. "title": "开通的地区"
  1402. }
  1403. }
  1404. },
  1405. "apiOpenAreaRes": {
  1406. "type": "object"
  1407. },
  1408. "apiOrderListReq": {
  1409. "type": "object",
  1410. "properties": {
  1411. "page_arg": {
  1412. "$ref": "#/definitions/apiPageArg",
  1413. "title": "分页参数"
  1414. },
  1415. "shop_arg": {
  1416. "$ref": "#/definitions/apiShopArg",
  1417. "title": "门店筛选参数"
  1418. },
  1419. "order_type": {
  1420. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1421. "title": "订单类型"
  1422. }
  1423. }
  1424. },
  1425. "apiOrderListRes": {
  1426. "type": "object",
  1427. "properties": {
  1428. "total": {
  1429. "type": "integer",
  1430. "format": "int32",
  1431. "title": "条数"
  1432. },
  1433. "list": {
  1434. "type": "array",
  1435. "items": {
  1436. "type": "object",
  1437. "$ref": "#/definitions/apiCityPackageOrderEnt"
  1438. },
  1439. "title": "订单数据数组"
  1440. }
  1441. }
  1442. },
  1443. "apiOrderTime": {
  1444. "type": "object",
  1445. "properties": {
  1446. "ordering_time": {
  1447. "type": "integer",
  1448. "format": "int32",
  1449. "title": "下单时间 时间戳 秒"
  1450. },
  1451. "pay_time": {
  1452. "type": "integer",
  1453. "format": "int32",
  1454. "title": "支付/购买时间 时间戳 秒"
  1455. }
  1456. },
  1457. "title": "订单相关的时间"
  1458. },
  1459. "apiPAY_METHOD": {
  1460. "type": "string",
  1461. "enum": [
  1462. "PAY_METHOD_RESERVED",
  1463. "PAY_METHOD_WECHAT"
  1464. ],
  1465. "default": "PAY_METHOD_RESERVED",
  1466. "description": "- PAY_METHOD_RESERVED: 保留\n - PAY_METHOD_WECHAT: 微信 jsapi",
  1467. "title": "支付方式"
  1468. },
  1469. "apiPackageAreaEnt": {
  1470. "type": "object",
  1471. "properties": {
  1472. "area_info": {
  1473. "$ref": "#/definitions/apiAreaEnt",
  1474. "title": "基本区县信息"
  1475. },
  1476. "open_status": {
  1477. "$ref": "#/definitions/apiYES_NO",
  1478. "title": "开通状态"
  1479. }
  1480. },
  1481. "title": "套餐开通的地区"
  1482. },
  1483. "apiPackageAreaListReq": {
  1484. "type": "object",
  1485. "properties": {
  1486. "package_code": {
  1487. "type": "string",
  1488. "title": "套餐CODE"
  1489. },
  1490. "page_arg": {
  1491. "$ref": "#/definitions/apiPageArg",
  1492. "title": "分页参数"
  1493. }
  1494. }
  1495. },
  1496. "apiPackageAreaListRes": {
  1497. "type": "object",
  1498. "properties": {
  1499. "total": {
  1500. "type": "integer",
  1501. "format": "int32",
  1502. "title": "总条数"
  1503. },
  1504. "list": {
  1505. "type": "array",
  1506. "items": {
  1507. "type": "object",
  1508. "$ref": "#/definitions/apiAreaEnt"
  1509. },
  1510. "title": "地区列表"
  1511. }
  1512. }
  1513. },
  1514. "apiPackageType": {
  1515. "type": "string",
  1516. "enum": [
  1517. "PACKAGE_TYPE_RESERVED",
  1518. "PACKAGE_TYPE_DAY",
  1519. "PACKAGE_TYPE_NUM",
  1520. "PACKAGE_TYPE_DAY_NUM"
  1521. ],
  1522. "default": "PACKAGE_TYPE_RESERVED",
  1523. "title": "- PACKAGE_TYPE_RESERVED: 保留\n - PACKAGE_TYPE_DAY: 天卡\n - PACKAGE_TYPE_NUM: 次卡\n - PACKAGE_TYPE_DAY_NUM: 天次卡"
  1524. },
  1525. "apiPageArg": {
  1526. "type": "object",
  1527. "properties": {
  1528. "page": {
  1529. "type": "integer",
  1530. "format": "int32",
  1531. "title": "页码 默认1"
  1532. },
  1533. "limit": {
  1534. "type": "integer",
  1535. "format": "int32",
  1536. "title": "每页条数 默认10"
  1537. },
  1538. "order_by": {
  1539. "type": "string",
  1540. "title": "排序字段 默认创建时间"
  1541. },
  1542. "order_type": {
  1543. "type": "string",
  1544. "title": "排序方式 asc/desc 默认asc"
  1545. }
  1546. },
  1547. "title": "PageArg 分页参数"
  1548. },
  1549. "apiREQUEST_SOURCE": {
  1550. "type": "string",
  1551. "enum": [
  1552. "REQUEST_SOURCE_RESERVED",
  1553. "REQUEST_SOURCE_WECHAT"
  1554. ],
  1555. "default": "REQUEST_SOURCE_RESERVED",
  1556. "description": "- REQUEST_SOURCE_RESERVED: 保留\n - REQUEST_SOURCE_WECHAT: 微信小程序",
  1557. "title": "请求来源"
  1558. },
  1559. "apiShopArg": {
  1560. "type": "object",
  1561. "properties": {
  1562. "shop_id": {
  1563. "type": "integer",
  1564. "format": "int32",
  1565. "title": "门店ID"
  1566. },
  1567. "is_all_level": {
  1568. "type": "boolean",
  1569. "title": "是否包含所有子级层级的子门店"
  1570. }
  1571. },
  1572. "title": "门店筛选参数"
  1573. },
  1574. "apiSubAreaListReq": {
  1575. "type": "object",
  1576. "properties": {
  1577. "page_arg": {
  1578. "$ref": "#/definitions/apiPageArg",
  1579. "title": "分页参数"
  1580. },
  1581. "province_code": {
  1582. "type": "string",
  1583. "title": "省份CODE"
  1584. },
  1585. "city_code": {
  1586. "type": "string",
  1587. "title": "城市CODE"
  1588. },
  1589. "shop_id": {
  1590. "type": "integer",
  1591. "format": "int32",
  1592. "title": "门店ID"
  1593. }
  1594. }
  1595. },
  1596. "apiSubAreaListRes": {
  1597. "type": "object",
  1598. "properties": {
  1599. "total": {
  1600. "type": "integer",
  1601. "format": "int32",
  1602. "title": "总条数"
  1603. },
  1604. "list": {
  1605. "type": "array",
  1606. "items": {
  1607. "type": "object",
  1608. "$ref": "#/definitions/SubAreaListResSubItem"
  1609. },
  1610. "title": "列表"
  1611. }
  1612. }
  1613. },
  1614. "apiSubRemoveAreaReq": {
  1615. "type": "object",
  1616. "properties": {
  1617. "shop_id": {
  1618. "type": "integer",
  1619. "format": "int32",
  1620. "title": "门店ID"
  1621. },
  1622. "area_ids": {
  1623. "type": "array",
  1624. "items": {
  1625. "type": "string"
  1626. },
  1627. "title": "地区area_ids"
  1628. }
  1629. }
  1630. },
  1631. "apiSubRemoveAreaRes": {
  1632. "type": "object"
  1633. },
  1634. "apiSubSelectAreaReq": {
  1635. "type": "object",
  1636. "properties": {
  1637. "shop_id": {
  1638. "type": "integer",
  1639. "format": "int32",
  1640. "title": "门店ID"
  1641. },
  1642. "area_ids": {
  1643. "type": "array",
  1644. "items": {
  1645. "type": "string"
  1646. },
  1647. "title": "地区area_ids"
  1648. }
  1649. }
  1650. },
  1651. "apiSubSelectAreaRes": {
  1652. "type": "object"
  1653. },
  1654. "apiSubShopListReq": {
  1655. "type": "object",
  1656. "properties": {
  1657. "page_arg": {
  1658. "$ref": "#/definitions/apiPageArg",
  1659. "title": "分页参数"
  1660. }
  1661. }
  1662. },
  1663. "apiSubShopListRes": {
  1664. "type": "object",
  1665. "properties": {
  1666. "total": {
  1667. "type": "integer",
  1668. "format": "int32",
  1669. "title": "总条数"
  1670. },
  1671. "list": {
  1672. "type": "array",
  1673. "items": {
  1674. "type": "object",
  1675. "$ref": "#/definitions/SubShopListResSubShopListResItem"
  1676. },
  1677. "title": "门店列表"
  1678. }
  1679. }
  1680. },
  1681. "apiUserBaseInfo": {
  1682. "type": "object",
  1683. "properties": {
  1684. "user_id": {
  1685. "type": "integer",
  1686. "format": "int32",
  1687. "title": "用户id"
  1688. },
  1689. "username": {
  1690. "type": "string",
  1691. "title": "用户名称"
  1692. },
  1693. "phone": {
  1694. "type": "string",
  1695. "title": "用户手机号"
  1696. }
  1697. },
  1698. "title": "用户的基本信息"
  1699. },
  1700. "apiYES_NO": {
  1701. "type": "string",
  1702. "enum": [
  1703. "YES_NO_RESERVED",
  1704. "YES",
  1705. "NO"
  1706. ],
  1707. "default": "YES_NO_RESERVED",
  1708. "title": "- YES_NO_RESERVED: 保留\n - YES: 是/开通/真/拥有/有效/推荐\n - NO: 否/关闭/假/不拥有/无效/不推荐"
  1709. },
  1710. "protobufAny": {
  1711. "type": "object",
  1712. "properties": {
  1713. "@type": {
  1714. "type": "string"
  1715. }
  1716. },
  1717. "additionalProperties": {}
  1718. },
  1719. "rpcStatus": {
  1720. "type": "object",
  1721. "properties": {
  1722. "code": {
  1723. "type": "integer",
  1724. "format": "int32"
  1725. },
  1726. "message": {
  1727. "type": "string"
  1728. },
  1729. "details": {
  1730. "type": "array",
  1731. "items": {
  1732. "type": "object",
  1733. "$ref": "#/definitions/protobufAny"
  1734. }
  1735. }
  1736. }
  1737. }
  1738. }
  1739. }