简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=discount.batch-discount.index
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": [{
"id": 2,
"category_ids": [],
"uniacid": 1,
"level_discount_type": 1,
"discount_method": 1,
"discount_value": [1, 2, 3, 4],
"created_at": "2020-05-28 17:14:42",
"updated_at": "2020-05-28 17:14:42"
}, {
"id": 3,
"category_ids": [],
"uniacid": 1,
"level_discount_type": 1,
"discount_method": 2,
"discount_value": [11, 22, 33, 44],
"created_at": "2020-05-28 17:15:07",
"updated_at": "2020-05-28 17:15:07"
}, {
"id": 4,
"category_ids": [{
"id": 17,
"name": "1的分类3"
}, {
"id": 28,
"name": "分类11"
}],
"uniacid": 1,
"level_discount_type": 1,
"discount_method": 1,
"discount_value": [33, 44, 55, 66],
"created_at": "2020-05-28 17:15:38",
"updated_at": "2020-05-28 17:15:38"
}]
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 折扣表ID |
category_ids[id] | int | 分类ID |
category_ids[name] | string | 分类名称ID |
uniacid | int | |
level_discount_type | int | 折扣类型 1.会员等级 |
discount_method | int | 折扣方式 1.折扣 2.固定金额 |
discount_value | int | 折扣值 |
created_at | time | |
updated_at | time |
备注:
- 更多返回错误代码请看首页的错误代码描述