CityPackage.swagger.json 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708
  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. "area_info": {
  883. "$ref": "#/definitions/apiAreaEnt",
  884. "title": "区域信息"
  885. },
  886. "children": {
  887. "type": "array",
  888. "items": {
  889. "type": "object",
  890. "$ref": "#/definitions/apiAreaLevelEnt"
  891. },
  892. "title": "子级区域"
  893. }
  894. }
  895. },
  896. "apiAreaListReq": {
  897. "type": "object",
  898. "properties": {
  899. "page_arg": {
  900. "$ref": "#/definitions/apiPageArg",
  901. "title": "分页参数"
  902. },
  903. "open_status": {
  904. "$ref": "#/definitions/apiYES_NO",
  905. "title": "开通状态"
  906. },
  907. "province_code": {
  908. "type": "string",
  909. "title": "省份CODE"
  910. },
  911. "city_code": {
  912. "type": "string",
  913. "title": "城市CODE"
  914. }
  915. }
  916. },
  917. "apiAreaListRes": {
  918. "type": "object",
  919. "properties": {
  920. "total": {
  921. "type": "integer",
  922. "format": "int32",
  923. "title": "总条数"
  924. },
  925. "list": {
  926. "type": "array",
  927. "items": {
  928. "type": "object",
  929. "$ref": "#/definitions/apiPackageAreaEnt"
  930. },
  931. "title": "地区列表"
  932. }
  933. }
  934. },
  935. "apiCarModelEnt": {
  936. "type": "object",
  937. "properties": {
  938. "model_name": {
  939. "type": "string",
  940. "title": "车型名称"
  941. },
  942. "model_code": {
  943. "type": "string",
  944. "title": "车型编号"
  945. },
  946. "model_images": {
  947. "type": "array",
  948. "items": {
  949. "type": "string"
  950. },
  951. "title": "车型图片"
  952. },
  953. "model_id": {
  954. "type": "string",
  955. "title": "车型ID"
  956. },
  957. "data_time": {
  958. "$ref": "#/definitions/apiDataTime",
  959. "title": "数据时间"
  960. }
  961. }
  962. },
  963. "apiChangeListedStatusReq": {
  964. "type": "object",
  965. "properties": {
  966. "package_code": {
  967. "type": "array",
  968. "items": {
  969. "type": "string"
  970. },
  971. "title": "套餐code"
  972. },
  973. "status": {
  974. "$ref": "#/definitions/apiLISTED_STATUS",
  975. "title": "更新的状态"
  976. }
  977. }
  978. },
  979. "apiChangeListedStatusRes": {
  980. "type": "object"
  981. },
  982. "apiChangeRecommendReq": {
  983. "type": "object",
  984. "properties": {
  985. "package_code": {
  986. "type": "array",
  987. "items": {
  988. "type": "string"
  989. },
  990. "title": "套餐code"
  991. },
  992. "is_recommend": {
  993. "$ref": "#/definitions/apiYES_NO",
  994. "title": "是否推荐"
  995. }
  996. }
  997. },
  998. "apiChangeRecommendRes": {
  999. "type": "object"
  1000. },
  1001. "apiCityPackageAddReq": {
  1002. "type": "object",
  1003. "properties": {
  1004. "shop_id": {
  1005. "type": "integer",
  1006. "format": "int32",
  1007. "title": "门店ID 默认为当前登陆的门店ID"
  1008. },
  1009. "package_list": {
  1010. "type": "array",
  1011. "items": {
  1012. "type": "object",
  1013. "$ref": "#/definitions/CityPackageAddReqAddItem"
  1014. },
  1015. "title": "套餐数组列表"
  1016. },
  1017. "package_category": {
  1018. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1019. "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
  1020. }
  1021. }
  1022. },
  1023. "apiCityPackageAddRes": {
  1024. "type": "object",
  1025. "properties": {
  1026. "fail_count": {
  1027. "type": "integer",
  1028. "format": "int32",
  1029. "title": "失败的数量"
  1030. },
  1031. "success_count": {
  1032. "type": "integer",
  1033. "format": "int32",
  1034. "title": "成功的数量"
  1035. },
  1036. "total_count": {
  1037. "type": "integer",
  1038. "format": "int32",
  1039. "title": "总请求添加数量"
  1040. }
  1041. }
  1042. },
  1043. "apiCityPackageEnt": {
  1044. "type": "object",
  1045. "properties": {
  1046. "package_info": {
  1047. "$ref": "#/definitions/apiEntPackage",
  1048. "title": "套餐信息"
  1049. },
  1050. "package_category": {
  1051. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1052. "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
  1053. },
  1054. "area_list": {
  1055. "type": "array",
  1056. "items": {
  1057. "type": "object",
  1058. "$ref": "#/definitions/apiAreaEnt"
  1059. },
  1060. "title": "支持的区县ID列表"
  1061. },
  1062. "battery_tag_info": {
  1063. "$ref": "#/definitions/apiEntTag",
  1064. "title": "电池标签信息"
  1065. },
  1066. "car_model_info": {
  1067. "$ref": "#/definitions/apiCarModelEnt",
  1068. "title": "车型信息"
  1069. },
  1070. "shop_info": {
  1071. "$ref": "#/definitions/apiEntAdmin",
  1072. "title": "门店信息"
  1073. },
  1074. "is_recommend": {
  1075. "$ref": "#/definitions/apiYES_NO",
  1076. "title": "是否是推荐"
  1077. }
  1078. },
  1079. "title": "城市套餐的信息"
  1080. },
  1081. "apiCityPackageOrderEnt": {
  1082. "type": "object",
  1083. "properties": {
  1084. "order_info": {
  1085. "$ref": "#/definitions/CityPackageOrderEntOrderInfoItem",
  1086. "title": "订单信息"
  1087. },
  1088. "insurance_info": {
  1089. "type": "string",
  1090. "title": "保险信息"
  1091. },
  1092. "city_package_info": {
  1093. "$ref": "#/definitions/apiCityPackageEnt",
  1094. "title": "城市套餐信息"
  1095. }
  1096. },
  1097. "title": "城市套餐订单实体"
  1098. },
  1099. "apiCloseAreaReq": {
  1100. "type": "object",
  1101. "properties": {
  1102. "area_ids": {
  1103. "type": "array",
  1104. "items": {
  1105. "type": "string"
  1106. },
  1107. "title": "地区CODE列表"
  1108. }
  1109. }
  1110. },
  1111. "apiCloseAreaRes": {
  1112. "type": "object"
  1113. },
  1114. "apiDEVICE_USE_TYPE": {
  1115. "type": "string",
  1116. "enum": [
  1117. "DEVICE_USE_TYPE_RESERVED",
  1118. "DEVICE_USE_TYPE_BATTERY",
  1119. "DEVICE_USE_TYPE_ELECTRIC_VEHICLE",
  1120. "DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY"
  1121. ],
  1122. "default": "DEVICE_USE_TYPE_RESERVED",
  1123. "description": "- DEVICE_USE_TYPE_RESERVED: 保留\n - DEVICE_USE_TYPE_BATTERY: 租电/电池\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE: 租车/车辆\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY: 车电一体/车电一体",
  1124. "title": "设备用途类型 | 对象使用类型"
  1125. },
  1126. "apiDataTime": {
  1127. "type": "object",
  1128. "properties": {
  1129. "ctime": {
  1130. "type": "integer",
  1131. "format": "int32",
  1132. "title": "创建时间 时间戳 秒"
  1133. },
  1134. "utime": {
  1135. "type": "integer",
  1136. "format": "int32",
  1137. "title": "更新时间 时间戳 秒"
  1138. },
  1139. "dtime": {
  1140. "type": "integer",
  1141. "format": "int32",
  1142. "title": "删除时间 时间戳 秒"
  1143. }
  1144. },
  1145. "title": "数据的创建时间、更新时间、删除时间"
  1146. },
  1147. "apiEditPackageReq": {
  1148. "type": "object",
  1149. "properties": {
  1150. "data": {
  1151. "$ref": "#/definitions/apiCityPackageEnt",
  1152. "title": "套餐数据"
  1153. }
  1154. }
  1155. },
  1156. "apiEditPackageRes": {
  1157. "type": "object"
  1158. },
  1159. "apiEntAdmin": {
  1160. "type": "object",
  1161. "properties": {
  1162. "base_info": {
  1163. "$ref": "#/definitions/apiAdminBaseInfo",
  1164. "title": "门店基本信息"
  1165. }
  1166. },
  1167. "title": "门店实体"
  1168. },
  1169. "apiEntOrder": {
  1170. "type": "object",
  1171. "properties": {
  1172. "order_sn": {
  1173. "type": "string",
  1174. "title": "订单编号"
  1175. },
  1176. "order_id": {
  1177. "type": "integer",
  1178. "format": "int32",
  1179. "title": "订单ID"
  1180. },
  1181. "user_info": {
  1182. "$ref": "#/definitions/apiEntUser",
  1183. "title": "用户信息"
  1184. },
  1185. "shop_info": {
  1186. "$ref": "#/definitions/apiEntAdmin",
  1187. "title": "门店信息"
  1188. },
  1189. "order_time": {
  1190. "$ref": "#/definitions/apiOrderTime",
  1191. "title": "订单时间"
  1192. },
  1193. "pay_method": {
  1194. "$ref": "#/definitions/apiPAY_METHOD",
  1195. "title": "支付方式"
  1196. },
  1197. "order_source": {
  1198. "$ref": "#/definitions/apiREQUEST_SOURCE",
  1199. "title": "订单来源"
  1200. },
  1201. "pay_status": {
  1202. "type": "integer",
  1203. "format": "int32",
  1204. "title": "支付状态"
  1205. }
  1206. },
  1207. "title": "订单实体"
  1208. },
  1209. "apiEntPackage": {
  1210. "type": "object",
  1211. "properties": {
  1212. "name": {
  1213. "type": "string",
  1214. "title": "套餐名称"
  1215. },
  1216. "type": {
  1217. "$ref": "#/definitions/apiPackageType",
  1218. "title": "套餐类型"
  1219. },
  1220. "pledge": {
  1221. "type": "integer",
  1222. "format": "int32",
  1223. "title": "押金"
  1224. },
  1225. "total_day": {
  1226. "type": "integer",
  1227. "format": "int32",
  1228. "title": "天数"
  1229. },
  1230. "total_num": {
  1231. "type": "integer",
  1232. "format": "int32",
  1233. "title": "次数"
  1234. },
  1235. "show_money": {
  1236. "type": "integer",
  1237. "format": "int32",
  1238. "title": "套餐显示价格"
  1239. },
  1240. "money": {
  1241. "type": "integer",
  1242. "format": "int32",
  1243. "title": "套餐实际价格,元"
  1244. },
  1245. "exchange_money": {
  1246. "type": "integer",
  1247. "format": "int32",
  1248. "title": "单次换电价格,元"
  1249. },
  1250. "buy_limit": {
  1251. "type": "integer",
  1252. "format": "int32",
  1253. "title": "购买限制数量"
  1254. },
  1255. "listed_status": {
  1256. "$ref": "#/definitions/apiLISTED_STATUS",
  1257. "title": "上下架状态"
  1258. },
  1259. "code": {
  1260. "type": "string",
  1261. "title": "套餐code"
  1262. },
  1263. "stock": {
  1264. "type": "integer",
  1265. "format": "int32",
  1266. "title": "库存"
  1267. },
  1268. "ctime": {
  1269. "type": "integer",
  1270. "format": "int32",
  1271. "title": "创建时间 时间戳 秒"
  1272. },
  1273. "utime": {
  1274. "type": "integer",
  1275. "format": "int32",
  1276. "title": "更新时间 时间戳 秒"
  1277. },
  1278. "dtime": {
  1279. "type": "integer",
  1280. "format": "int32",
  1281. "title": "删除时间 时间戳 秒"
  1282. }
  1283. }
  1284. },
  1285. "apiEntTag": {
  1286. "type": "object",
  1287. "properties": {
  1288. "name": {
  1289. "type": "string",
  1290. "title": "标签名称"
  1291. },
  1292. "tag_code": {
  1293. "type": "string",
  1294. "title": "标签code"
  1295. },
  1296. "tag_type": {
  1297. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1298. "title": "标签类型"
  1299. }
  1300. }
  1301. },
  1302. "apiEntUser": {
  1303. "type": "object",
  1304. "properties": {
  1305. "base_info": {
  1306. "$ref": "#/definitions/apiUserBaseInfo"
  1307. }
  1308. },
  1309. "title": "用户实体"
  1310. },
  1311. "apiLISTED_STATUS": {
  1312. "type": "string",
  1313. "enum": [
  1314. "LISTED_STATUS_RESERVED",
  1315. "LISTED_STATUS_LISTED",
  1316. "LISTED_STATUS_UNLISTED"
  1317. ],
  1318. "default": "LISTED_STATUS_RESERVED",
  1319. "description": "- LISTED_STATUS_RESERVED: 保留\n - LISTED_STATUS_LISTED: 上架\n - LISTED_STATUS_UNLISTED: 下架",
  1320. "title": "上下架状态"
  1321. },
  1322. "apiListPackageReq": {
  1323. "type": "object",
  1324. "properties": {
  1325. "page_arg": {
  1326. "$ref": "#/definitions/apiPageArg",
  1327. "title": "分页参数"
  1328. },
  1329. "shop_arg": {
  1330. "$ref": "#/definitions/apiShopArg",
  1331. "title": "门店筛选参数"
  1332. },
  1333. "package_category": {
  1334. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1335. "title": "套餐分类"
  1336. },
  1337. "listed_status": {
  1338. "$ref": "#/definitions/apiLISTED_STATUS",
  1339. "title": "上下架状态"
  1340. }
  1341. }
  1342. },
  1343. "apiListPackageRes": {
  1344. "type": "object",
  1345. "properties": {
  1346. "total": {
  1347. "type": "integer",
  1348. "format": "int32",
  1349. "title": "总条数"
  1350. },
  1351. "list": {
  1352. "type": "array",
  1353. "items": {
  1354. "type": "object",
  1355. "$ref": "#/definitions/apiCityPackageEnt"
  1356. },
  1357. "title": "套餐列表数组"
  1358. }
  1359. }
  1360. },
  1361. "apiOpenAreaReq": {
  1362. "type": "object",
  1363. "properties": {
  1364. "list": {
  1365. "type": "array",
  1366. "items": {
  1367. "type": "object",
  1368. "$ref": "#/definitions/OpenAreaReqOpenItem"
  1369. },
  1370. "title": "开通的地区"
  1371. }
  1372. }
  1373. },
  1374. "apiOpenAreaRes": {
  1375. "type": "object"
  1376. },
  1377. "apiOrderListReq": {
  1378. "type": "object",
  1379. "properties": {
  1380. "page_arg": {
  1381. "$ref": "#/definitions/apiPageArg",
  1382. "title": "分页参数"
  1383. },
  1384. "shop_arg": {
  1385. "$ref": "#/definitions/apiShopArg",
  1386. "title": "门店筛选参数"
  1387. },
  1388. "order_type": {
  1389. "$ref": "#/definitions/apiDEVICE_USE_TYPE",
  1390. "title": "订单类型"
  1391. }
  1392. }
  1393. },
  1394. "apiOrderListRes": {
  1395. "type": "object",
  1396. "properties": {
  1397. "total": {
  1398. "type": "integer",
  1399. "format": "int32",
  1400. "title": "条数"
  1401. },
  1402. "list": {
  1403. "type": "array",
  1404. "items": {
  1405. "type": "object",
  1406. "$ref": "#/definitions/apiCityPackageOrderEnt"
  1407. },
  1408. "title": "订单数据数组"
  1409. }
  1410. }
  1411. },
  1412. "apiOrderTime": {
  1413. "type": "object",
  1414. "properties": {
  1415. "ordering_time": {
  1416. "type": "integer",
  1417. "format": "int32",
  1418. "title": "下单时间 时间戳 秒"
  1419. },
  1420. "pay_time": {
  1421. "type": "integer",
  1422. "format": "int32",
  1423. "title": "支付/购买时间 时间戳 秒"
  1424. }
  1425. },
  1426. "title": "订单相关的时间"
  1427. },
  1428. "apiPAY_METHOD": {
  1429. "type": "string",
  1430. "enum": [
  1431. "PAY_METHOD_RESERVED",
  1432. "PAY_METHOD_WECHAT"
  1433. ],
  1434. "default": "PAY_METHOD_RESERVED",
  1435. "description": "- PAY_METHOD_RESERVED: 保留\n - PAY_METHOD_WECHAT: 微信 jsapi",
  1436. "title": "支付方式"
  1437. },
  1438. "apiPackageAreaEnt": {
  1439. "type": "object",
  1440. "properties": {
  1441. "area_info": {
  1442. "$ref": "#/definitions/apiAreaEnt",
  1443. "title": "基本区县信息"
  1444. },
  1445. "open_status": {
  1446. "$ref": "#/definitions/apiYES_NO",
  1447. "title": "开通状态"
  1448. }
  1449. },
  1450. "title": "套餐开通的地区"
  1451. },
  1452. "apiPackageAreaListReq": {
  1453. "type": "object",
  1454. "properties": {
  1455. "package_code": {
  1456. "type": "string",
  1457. "title": "套餐CODE"
  1458. },
  1459. "page_arg": {
  1460. "$ref": "#/definitions/apiPageArg",
  1461. "title": "分页参数"
  1462. }
  1463. }
  1464. },
  1465. "apiPackageAreaListRes": {
  1466. "type": "object",
  1467. "properties": {
  1468. "total": {
  1469. "type": "integer",
  1470. "format": "int32",
  1471. "title": "总条数"
  1472. },
  1473. "list": {
  1474. "type": "array",
  1475. "items": {
  1476. "type": "object",
  1477. "$ref": "#/definitions/apiAreaEnt"
  1478. },
  1479. "title": "地区列表"
  1480. }
  1481. }
  1482. },
  1483. "apiPackageType": {
  1484. "type": "string",
  1485. "enum": [
  1486. "PACKAGE_TYPE_RESERVED",
  1487. "PACKAGE_TYPE_DAY",
  1488. "PACKAGE_TYPE_NUM",
  1489. "PACKAGE_TYPE_DAY_NUM"
  1490. ],
  1491. "default": "PACKAGE_TYPE_RESERVED",
  1492. "title": "- PACKAGE_TYPE_RESERVED: 保留\n - PACKAGE_TYPE_DAY: 天卡\n - PACKAGE_TYPE_NUM: 次卡\n - PACKAGE_TYPE_DAY_NUM: 天次卡"
  1493. },
  1494. "apiPageArg": {
  1495. "type": "object",
  1496. "properties": {
  1497. "page": {
  1498. "type": "integer",
  1499. "format": "int32",
  1500. "title": "页码 默认1"
  1501. },
  1502. "limit": {
  1503. "type": "integer",
  1504. "format": "int32",
  1505. "title": "每页条数 默认10"
  1506. },
  1507. "order_by": {
  1508. "type": "string",
  1509. "title": "排序字段 默认创建时间"
  1510. },
  1511. "order_type": {
  1512. "type": "string",
  1513. "title": "排序方式 asc/desc 默认asc"
  1514. }
  1515. },
  1516. "title": "PageArg 分页参数"
  1517. },
  1518. "apiREQUEST_SOURCE": {
  1519. "type": "string",
  1520. "enum": [
  1521. "REQUEST_SOURCE_RESERVED",
  1522. "REQUEST_SOURCE_WECHAT"
  1523. ],
  1524. "default": "REQUEST_SOURCE_RESERVED",
  1525. "description": "- REQUEST_SOURCE_RESERVED: 保留\n - REQUEST_SOURCE_WECHAT: 微信小程序",
  1526. "title": "请求来源"
  1527. },
  1528. "apiShopArg": {
  1529. "type": "object",
  1530. "properties": {
  1531. "shop_id": {
  1532. "type": "integer",
  1533. "format": "int32",
  1534. "title": "门店ID"
  1535. },
  1536. "is_all_level": {
  1537. "type": "boolean",
  1538. "title": "是否包含所有子级层级的子门店"
  1539. }
  1540. },
  1541. "title": "门店筛选参数"
  1542. },
  1543. "apiSubAreaListReq": {
  1544. "type": "object",
  1545. "properties": {
  1546. "page_arg": {
  1547. "$ref": "#/definitions/apiPageArg",
  1548. "title": "分页参数"
  1549. },
  1550. "province_code": {
  1551. "type": "string",
  1552. "title": "省份CODE"
  1553. },
  1554. "city_code": {
  1555. "type": "string",
  1556. "title": "城市CODE"
  1557. },
  1558. "shop_id": {
  1559. "type": "integer",
  1560. "format": "int32",
  1561. "title": "门店ID"
  1562. }
  1563. }
  1564. },
  1565. "apiSubAreaListRes": {
  1566. "type": "object",
  1567. "properties": {
  1568. "total": {
  1569. "type": "integer",
  1570. "format": "int32",
  1571. "title": "总条数"
  1572. },
  1573. "list": {
  1574. "type": "array",
  1575. "items": {
  1576. "type": "object",
  1577. "$ref": "#/definitions/SubAreaListResSubItem"
  1578. },
  1579. "title": "列表"
  1580. }
  1581. }
  1582. },
  1583. "apiSubRemoveAreaReq": {
  1584. "type": "object",
  1585. "properties": {
  1586. "shop_id": {
  1587. "type": "integer",
  1588. "format": "int32",
  1589. "title": "门店ID"
  1590. },
  1591. "area_ids": {
  1592. "type": "array",
  1593. "items": {
  1594. "type": "string"
  1595. },
  1596. "title": "地区area_ids"
  1597. }
  1598. }
  1599. },
  1600. "apiSubRemoveAreaRes": {
  1601. "type": "object"
  1602. },
  1603. "apiSubSelectAreaReq": {
  1604. "type": "object",
  1605. "properties": {
  1606. "shop_id": {
  1607. "type": "integer",
  1608. "format": "int32",
  1609. "title": "门店ID"
  1610. },
  1611. "area_ids": {
  1612. "type": "array",
  1613. "items": {
  1614. "type": "string"
  1615. },
  1616. "title": "地区area_ids"
  1617. }
  1618. }
  1619. },
  1620. "apiSubSelectAreaRes": {
  1621. "type": "object"
  1622. },
  1623. "apiSubShopListReq": {
  1624. "type": "object",
  1625. "properties": {
  1626. "page_arg": {
  1627. "$ref": "#/definitions/apiPageArg",
  1628. "title": "分页参数"
  1629. }
  1630. }
  1631. },
  1632. "apiSubShopListRes": {
  1633. "type": "object",
  1634. "properties": {
  1635. "total": {
  1636. "type": "integer",
  1637. "format": "int32",
  1638. "title": "总条数"
  1639. },
  1640. "list": {
  1641. "type": "array",
  1642. "items": {
  1643. "type": "object",
  1644. "$ref": "#/definitions/SubShopListResSubShopListResItem"
  1645. },
  1646. "title": "门店列表"
  1647. }
  1648. }
  1649. },
  1650. "apiUserBaseInfo": {
  1651. "type": "object",
  1652. "properties": {
  1653. "user_id": {
  1654. "type": "integer",
  1655. "format": "int32",
  1656. "title": "用户id"
  1657. },
  1658. "username": {
  1659. "type": "string",
  1660. "title": "用户名称"
  1661. },
  1662. "phone": {
  1663. "type": "string",
  1664. "title": "用户手机号"
  1665. }
  1666. },
  1667. "title": "用户的基本信息"
  1668. },
  1669. "apiYES_NO": {
  1670. "type": "string",
  1671. "enum": [
  1672. "YES_NO_RESERVED",
  1673. "YES",
  1674. "NO"
  1675. ],
  1676. "default": "YES_NO_RESERVED",
  1677. "title": "- YES_NO_RESERVED: 保留\n - YES: 是/开通/真/拥有/有效/推荐\n - NO: 否/关闭/假/不拥有/无效/不推荐"
  1678. },
  1679. "protobufAny": {
  1680. "type": "object",
  1681. "properties": {
  1682. "@type": {
  1683. "type": "string"
  1684. }
  1685. },
  1686. "additionalProperties": {}
  1687. },
  1688. "rpcStatus": {
  1689. "type": "object",
  1690. "properties": {
  1691. "code": {
  1692. "type": "integer",
  1693. "format": "int32"
  1694. },
  1695. "message": {
  1696. "type": "string"
  1697. },
  1698. "details": {
  1699. "type": "array",
  1700. "items": {
  1701. "type": "object",
  1702. "$ref": "#/definitions/protobufAny"
  1703. }
  1704. }
  1705. }
  1706. }
  1707. }
  1708. }