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

165 lines
3.6 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/resellerOrgAdd.dspy>
请求示例
```
{
'userid': 'user_id_abc',
'orgname': 'youchu',
'contactor': 'yuanbuqu',
'contactor_phone': '1803827',
'province_id': '23',
'city_id': '32',
'distinct_id': '23',
'address': '57',
'main_business': '123',
'orgcode': '89',
'license_img': '12',
'id_img': '12',
'org_type': '1',
'accountid': '2300',
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| --------------- | ------ | ---- | ------------ |
| userid | String | 是 | 用户id |
| orgname | String | 是 | 机构名称 |
| contactor | String | 是 | 联系人 |
| contactor_phone | String | 是 | 联系人电话 |
| province_id | String | 是 | 所在省id |
| city_id | String | 是 | 所在城市id |
| distinct_id | String | 是 | 所在地区id |
| address | String | 是 | 地址 |
| main_business | String | 是 | 主营业务描述 |
| orgcode | String | 是 | 组织结构代码 |
| license_img | String | 是 | 营业执照 |
| id_img | String | 是 | 身份证 |
| org_type | String | 是 | 机构类型 |
| accountid | String | 是 | 账号 |
返回示例
```
添加成功
{
"status": true,
"msg": "reseller organization add success"
}
添加失败
{
"status": False,
"msg": "reseller organization add failed"
}
```
###
### 查找分销商机构
请求URL
<http://47.93.12.75:8888/reseller/resellerOrgSearch.dspy>
请求示例
```
{
'userid': 'user_id_abc'
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| ------ | ------ | ---- | ------ |
| userid | String | 是 | 用户id |
返回示例
```
查询成功
{
"status": True,
"msg": "reseller organization search success",
"data": [{"orgid": "qwerty"...}]
}
查询失败
{
"status": False,
"msg": "reseller organization search failed",
"data": ""
}
```
###
### 更新分销商机构
请求URL
http://47.93.12.75:8888/reseller/resellerOrgUpdate.dspy
请求示例
```
{
'id': 'UqvuPal1zx77XvIUDheRw',
'orgname': '111youchu',
'contactor': '111yuanbuqu',
'contactor_phone': '1803827',
'province_id': '23',
'city_id': '32',
'distinct_id': '23',
'address': '57',
'main_business': '123',
'orgcode': '89',
'license_img': '12',
'id_img': '12',
'org_type': '1',
'accountid': '2300',
}
```
请求参数说明
| 参数 | 类型 | 必填 | 描述 |
| --------------- | ------ | ---- | ------------ |
| id | String | 是 | 机构id |
| orgname | String | 否 | 机构名称 |
| contactor | String | 否 | 联系人 |
| contactor_phone | String | 否 | 联系人电话 |
| province_id | String | 否 | 所在省id |
| city_id | String | 否 | 所在城市id |
| distinct_id | String | 否 | 所在地区id |
| address | String | 否 | 地址 |
| main_business | String | 否 | 主营业务描述 |
| orgcode | String | 否 | 组织结构代码 |
| license_img | String | 否 | 营业执照 |
| id_img | String | 否 | 身份证 |
| org_type | String | 否 | 机构类型 |
| accountid | String | 否 | 账号 |
返回示例
```
更新成功
{
"status": true,
"msg": "reseller organization update success"
}
更新失败
{
"status": false,
"msg": "reseller organization update failed"
}
```
###