12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739 |
- {
- "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": {
- "province_code": {
- "type": "string",
- "title": "区域信息\n省编号"
- },
- "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"
- },
- "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_tag_info": {
- "$ref": "#/definitions/apiEntTag",
- "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": {
- "tag_name": {
- "type": "string",
- "title": "标签名称"
- },
- "tag_code": {
- "type": "string",
- "title": "标签code"
- },
- "tag_type": {
- "$ref": "#/definitions/apiDEVICE_USE_TYPE",
- "title": "标签类型"
- },
- "tag_images": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "tag的图片"
- }
- }
- },
- "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"
- }
- }
- }
- }
- }
- }
|