1.获取品牌可售平台设置列表
接口名: /BrandSaleController/getBrandSaleList.do
入参
属性名称 |
类型 |
例子 |
说明 |
是否必填 |
brandId |
int |
12 |
品牌ID |
否 |
salePlatform |
int |
1 |
1、线上线下均可售 2、仅线上可售 3、仅线下可售 |
否 |
storeId |
int |
1 |
线下门店Id |
否 |
isAutoAllocation |
int |
0 |
0、关闭自动生成调拨单状态 1、开启自动生成调拨单状态 |
否 |
isOnline |
int |
0 |
0、不是线上展示 1、是线上展示 |
否 |
page |
int |
1 |
第几页 |
否 |
size |
int |
20 |
每页条数 |
否 |
返回
{
"code": 200,
"data": {
"list": [
{
"brandId": 1,
"brandName": "zhang",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
},
{
"brandId": 2,
"brandName": "10x1",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
},
{
"brandId": 3,
"brandName": "3summer",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
},
{
"brandId": 4,
"brandName": "5CM",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
},
{
"brandId": 5,
"brandName": "AAAA",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
},
{
"brandId": 6,
"brandName": "ACROSS!",
"brandStoreAllocationBOs": [],
"isOnline": -1,
"salePlatform": 1,
"storeAllocationNames": [
"南京艾尚:开启",
"南京艾尚YohoKids:开启"
],
"storeNames": [
"南京艾尚",
"南京艾尚YohoKids"
]
}
],
"page": 1,
"size": 10,
"total": 1855,
"totalPage": 186
},
"message": "操作成功"
}
2.保存品牌可售平台设置
接口名: /BrandSaleController/saveBrandSale.do
入参
属性名称 |
类型 |
例子 |
说明 |
是否必填 |
brandId |
int |
12 |
品牌ID |
否 |
brandName |
String |
12 |
品牌名称 |
否 |
salePlatform |
int |
1 |
1、线上线下均可售 2、仅线上可售 3、仅线下可售 |
否 |
storeAllocations |
json对象数组 |
[{"storeId":12,"isAutoAllocation":0}] |
线下门店ID和自动调拨构成json对象数组 |
否 |
isOnline |
int |
0 |
0、不是线上展示 1、是线上展示 |
否 |
返回
{
"code": 200,
"data": 3,
"message": "success."
}
3.导出品牌可售平台设置 xls
接口名:/batch/export
入参
{
"type":"brandSaleExport",
"queryConf":{
"brandId":12,
"salePlatform":1,
"storeId":5,
"isAutoAllocation":1,
"isOnline":1
}
}
属性名称 |
类型 |
例子 |
说明 |
type |
String |
"brandSaleExport" |
导出数据(必须) |
queryConf |
String |
"{...}" |
查询条件(必须) |
错误编码
错误码code |
消息 |
说明 |
500 |
导出失败 |
|
200 |
导出成功 |
|
返回 xls表格
品牌 |
可售平台 |
线下门店 |
自动生成调拨单状态 |
线上展示 |
4.获取所有线下门店
接口名: /StoreController/getStoreInfos.do
入参
返回
{
"code": 200,
"message": "success",
"data": [
{
"id": 10,
"storeCode": 1,
"storeName": "南京艾尚Yoho!Buy",
"warehouseId": 10,
"warehouseName": "南京艾尚Yoho!Buy"
},
{
"id": 12,
"storeCode": 2,
"storeName": "南京艾尚YohoKids",
"warehouseId": 12,
"warehouseName": "南京艾尚YohoKids"
}
]
}
5.查询品牌信息
接口名: /BrandSaleController/queryBrands.do
入参
属性名称 |
类型 |
例子 |
说明 |
是否必填 |
brandIds |
List |
|
品牌ID |
否 |
brandName |
String |
12 |
品牌名称(完全匹配) |
否 |
brandLevel |
String |
KA |
KA,A,B,C |
否 |
返回
{
"code": 200,
"data": {
"list": [
{
id:"品牌Id",
brandIco:"品牌LOGO",
brandName:"品牌名称",
brandNameEn:"英文名称",
brandLevel:"品牌级别",
mark:"调性分"
}
],
"page": 1,
"size": 10,
"total": 79,
"totalPage": 8
},
"message": "操作成功"
}
6.查询所有品牌和模糊匹配查询品牌接口
接口名: /BrandSaleController/getBrandNames.do
入参
属性名称 |
类型 |
例子 |
说明 |
idName |
String |
43 |
品牌id或者品牌名称 |
返回
{
"code": 200,
"data": [
{
"brandId": "2390",
"brandName": "朱4",
"brandNameEn": "z4"
},
{
"brandId": "2388",
"brandName": "朱3",
"brandNameEn": "z3"
},
{
"brandId": "2386",
"brandName": "朱2",
"brandNameEn": "z2"
},
{
"brandId": "2384",
"brandName": "朱1",
"brandNameEn": "z1"
},
{
"brandId": "2382",
"brandName": "经销品牌",
"brandNameEn": "jigxoa"
}
],
"message": "操作成功"
}