GET api/v1/Coupon/GetVipCoupons?name={name}&isUsed={isUsed}&pageIndex={pageIndex}&pageSize={pageSize}&appId={appId}
[需登录]获取我的优惠券列表
请求信息(Request)
URI 参数
| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| name |
会员名称 |
string |
Required |
| isUsed |
是否过期 |
boolean |
Default value is False |
| pageIndex |
页码,从0开始 |
integer |
Default value is 1 |
| pageSize |
每页记录数 |
integer |
Default value is 15 |
| appId |
appId |
string |
None. |
Body 参数
None.
响应信息(Response)
资源描述
RequestResultOfIEnumerableOfQueryVipCouponDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | QueryVipCouponDTO 集合 |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": [
{
"Title": "sample string 1",
"HotelName": "sample string 2",
"VipName": "sample string 3",
"BeginDate": "2025-12-13T12:00:39.5134098+08:00",
"ExpireDate": "2025-12-13T12:00:39.5134098+08:00",
"Amount": 6.0
},
{
"Title": "sample string 1",
"HotelName": "sample string 2",
"VipName": "sample string 3",
"BeginDate": "2025-12-13T12:00:39.5134098+08:00",
"ExpireDate": "2025-12-13T12:00:39.5134098+08:00",
"Amount": 6.0
}
],
"Status": 1,
"Message": "sample string 2",
"Total": 3
}
application/xml, text/xml
Sample:
<RequestResultOfArrayOfQueryVipCouponDTO6NgmDdgv 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:QueryVipCouponDTO>
<d2p1:Amount>6</d2p1:Amount>
<d2p1:BeginDate>2025-12-13T12:00:39.5134098+08:00</d2p1:BeginDate>
<d2p1:ExpireDate>2025-12-13T12:00:39.5134098+08:00</d2p1:ExpireDate>
<d2p1:HotelName>sample string 2</d2p1:HotelName>
<d2p1:Title>sample string 1</d2p1:Title>
<d2p1:VipName>sample string 3</d2p1:VipName>
</d2p1:QueryVipCouponDTO>
<d2p1:QueryVipCouponDTO>
<d2p1:Amount>6</d2p1:Amount>
<d2p1:BeginDate>2025-12-13T12:00:39.5134098+08:00</d2p1:BeginDate>
<d2p1:ExpireDate>2025-12-13T12:00:39.5134098+08:00</d2p1:ExpireDate>
<d2p1:HotelName>sample string 2</d2p1:HotelName>
<d2p1:Title>sample string 1</d2p1:Title>
<d2p1:VipName>sample string 3</d2p1:VipName>
</d2p1:QueryVipCouponDTO>
</Data>
</RequestResultOfArrayOfQueryVipCouponDTO6NgmDdgv>