POST api/v1/SelfCheckin/GetGoodsPrices
获取酒店每日产品价
请求信息(Request)
URI 参数
None.
Body 参数
RoomTypeGoodsQuery| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| hotelId | integer |
None. |
|
| checkInDate | date |
None. |
|
| checkOutDate | date |
None. |
|
| memberType | MemberType |
None. |
|
| pmsRoomTypeId |
房型id |
string |
None. |
| channelId |
pms渠道参数 |
string |
None. |
| hotelVipId |
当会员id有值的时候,查询会员价格 |
string |
None. |
| hotelVipCardType |
酒店会员类型id |
string |
None. |
| onlyCanCheckIn |
是否只返回能入住的房型 |
boolean |
None. |
| isHourRoom |
是否钟点房预定 |
boolean |
None. |
请求格式
application/json, text/json
Sample:
{
"hotelId": 1,
"checkInDate": "2025-11-06T04:20:23.1698744+08:00",
"checkOutDate": "2025-11-06T04:20:23.1698744+08:00",
"memberType": 0,
"pmsRoomTypeId": "sample string 4",
"channelId": "sample string 5",
"hotelVipId": "sample string 6",
"hotelVipCardType": "sample string 7",
"onlyCanCheckIn": true,
"isHourRoom": true
}
application/xml, text/xml
Sample:
<RoomTypeGoodsQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs.Query"> <channelId>sample string 5</channelId> <checkInDate>2025-11-06T04:20:23.1698744+08:00</checkInDate> <checkOutDate>2025-11-06T04:20:23.1698744+08:00</checkOutDate> <hotelId>1</hotelId> <hotelVipCardType>sample string 7</hotelVipCardType> <hotelVipId>sample string 6</hotelVipId> <isHourRoom>true</isHourRoom> <memberType>Normal</memberType> <onlyCanCheckIn>true</onlyCanCheckIn> <pmsRoomTypeId>sample string 4</pmsRoomTypeId> </RoomTypeGoodsQuery>
application/x-www-form-urlencoded
Sample:
响应信息(Response)
资源描述
酒店房间列表
RequestResultOfListOfRoomTypeGoodsDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | RoomTypeGoodsDTO 集合 |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": [
{
"ID": 1,
"DealerId": 2,
"HotelId": 3,
"RoomTypeId": 4,
"UniqueID": "sample string 5",
"PmsRoomTypeId": "sample string 6",
"Title": "sample string 7",
"Description": "sample string 8",
"Images": [
"sample string 1",
"sample string 2"
],
"IsDisable": true,
"IsClose": true,
"CreateTime": "2025-11-06T04:20:23.1854634+08:00",
"RemainRoomCount": 12,
"TotalPrice": 13.0,
"DayPrices": [
{
"Date": "2025-11-06T04:20:23.1854634+08:00",
"Price": 2.0,
"OriginalPrice": 3.0
},
{
"Date": "2025-11-06T04:20:23.1854634+08:00",
"Price": 2.0,
"OriginalPrice": 3.0
}
]
},
{
"ID": 1,
"DealerId": 2,
"HotelId": 3,
"RoomTypeId": 4,
"UniqueID": "sample string 5",
"PmsRoomTypeId": "sample string 6",
"Title": "sample string 7",
"Description": "sample string 8",
"Images": [
"sample string 1",
"sample string 2"
],
"IsDisable": true,
"IsClose": true,
"CreateTime": "2025-11-06T04:20:23.1854634+08:00",
"RemainRoomCount": 12,
"TotalPrice": 13.0,
"DayPrices": [
{
"Date": "2025-11-06T04:20:23.1854634+08:00",
"Price": 2.0,
"OriginalPrice": 3.0
},
{
"Date": "2025-11-06T04:20:23.1854634+08:00",
"Price": 2.0,
"OriginalPrice": 3.0
}
]
}
],
"Status": 1,
"Message": "sample string 2",
"Total": 3
}
application/xml, text/xml
Sample:
<RequestResultOfArrayOfRoomTypeGoodsDTO6NgmDdgv 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:RoomTypeGoodsDTO>
<d2p1:CreateTime>2025-11-06T04:20:23.1854634+08:00</d2p1:CreateTime>
<d2p1:DayPrices>
<d2p1:HotelRoomDayPriceDTO>
<d2p1:Date>2025-11-06T04:20:23.1854634+08:00</d2p1:Date>
<d2p1:OriginalPrice>3</d2p1:OriginalPrice>
<d2p1:Price>2</d2p1:Price>
</d2p1:HotelRoomDayPriceDTO>
<d2p1:HotelRoomDayPriceDTO>
<d2p1:Date>2025-11-06T04:20:23.1854634+08:00</d2p1:Date>
<d2p1:OriginalPrice>3</d2p1:OriginalPrice>
<d2p1:Price>2</d2p1:Price>
</d2p1:HotelRoomDayPriceDTO>
</d2p1:DayPrices>
<d2p1:DealerId>2</d2p1:DealerId>
<d2p1:Description>sample string 8</d2p1:Description>
<d2p1:HotelId>3</d2p1:HotelId>
<d2p1:ID>1</d2p1:ID>
<d2p1:Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:Images>
<d2p1:IsClose>true</d2p1:IsClose>
<d2p1:IsDisable>true</d2p1:IsDisable>
<d2p1:PmsRoomTypeId>sample string 6</d2p1:PmsRoomTypeId>
<d2p1:RemainRoomCount>12</d2p1:RemainRoomCount>
<d2p1:RoomTypeId>4</d2p1:RoomTypeId>
<d2p1:Title>sample string 7</d2p1:Title>
<d2p1:TotalPrice>13</d2p1:TotalPrice>
<d2p1:UniqueID>sample string 5</d2p1:UniqueID>
</d2p1:RoomTypeGoodsDTO>
<d2p1:RoomTypeGoodsDTO>
<d2p1:CreateTime>2025-11-06T04:20:23.1854634+08:00</d2p1:CreateTime>
<d2p1:DayPrices>
<d2p1:HotelRoomDayPriceDTO>
<d2p1:Date>2025-11-06T04:20:23.1854634+08:00</d2p1:Date>
<d2p1:OriginalPrice>3</d2p1:OriginalPrice>
<d2p1:Price>2</d2p1:Price>
</d2p1:HotelRoomDayPriceDTO>
<d2p1:HotelRoomDayPriceDTO>
<d2p1:Date>2025-11-06T04:20:23.1854634+08:00</d2p1:Date>
<d2p1:OriginalPrice>3</d2p1:OriginalPrice>
<d2p1:Price>2</d2p1:Price>
</d2p1:HotelRoomDayPriceDTO>
</d2p1:DayPrices>
<d2p1:DealerId>2</d2p1:DealerId>
<d2p1:Description>sample string 8</d2p1:Description>
<d2p1:HotelId>3</d2p1:HotelId>
<d2p1:ID>1</d2p1:ID>
<d2p1:Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:Images>
<d2p1:IsClose>true</d2p1:IsClose>
<d2p1:IsDisable>true</d2p1:IsDisable>
<d2p1:PmsRoomTypeId>sample string 6</d2p1:PmsRoomTypeId>
<d2p1:RemainRoomCount>12</d2p1:RemainRoomCount>
<d2p1:RoomTypeId>4</d2p1:RoomTypeId>
<d2p1:Title>sample string 7</d2p1:Title>
<d2p1:TotalPrice>13</d2p1:TotalPrice>
<d2p1:UniqueID>sample string 5</d2p1:UniqueID>
</d2p1:RoomTypeGoodsDTO>
</Data>
</RequestResultOfArrayOfRoomTypeGoodsDTO6NgmDdgv>