kboss/b/reseller/分销商折扣接口说明.md
2025-07-16 14:27:17 +08:00

192 lines
3.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 增加分销商折扣配置
请求URL
http://47.93.12.75:8888/reseller/resellerDiscountAdd.dspy
请求示例
```
{
'resellerid': '9',
'productid': '6',
'discount': 0.75,
'income_pzt': 0.85,
'start_date': '2023-01-01',
'end_date': '2023-01-01',
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| ---------- | ------ | ---- | ---------- |
| resellerid | String | 是 | 分销商id |
| productid | String | 是 | 产品id |
| discount | String | 是 | 折扣率 |
| income_pzt | String | 是 | 收入百分比 |
| start_date | Date | 是 | 起效日期 |
| end_date | Date | 是 | 失效日期 |
返回示例
```
添加成功
{
"status": true,
"msg": "reseller discount add success"
}
添加失败
{
"status": False,
"msg": "reseller discount add failed"
}
```
###
### 查询分销商折扣配置
请求URL
http://47.93.12.75:8888/reseller/resellerDiscountSearch.dspy
请求示例
```
{
'resellerid': '9'
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| ---------- | ------ | ---- | -------- |
| resellerid | String | 是 | 分销商id |
返回示例
```
查询成功
{
"status": true,
"msg": "reseller discount search success",
"data": [
{
"id": "000012",
"resellerid": "9",
"productid": "9",
"discount": 0.77,
"income_pzt": 0.88,
"start_date": "2023-01-01",
"end_date": "2023-01-01",
"del_flg": "0",
"create_at": "00000001683190334000"
},
{
"id": "000013",
"resellerid": "9",
"productid": "8",
"discount": 0.66,
"income_pzt": 0.77,
"start_date": "2023-01-01",
"end_date": "2024-01-01",
"del_flg": "0",
"create_at": "00000001683189333000"
}
]
}
查询失败
{
"status": False,
"msg": "reseller discount search failed",
"data": ""
}
```
###
### 更新分销商折扣配置
请求URL
http://47.93.12.75:8888/reseller/resellerDiscountUpdate.dspy
请求示例
```
{
'id': '123456',
'resellerid': '9',
'productid': '9',
'discount': 0.77,
'income_pzt': 0.89,
'start_date': '2023-01-01',
'end_date': '2024-01-01',
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| ---------- | ------ | ---- | ---------- |
| id | String | 是 | id |
| resellerid | String | 否 | 分销商id |
| productid | String | 否 | 产品id |
| discount | String | 否 | 折扣率 |
| income_pzt | String | 否 | 收入百分比 |
| start_date | Date | 否 | 起效日期 |
| end_date | Date | 否 | 失效日期 |
返回示例
```
更新成功
{
"status": true,
"msg": "reseller discount update success"
}
更新失败
{
"status": False,
"msg": "reseller discount update failed"
}
```
###
### 删除分销商折扣配置
请求URL
http://47.93.12.75:8888/reseller/resellerDiscountDelete.dspy
请求示例
```
{
'id': ''
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| ---- | ------ | ---- | ------ |
| id | String | 是 | 配置id |
返回示例
```
删除成功
{
"status": true,
"msg": "reseller discount delete success"
}
删除失败
{
"status": False,
"msg": "reseller discount delete failed"
}
```