1.获取属性列表
接口
POST https://open.jisuapp.cn/business/Shop/GetAttributesList
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
page | int | Y | 页码 |
page_size | int | Y | 页数 |
id | int | N | 查询单条属性 |
返回参数
参数 | 类型 | 说明 |
---|---|---|
status | int | 状态码 0成功 1失败 |
selected_type | string | 0->多选,1->单选 |
elem_list | array | 属性下的分类列表 |
elem_list.list | array | 属性下分类的元素列表 |
symbol | int | 变价价格符号,0->加价,1->减价 |
参数返回示例
{
"status": 0,
"data": [
{
"id": "2703",
"app_id": "FatFitm5Tm",
"name": "做法",
"selected_type": "1",
"is_default": "1",
"add_time": "1564482016",
"update_time": "0",
"is_deleted": "0",
"elem_list": [
{
"category_id": "2",
"name": "贵族式",
"list": [
{
"id": "7",
"name": "呛菜",
"category_id": "2",
"attributes_id": "2703",
"symbol": "0",
"category_name": "贵族式"
}
]
}
]
}
],
"is_more": 0,
"current_page": 1,
"count": "1",
"total_page": 1
}
2.编辑属性
接口
POST https://open.jisuapp.cn/business/Shop/AddAttributes
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
selected_type | int | Y | 0->多选,1->单选 |
name | string | Y | 名称 |
id | int | N | 编辑单条属性 |
3.删除属性
接口
POST https://open.jisuapp.cn/business/Shop/DelAttributes
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
id | int | Y |
4.获取属性分类列表
接口
POST https://open.jisuapp.cn/business/Shop/GetAttributesCategoryList
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
page | int | Y | 页码 |
page_size | int | Y | 页数 |
id | int | N | 查询单条属性分类 |
attributes_id | int | N | 查询单条属性下的所有分类 |
5.编辑属性分类
接口
POST https://open.jisuapp.cn/business/Shop/AddAttributesCategory
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
attributes_id | int | Y | 属性ID |
name | string | Y | 名称 |
id | int | N | 编辑单条属性分类 |
6.删除属性分类
接口
POST https://open.jisuapp.cn/business/Shop/DelAttributesCategory
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
id | int | Y |
7.获取属性元素列表
接口
POST https://open.jisuapp.cn/business/Shop/GetAttributesElemList
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
page | int | Y | 页码 |
page_size | int | Y | 页数 |
id | int | N | 查询单条属性元素 |
attributes_id | int | Y | 查询单条属性下的所有元素 |
category_id | int | N | 查询单条分类下的所有元素 |
返回参数
参数 | 类型 | 说明 |
---|---|---|
status | int | 状态码 0成功 1失败 |
selected_type | string | 0->多选,1->单选 |
elem_list | array | 属性下的分类列表 |
elem_list.list | array | 属性下分类的元素列表 |
symbol | int | 变价价格符号,0->加价,1->减价 |
参数返回示例
{
"status": 0,
"data": [
{
"id": "7",
"app_id": "FatFitm5Tm",
"name": "呛菜",
"attributes_id": "2703",
"category_id": "2",
"symbol": "0",
"price": "3.00",
"add_time": "1564626556",
"update_time": "0",
"is_deleted": "0",
"category_name": "贵族式",
"attributes_name": "做法"
}
],
"is_more": 0,
"current_page": 1,
"count": "1",
"total_page": 1
}
8.编辑属性元素
接口
POST https://open.jisuapp.cn/business/Shop/AddAttributesElem
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
attributes_id | int | Y | 属性ID |
category_id | int | Y | 分类ID |
symbol | int | Y | 变价价格符号,0->加价,1->减价 |
price | decimal(2,10) | Y | 变价价格 |
name | string | Y | 名称 |
id | int | N | 编辑单条属性分类 |
9.删除属性元素
接口
POST https://open.jisuapp.cn/business/Shop/DelAttributesElem
请求参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
id | int | Y |