1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708 |
- {
- "swagger": "2.0",
- "info": {
- "title": "城市套餐",
- "description": "城市套餐模块",
- "version": "1.0"
- },
- "tags": [
- {
- "name": "API接口/后台/城市套餐"
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/cityPackage/area/all-area-level-list": {
- "post": {
- "summary": "获取层级关系的树形结构地区数据 只有省和市两级",
- "operationId": "CityPackageService_AllAreaLevelList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiAllAreaLevelListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiAllAreaLevelListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/all-area-level-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/area-list": {
- "post": {
- "summary": "主体门店开通的地区列表",
- "operationId": "CityPackageService_AreaList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiAreaListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiAreaListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/area-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/close-area": {
- "post": {
- "summary": "主体门店停用地区",
- "operationId": "CityPackageService_CloseArea",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiCloseAreaRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiCloseAreaReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/close-area"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/open-area": {
- "post": {
- "summary": "主体门店编辑地区",
- "operationId": "CityPackageService_OpenArea",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiOpenAreaRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiOpenAreaReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/open-area"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/sub-area-list": {
- "post": {
- "summary": "子门店可选的地区列表",
- "operationId": "CityPackageService_SubAreaList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiSubAreaListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiSubAreaListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/sub-area-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/sub-remove-area": {
- "post": {
- "summary": "子门店移除地区",
- "operationId": "CityPackageService_SubRemoveArea",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiSubRemoveAreaRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiSubRemoveAreaReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/sub-remove-area"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/sub-select-area": {
- "post": {
- "summary": "子门店选择地区",
- "operationId": "CityPackageService_SubSelectArea",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiSubSelectAreaRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiSubSelectAreaReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/sub-select-area"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/area/sub-shop-list": {
- "post": {
- "summary": "子门店列表",
- "operationId": "CityPackageService_SubShopList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiSubShopListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiSubShopListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/area/sub-shop-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/add-package": {
- "post": {
- "summary": "添加套餐",
- "operationId": "CityPackageService_AddPackage",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiCityPackageAddRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiCityPackageAddReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/add-package"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/change-listed-status": {
- "post": {
- "summary": "套餐改变上下架状态",
- "operationId": "CityPackageService_ChangeListedStatus",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiChangeListedStatusRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiChangeListedStatusReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/change-listed-status"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/change-recommend": {
- "post": {
- "summary": "套餐的推荐变更",
- "operationId": "CityPackageService_ChangeRecommend",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiChangeRecommendRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiChangeRecommendReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/change-recommend"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/edit-package": {
- "post": {
- "summary": "编辑套餐",
- "operationId": "CityPackageService_EditPackage",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiEditPackageRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiEditPackageReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/edit-package"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/list-package": {
- "post": {
- "summary": "套餐列表",
- "operationId": "CityPackageService_ListPackage",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiListPackageRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiListPackageReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/list-package"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/city-package/package-area-list": {
- "post": {
- "summary": "套餐的地区使用范围",
- "operationId": "CityPackageService_PackageAreaList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiPackageAreaListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiPackageAreaListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/city-package/package-area-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- },
- "/cityPackage/order/order-list": {
- "post": {
- "summary": "订单列表",
- "operationId": "CityPackageService_OrderList",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/apiOrderListRes"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/apiOrderListReq"
- }
- },
- {
- "name": "r",
- "description": "接口地址",
- "in": "query",
- "required": true,
- "example": "cityPackage/order/order-list"
- }
- ],
- "tags": [
- "API接口/后台/城市套餐"
- ]
- }
- }
- },
- "definitions": {
- "CityPackageAddReqAddItem": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "title": "套餐名称"
- },
- "type": {
- "$ref": "#/definitions/apiPackageType",
- "title": "套餐类型"
- },
- "pledge": {
- "type": "integer",
- "format": "int32",
- "title": "押金"
- },
- "total_day": {
- "type": "integer",
- "format": "int32",
- "title": "天数"
- },
- "total_num": {
- "type": "integer",
- "format": "int32",
- "title": "次数"
- },
- "show_money": {
- "type": "integer",
- "format": "int32",
- "title": "套餐显示价格"
- },
- "money": {
- "type": "integer",
- "format": "int32",
- "title": "套餐实际价格,元"
- },
- "exchange_money": {
- "type": "integer",
- "format": "int32",
- "title": "单次换电价格,元"
- },
- "buy_limit": {
- "type": "integer",
- "format": "int32",
- "title": "购买限制数量"
- },
- "listed_status": {
- "$ref": "#/definitions/apiLISTED_STATUS",
- "title": "上下架状态"
- },
- "stock": {
- "type": "integer",
- "format": "int32",
- "title": "库存"
- },
- "package_category": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
- },
- "area_list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiAreaEnt"
- },
- "title": "支持的区县ID列表"
- },
- "battery_tag_info": {
- "$ref": "#/definitions/apiEntTag",
- "title": "电池标签信息"
- },
- "car_model_info": {
- "$ref": "#/definitions/apiCarModelEnt",
- "title": "车型信息"
- }
- }
- },
- "CityPackageOrderEntOrderInfoItem": {
- "type": "object",
- "properties": {
- "base_info": {
- "$ref": "#/definitions/apiEntOrder",
- "title": "基础信息"
- },
- "current_battery_sn": {
- "type": "string",
- "title": "当前电池"
- },
- "battery_sn": {
- "type": "string",
- "title": "购买绑定的电池"
- },
- "remain_capacity": {
- "type": "string",
- "title": "剩余用量"
- },
- "pledge_status": {
- "type": "integer",
- "format": "int32",
- "title": "押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退"
- }
- }
- },
- "OpenAreaReqOpenItem": {
- "type": "object",
- "properties": {
- "area_id": {
- "type": "string",
- "title": "选择区域的id"
- },
- "battery_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "电池押金"
- },
- "car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车辆押金"
- },
- "battery_car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车电一体押金"
- },
- "open_status": {
- "$ref": "#/definitions/apiYES_NO",
- "title": "开通状态"
- }
- }
- },
- "SubAreaListResSubItem": {
- "type": "object",
- "properties": {
- "province_name": {
- "type": "string",
- "title": "省份"
- },
- "city_name": {
- "type": "string",
- "title": "城市"
- },
- "battery_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "电池押金"
- },
- "car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车辆押金"
- },
- "battery_car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车电一体押金"
- }
- }
- },
- "SubShopListResSubShopListResItem": {
- "type": "object",
- "properties": {
- "shop_info": {
- "$ref": "#/definitions/apiAdminBaseInfo",
- "title": "门店信息"
- },
- "province_name": {
- "type": "string",
- "title": "省份"
- },
- "city_name": {
- "type": "string",
- "title": "城市"
- },
- "battery_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "电池押金"
- },
- "car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车辆押金"
- },
- "battery_car_deposit": {
- "type": "integer",
- "format": "int32",
- "title": "车电一体押金"
- },
- "area_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "选择的城市列表"
- }
- }
- },
- "apiAdminBaseInfo": {
- "type": "object",
- "properties": {
- "admin_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID"
- },
- "shop_name": {
- "type": "string",
- "title": "门店名称"
- }
- }
- },
- "apiAllAreaLevelListReq": {
- "type": "object"
- },
- "apiAllAreaLevelListRes": {
- "type": "object",
- "properties": {
- "list": {
- "$ref": "#/definitions/apiAreaLevelEnt",
- "title": "省列表"
- }
- }
- },
- "apiAreaEnt": {
- "type": "object",
- "properties": {
- "province_code": {
- "type": "string",
- "title": "省编号"
- },
- "province_name": {
- "type": "string",
- "title": "省名称"
- },
- "city_code": {
- "type": "string",
- "title": "市编号"
- },
- "city_name": {
- "type": "string",
- "title": "市名称"
- },
- "area_code": {
- "type": "string",
- "title": "区编号"
- },
- "area_name": {
- "type": "string",
- "title": "区名称"
- },
- "area_id": {
- "type": "string",
- "title": "地区code"
- }
- }
- },
- "apiAreaLevelEnt": {
- "type": "object",
- "properties": {
- "area_info": {
- "$ref": "#/definitions/apiAreaEnt",
- "title": "区域信息"
- },
- "children": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiAreaLevelEnt"
- },
- "title": "子级区域"
- }
- }
- },
- "apiAreaListReq": {
- "type": "object",
- "properties": {
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- },
- "open_status": {
- "$ref": "#/definitions/apiYES_NO",
- "title": "开通状态"
- },
- "province_code": {
- "type": "string",
- "title": "省份CODE"
- },
- "city_code": {
- "type": "string",
- "title": "城市CODE"
- }
- }
- },
- "apiAreaListRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "总条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiPackageAreaEnt"
- },
- "title": "地区列表"
- }
- }
- },
- "apiCarModelEnt": {
- "type": "object",
- "properties": {
- "model_name": {
- "type": "string",
- "title": "车型名称"
- },
- "model_code": {
- "type": "string",
- "title": "车型编号"
- },
- "model_images": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "车型图片"
- },
- "model_id": {
- "type": "string",
- "title": "车型ID"
- },
- "data_time": {
- "$ref": "#/definitions/apiDataTime",
- "title": "数据时间"
- }
- }
- },
- "apiChangeListedStatusReq": {
- "type": "object",
- "properties": {
- "package_code": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "套餐code"
- },
- "status": {
- "$ref": "#/definitions/apiLISTED_STATUS",
- "title": "更新的状态"
- }
- }
- },
- "apiChangeListedStatusRes": {
- "type": "object"
- },
- "apiChangeRecommendReq": {
- "type": "object",
- "properties": {
- "package_code": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "套餐code"
- },
- "is_recommend": {
- "$ref": "#/definitions/apiYES_NO",
- "title": "是否推荐"
- }
- }
- },
- "apiChangeRecommendRes": {
- "type": "object"
- },
- "apiCityPackageAddReq": {
- "type": "object",
- "properties": {
- "shop_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID 默认为当前登陆的门店ID"
- },
- "package_list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/CityPackageAddReqAddItem"
- },
- "title": "套餐数组列表"
- },
- "package_category": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
- }
- }
- },
- "apiCityPackageAddRes": {
- "type": "object",
- "properties": {
- "fail_count": {
- "type": "integer",
- "format": "int32",
- "title": "失败的数量"
- },
- "success_count": {
- "type": "integer",
- "format": "int32",
- "title": "成功的数量"
- },
- "total_count": {
- "type": "integer",
- "format": "int32",
- "title": "总请求添加数量"
- }
- }
- },
- "apiCityPackageEnt": {
- "type": "object",
- "properties": {
- "package_info": {
- "$ref": "#/definitions/apiEntPackage",
- "title": "套餐信息"
- },
- "package_category": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "套餐分类 1租电套餐 2车电一体 3租车套餐"
- },
- "area_list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiAreaEnt"
- },
- "title": "支持的区县ID列表"
- },
- "battery_tag_info": {
- "$ref": "#/definitions/apiEntTag",
- "title": "电池标签信息"
- },
- "car_model_info": {
- "$ref": "#/definitions/apiCarModelEnt",
- "title": "车型信息"
- },
- "shop_info": {
- "$ref": "#/definitions/apiEntAdmin",
- "title": "门店信息"
- },
- "is_recommend": {
- "$ref": "#/definitions/apiYES_NO",
- "title": "是否是推荐"
- }
- },
- "title": "城市套餐的信息"
- },
- "apiCityPackageOrderEnt": {
- "type": "object",
- "properties": {
- "order_info": {
- "$ref": "#/definitions/CityPackageOrderEntOrderInfoItem",
- "title": "订单信息"
- },
- "insurance_info": {
- "type": "string",
- "title": "保险信息"
- },
- "city_package_info": {
- "$ref": "#/definitions/apiCityPackageEnt",
- "title": "城市套餐信息"
- }
- },
- "title": "城市套餐订单实体"
- },
- "apiCloseAreaReq": {
- "type": "object",
- "properties": {
- "area_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "地区CODE列表"
- }
- }
- },
- "apiCloseAreaRes": {
- "type": "object"
- },
- "apiDEVICE_USE_TYPE": {
- "type": "string",
- "enum": [
- "DEVICE_USE_TYPE_RESERVED",
- "DEVICE_USE_TYPE_BATTERY",
- "DEVICE_USE_TYPE_ELECTRIC_VEHICLE",
- "DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY"
- ],
- "default": "DEVICE_USE_TYPE_RESERVED",
- "description": "- DEVICE_USE_TYPE_RESERVED: 保留\n - DEVICE_USE_TYPE_BATTERY: 租电/电池\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE: 租车/车辆\n - DEVICE_USE_TYPE_ELECTRIC_VEHICLE_BATTERY: 车电一体/车电一体",
- "title": "设备用途类型 | 对象使用类型"
- },
- "apiDataTime": {
- "type": "object",
- "properties": {
- "ctime": {
- "type": "integer",
- "format": "int32",
- "title": "创建时间 时间戳 秒"
- },
- "utime": {
- "type": "integer",
- "format": "int32",
- "title": "更新时间 时间戳 秒"
- },
- "dtime": {
- "type": "integer",
- "format": "int32",
- "title": "删除时间 时间戳 秒"
- }
- },
- "title": "数据的创建时间、更新时间、删除时间"
- },
- "apiEditPackageReq": {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/definitions/apiCityPackageEnt",
- "title": "套餐数据"
- }
- }
- },
- "apiEditPackageRes": {
- "type": "object"
- },
- "apiEntAdmin": {
- "type": "object",
- "properties": {
- "base_info": {
- "$ref": "#/definitions/apiAdminBaseInfo",
- "title": "门店基本信息"
- }
- },
- "title": "门店实体"
- },
- "apiEntOrder": {
- "type": "object",
- "properties": {
- "order_sn": {
- "type": "string",
- "title": "订单编号"
- },
- "order_id": {
- "type": "integer",
- "format": "int32",
- "title": "订单ID"
- },
- "user_info": {
- "$ref": "#/definitions/apiEntUser",
- "title": "用户信息"
- },
- "shop_info": {
- "$ref": "#/definitions/apiEntAdmin",
- "title": "门店信息"
- },
- "order_time": {
- "$ref": "#/definitions/apiOrderTime",
- "title": "订单时间"
- },
- "pay_method": {
- "$ref": "#/definitions/apiPAY_METHOD",
- "title": "支付方式"
- },
- "order_source": {
- "$ref": "#/definitions/apiREQUEST_SOURCE",
- "title": "订单来源"
- },
- "pay_status": {
- "type": "integer",
- "format": "int32",
- "title": "支付状态"
- }
- },
- "title": "订单实体"
- },
- "apiEntPackage": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "title": "套餐名称"
- },
- "type": {
- "$ref": "#/definitions/apiPackageType",
- "title": "套餐类型"
- },
- "pledge": {
- "type": "integer",
- "format": "int32",
- "title": "押金"
- },
- "total_day": {
- "type": "integer",
- "format": "int32",
- "title": "天数"
- },
- "total_num": {
- "type": "integer",
- "format": "int32",
- "title": "次数"
- },
- "show_money": {
- "type": "integer",
- "format": "int32",
- "title": "套餐显示价格"
- },
- "money": {
- "type": "integer",
- "format": "int32",
- "title": "套餐实际价格,元"
- },
- "exchange_money": {
- "type": "integer",
- "format": "int32",
- "title": "单次换电价格,元"
- },
- "buy_limit": {
- "type": "integer",
- "format": "int32",
- "title": "购买限制数量"
- },
- "listed_status": {
- "$ref": "#/definitions/apiLISTED_STATUS",
- "title": "上下架状态"
- },
- "code": {
- "type": "string",
- "title": "套餐code"
- },
- "stock": {
- "type": "integer",
- "format": "int32",
- "title": "库存"
- },
- "ctime": {
- "type": "integer",
- "format": "int32",
- "title": "创建时间 时间戳 秒"
- },
- "utime": {
- "type": "integer",
- "format": "int32",
- "title": "更新时间 时间戳 秒"
- },
- "dtime": {
- "type": "integer",
- "format": "int32",
- "title": "删除时间 时间戳 秒"
- }
- }
- },
- "apiEntTag": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "title": "标签名称"
- },
- "tag_code": {
- "type": "string",
- "title": "标签code"
- },
- "tag_type": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "标签类型"
- }
- }
- },
- "apiEntUser": {
- "type": "object",
- "properties": {
- "base_info": {
- "$ref": "#/definitions/apiUserBaseInfo"
- }
- },
- "title": "用户实体"
- },
- "apiLISTED_STATUS": {
- "type": "string",
- "enum": [
- "LISTED_STATUS_RESERVED",
- "LISTED_STATUS_LISTED",
- "LISTED_STATUS_UNLISTED"
- ],
- "default": "LISTED_STATUS_RESERVED",
- "description": "- LISTED_STATUS_RESERVED: 保留\n - LISTED_STATUS_LISTED: 上架\n - LISTED_STATUS_UNLISTED: 下架",
- "title": "上下架状态"
- },
- "apiListPackageReq": {
- "type": "object",
- "properties": {
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- },
- "shop_arg": {
- "$ref": "#/definitions/apiShopArg",
- "title": "门店筛选参数"
- },
- "package_category": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "套餐分类"
- },
- "listed_status": {
- "$ref": "#/definitions/apiLISTED_STATUS",
- "title": "上下架状态"
- }
- }
- },
- "apiListPackageRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "总条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiCityPackageEnt"
- },
- "title": "套餐列表数组"
- }
- }
- },
- "apiOpenAreaReq": {
- "type": "object",
- "properties": {
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/OpenAreaReqOpenItem"
- },
- "title": "开通的地区"
- }
- }
- },
- "apiOpenAreaRes": {
- "type": "object"
- },
- "apiOrderListReq": {
- "type": "object",
- "properties": {
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- },
- "shop_arg": {
- "$ref": "#/definitions/apiShopArg",
- "title": "门店筛选参数"
- },
- "order_type": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "订单类型"
- }
- }
- },
- "apiOrderListRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiCityPackageOrderEnt"
- },
- "title": "订单数据数组"
- }
- }
- },
- "apiOrderTime": {
- "type": "object",
- "properties": {
- "ordering_time": {
- "type": "integer",
- "format": "int32",
- "title": "下单时间 时间戳 秒"
- },
- "pay_time": {
- "type": "integer",
- "format": "int32",
- "title": "支付/购买时间 时间戳 秒"
- }
- },
- "title": "订单相关的时间"
- },
- "apiPAY_METHOD": {
- "type": "string",
- "enum": [
- "PAY_METHOD_RESERVED",
- "PAY_METHOD_WECHAT"
- ],
- "default": "PAY_METHOD_RESERVED",
- "description": "- PAY_METHOD_RESERVED: 保留\n - PAY_METHOD_WECHAT: 微信 jsapi",
- "title": "支付方式"
- },
- "apiPackageAreaEnt": {
- "type": "object",
- "properties": {
- "area_info": {
- "$ref": "#/definitions/apiAreaEnt",
- "title": "基本区县信息"
- },
- "open_status": {
- "$ref": "#/definitions/apiYES_NO",
- "title": "开通状态"
- }
- },
- "title": "套餐开通的地区"
- },
- "apiPackageAreaListReq": {
- "type": "object",
- "properties": {
- "package_code": {
- "type": "string",
- "title": "套餐CODE"
- },
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- }
- }
- },
- "apiPackageAreaListRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "总条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/apiAreaEnt"
- },
- "title": "地区列表"
- }
- }
- },
- "apiPackageType": {
- "type": "string",
- "enum": [
- "PACKAGE_TYPE_RESERVED",
- "PACKAGE_TYPE_DAY",
- "PACKAGE_TYPE_NUM",
- "PACKAGE_TYPE_DAY_NUM"
- ],
- "default": "PACKAGE_TYPE_RESERVED",
- "title": "- PACKAGE_TYPE_RESERVED: 保留\n - PACKAGE_TYPE_DAY: 天卡\n - PACKAGE_TYPE_NUM: 次卡\n - PACKAGE_TYPE_DAY_NUM: 天次卡"
- },
- "apiPageArg": {
- "type": "object",
- "properties": {
- "page": {
- "type": "integer",
- "format": "int32",
- "title": "页码 默认1"
- },
- "limit": {
- "type": "integer",
- "format": "int32",
- "title": "每页条数 默认10"
- },
- "order_by": {
- "type": "string",
- "title": "排序字段 默认创建时间"
- },
- "order_type": {
- "type": "string",
- "title": "排序方式 asc/desc 默认asc"
- }
- },
- "title": "PageArg 分页参数"
- },
- "apiREQUEST_SOURCE": {
- "type": "string",
- "enum": [
- "REQUEST_SOURCE_RESERVED",
- "REQUEST_SOURCE_WECHAT"
- ],
- "default": "REQUEST_SOURCE_RESERVED",
- "description": "- REQUEST_SOURCE_RESERVED: 保留\n - REQUEST_SOURCE_WECHAT: 微信小程序",
- "title": "请求来源"
- },
- "apiShopArg": {
- "type": "object",
- "properties": {
- "shop_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID"
- },
- "is_all_level": {
- "type": "boolean",
- "title": "是否包含所有子级层级的子门店"
- }
- },
- "title": "门店筛选参数"
- },
- "apiSubAreaListReq": {
- "type": "object",
- "properties": {
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- },
- "province_code": {
- "type": "string",
- "title": "省份CODE"
- },
- "city_code": {
- "type": "string",
- "title": "城市CODE"
- },
- "shop_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID"
- }
- }
- },
- "apiSubAreaListRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "总条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/SubAreaListResSubItem"
- },
- "title": "列表"
- }
- }
- },
- "apiSubRemoveAreaReq": {
- "type": "object",
- "properties": {
- "shop_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID"
- },
- "area_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "地区area_ids"
- }
- }
- },
- "apiSubRemoveAreaRes": {
- "type": "object"
- },
- "apiSubSelectAreaReq": {
- "type": "object",
- "properties": {
- "shop_id": {
- "type": "integer",
- "format": "int32",
- "title": "门店ID"
- },
- "area_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "地区area_ids"
- }
- }
- },
- "apiSubSelectAreaRes": {
- "type": "object"
- },
- "apiSubShopListReq": {
- "type": "object",
- "properties": {
- "page_arg": {
- "$ref": "#/definitions/apiPageArg",
- "title": "分页参数"
- }
- }
- },
- "apiSubShopListRes": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer",
- "format": "int32",
- "title": "总条数"
- },
- "list": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/SubShopListResSubShopListResItem"
- },
- "title": "门店列表"
- }
- }
- },
- "apiUserBaseInfo": {
- "type": "object",
- "properties": {
- "user_id": {
- "type": "integer",
- "format": "int32",
- "title": "用户id"
- },
- "username": {
- "type": "string",
- "title": "用户名称"
- },
- "phone": {
- "type": "string",
- "title": "用户手机号"
- }
- },
- "title": "用户的基本信息"
- },
- "apiYES_NO": {
- "type": "string",
- "enum": [
- "YES_NO_RESERVED",
- "YES",
- "NO"
- ],
- "default": "YES_NO_RESERVED",
- "title": "- YES_NO_RESERVED: 保留\n - YES: 是/开通/真/拥有/有效/推荐\n - NO: 否/关闭/假/不拥有/无效/不推荐"
- },
- "protobufAny": {
- "type": "object",
- "properties": {
- "@type": {
- "type": "string"
- }
- },
- "additionalProperties": {}
- },
- "rpcStatus": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32"
- },
- "message": {
- "type": "string"
- },
- "details": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/protobufAny"
- }
- }
- }
- }
- }
- }
|