GET api/v1/User/GiftEnableBoxs?hotelId={hotelId}&checkInDate={checkInDate}&getFreeGift={getFreeGift}&dealerId={dealerId}
[需登录]返回所有可用法宝
请求信息(Request)
URI 参数
名称 | 描述 | 类型 | 备注 |
---|---|---|---|
hotelId |
酒店id |
integer |
Required |
checkInDate |
如果有入住日期,将按法宝使用规则返回当天的法宝价格 |
date |
Required |
getFreeGift |
默认null:返回所有可用,true:获取免费法宝,false:获取普通法宝 |
boolean |
None. |
dealerId |
定向商家id |
integer |
None. |
Body 参数
None.
响应信息(Response)
资源描述
RequestResultOfIEnumerableOfGiftBoxDTO名称 | 描述 | 类型 | 备注 |
---|---|---|---|
Data | GiftBoxDTO 集合 |
None. |
|
Status |
状态(0:成功,1:失败) |
integer |
None. |
Message |
导致失败的相关消息 |
string |
None. |
Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{ "Data": [ { "ID": 1, "GiftTypeID": 2, "UserID": 3, "DealerId": 1, "DealerName": "sample string 4", "HotelId": 1, "ShopName": "sample string 5", "AddTime": "2025-05-04T18:17:43.6054067+08:00", "ExpireTime": "2025-05-04T18:17:43.6054067+08:00", "HasUsed": true, "GiftValue": 9.0, "GiftName": "sample string 10", "Info": "sample string 11", "Reason": "sample string 12", "AddByUid": 13, "AddByName": "sample string 14", "IsExpire": false, "IsWillExpire": true, "Tag": 0, "UseTime": "2025-05-04T18:17:43.6054067+08:00", "UseDealerId": 1, "RuleId": 15, "PmsHotelVipCardType": "sample string 16" }, { "ID": 1, "GiftTypeID": 2, "UserID": 3, "DealerId": 1, "DealerName": "sample string 4", "HotelId": 1, "ShopName": "sample string 5", "AddTime": "2025-05-04T18:17:43.6054067+08:00", "ExpireTime": "2025-05-04T18:17:43.6054067+08:00", "HasUsed": true, "GiftValue": 9.0, "GiftName": "sample string 10", "Info": "sample string 11", "Reason": "sample string 12", "AddByUid": 13, "AddByName": "sample string 14", "IsExpire": false, "IsWillExpire": true, "Tag": 0, "UseTime": "2025-05-04T18:17:43.6054067+08:00", "UseDealerId": 1, "RuleId": 15, "PmsHotelVipCardType": "sample string 16" } ], "Status": 1, "Message": "sample string 2", "Total": 3 }
application/xml, text/xml
Sample:
<RequestResultOfArrayOfGiftBoxDTO6NgmDdgv 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:GiftBoxDTO> <d2p1:AddByName>sample string 14</d2p1:AddByName> <d2p1:AddByUid>13</d2p1:AddByUid> <d2p1:AddTime>2025-05-04T18:17:43.6054067+08:00</d2p1:AddTime> <d2p1:DealerId>1</d2p1:DealerId> <d2p1:DealerName>sample string 4</d2p1:DealerName> <d2p1:ExpireTime>2025-05-04T18:17:43.6054067+08:00</d2p1:ExpireTime> <d2p1:GiftName>sample string 10</d2p1:GiftName> <d2p1:GiftTypeID>2</d2p1:GiftTypeID> <d2p1:GiftValue>9</d2p1:GiftValue> <d2p1:HasUsed>true</d2p1:HasUsed> <d2p1:HotelId>1</d2p1:HotelId> <d2p1:ID>1</d2p1:ID> <d2p1:Info>sample string 11</d2p1:Info> <d2p1:PmsHotelVipCardType>sample string 16</d2p1:PmsHotelVipCardType> <d2p1:Reason>sample string 12</d2p1:Reason> <d2p1:RuleId>15</d2p1:RuleId> <d2p1:ShopName>sample string 5</d2p1:ShopName> <d2p1:Tag>MemberCard</d2p1:Tag> <d2p1:UseDealerId>1</d2p1:UseDealerId> <d2p1:UseTime>2025-05-04T18:17:43.6054067+08:00</d2p1:UseTime> <d2p1:UserID>3</d2p1:UserID> </d2p1:GiftBoxDTO> <d2p1:GiftBoxDTO> <d2p1:AddByName>sample string 14</d2p1:AddByName> <d2p1:AddByUid>13</d2p1:AddByUid> <d2p1:AddTime>2025-05-04T18:17:43.6054067+08:00</d2p1:AddTime> <d2p1:DealerId>1</d2p1:DealerId> <d2p1:DealerName>sample string 4</d2p1:DealerName> <d2p1:ExpireTime>2025-05-04T18:17:43.6054067+08:00</d2p1:ExpireTime> <d2p1:GiftName>sample string 10</d2p1:GiftName> <d2p1:GiftTypeID>2</d2p1:GiftTypeID> <d2p1:GiftValue>9</d2p1:GiftValue> <d2p1:HasUsed>true</d2p1:HasUsed> <d2p1:HotelId>1</d2p1:HotelId> <d2p1:ID>1</d2p1:ID> <d2p1:Info>sample string 11</d2p1:Info> <d2p1:PmsHotelVipCardType>sample string 16</d2p1:PmsHotelVipCardType> <d2p1:Reason>sample string 12</d2p1:Reason> <d2p1:RuleId>15</d2p1:RuleId> <d2p1:ShopName>sample string 5</d2p1:ShopName> <d2p1:Tag>MemberCard</d2p1:Tag> <d2p1:UseDealerId>1</d2p1:UseDealerId> <d2p1:UseTime>2025-05-04T18:17:43.6054067+08:00</d2p1:UseTime> <d2p1:UserID>3</d2p1:UserID> </d2p1:GiftBoxDTO> </Data> </RequestResultOfArrayOfGiftBoxDTO6NgmDdgv>