POST api/v1/Commission/BindRefereeCode
绑定优惠码
请求信息(Request)
URI 参数
None.
Body 参数
RefereeCodeBindDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| ID | integer |
None. |
|
| UserId |
用户id |
integer |
None. |
| AppId |
AppId |
string |
None. |
| OpenId |
OpenId |
string |
None. |
| UnionId |
UnionId |
string |
None. |
| Code |
Code |
string |
None. |
| CreateTime |
CreateTime |
date |
None. |
请求格式
application/json, text/json
Sample:
{
"ID": 1,
"UserId": 1,
"AppId": "sample string 2",
"OpenId": "sample string 3",
"UnionId": "sample string 4",
"Code": "sample string 5",
"CreateTime": "2025-11-06T04:08:03.170148+08:00"
}
application/xml, text/xml
Sample:
<RefereeCodeBindDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs"> <AppId>sample string 2</AppId> <Code>sample string 5</Code> <CreateTime>2025-11-06T04:08:03.170148+08:00</CreateTime> <ID>1</ID> <OpenId>sample string 3</OpenId> <UnionId>sample string 4</UnionId> <UserId>1</UserId> </RefereeCodeBindDTO>
application/x-www-form-urlencoded
Sample:
响应信息(Response)
资源描述
RequestResult| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Status": 1,
"Message": "sample string 2",
"Total": 3
}
application/xml, text/xml
Sample:
<RequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application"> <Message>sample string 2</Message> <Status>1</Status> <Total>3</Total> </RequestResult>