代理商
## 代理商-添加
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:UserPage | 是 |
| _method | string | 固定值:Add | 是 |
| account | string | 账号 | 是 |
| password | string | 密码 | 是 |
| checkpassword | string | 重复密码 | 是 |
| phone | string | 绑定手机 | 否 |
| level | string | 会员等级 | 是 |
| createtime | string | 激活时间 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[],
}
```
## 代理商-管理
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:UserPage | 是 |
| _method | string | 固定值:Get | 是 |
| xy_uname | string | 账号 | 否 |
| xy_sup_uname | string | 推荐人账号 | 否 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[{
"xy_uid":100,//用户编号
"xy_uname":"xxx",//用户名称
"xy_level_name":"xxxx",//等级
"xy_reg_time":"XXX",//激活时间
"xy_total_withdraw":100,//累计提现
"xy_sup_uname":"xxx"//推荐人
}]
}
```
## 代理商-详情
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:UserPage | 是 |
| _method | string | 固定值:GetByUid | 是 |
| xy_uid | int | 用户编号 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":{
"xy_uid":200,//用户id
"xy_uname":"xxx",//用户名称
"xy_level_name":"xxxx",//等级
"xy_reg_time":"XXX",//激活时间
"xy_total_withdraw":100,//累计提现
"xy_balance":100,//可提现
"xy_conduct_withdraw":100,//提现中
"xy_name":"xxx",//姓名
"xy_phone":"xxx",//手机号
"xy_alipay_account":"xxx",//支付宝账号
"xy_sup_uname":"xxx",//推荐人
"xy_score":"xxx",//积分
"xy_add_withdraw":"xxx",//增加提现
"xy_ip":"xxx",//ip
"xy_area":"xxx",//区域
}
}
```
## 代理商-修改
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:UserPage | 是 |
| _method | string | 固定值:Update | 是 |
| xy_uid | int | 用户编号 | 是 |
| xy_level | int | 星级id | 否 |
| xy_name | string | 姓名 | 否 |
| xy_phone| string | 手机号 | 否 |
| xy_alipay_account| string | 支付宝账号 | 否 |
| xy_sup_uname| string | 推荐人账号 | 否 |
| xy_password| string | 密码 | 否 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[],
}
```
## 奖惩
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:UserPage | 是 |
| _method | string | 固定值:RewardsPunishments| 是 |
| xy_uid | int | 用户编号 | 是 |
| xy_type | int | 类型 0奖励 1惩罚 | 是 |
| xy_money | double | 金额 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[],
}
```