GET api/v1/Coupon/CreateRedShare?type={type}&itemId={itemId}
[需登录]获取要纷享的红包
请求信息(Request)
URI 参数
| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| type |
类型 |
RedPacketType |
Required |
| itemId |
对应id |
integer |
Required |
Body 参数
None.
响应信息(Response)
资源描述
RequestResultOfRedPacketShareDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | RedPacketShareDTO |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": {
"ID": 1,
"Code": "sample string 2",
"UserId": 3,
"ItemID": 4,
"RedPacketType": 0,
"Title": "sample string 5",
"Info": "sample string 6",
"Total": 7,
"Remain": 8,
"Amount": 9.0,
"CreateTime": "2025-11-06T04:21:32.7476179+08:00"
},
"Status": 1,
"Message": "sample string 2",
"Total": 3
}
application/xml, text/xml
Sample:
<RequestResultOfRedPacketShareDTO6NgmDdgv 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>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
<d2p1:Amount>9</d2p1:Amount>
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:CreateTime>2025-11-06T04:21:32.7476179+08:00</d2p1:CreateTime>
<d2p1:ID>1</d2p1:ID>
<d2p1:Info>sample string 6</d2p1:Info>
<d2p1:ItemID>4</d2p1:ItemID>
<d2p1:RedPacketType>OrderShare</d2p1:RedPacketType>
<d2p1:Remain>8</d2p1:Remain>
<d2p1:Title>sample string 5</d2p1:Title>
<d2p1:Total>7</d2p1:Total>
<d2p1:UserId>3</d2p1:UserId>
</Data>
</RequestResultOfRedPacketShareDTO6NgmDdgv>