POST api/v1/SelfCheckin/GetRoomTypes

获取酒店每日房型价

请求信息(Request)

URI 参数

None.

Body 参数

HotelRoomTypesQuery
名称描述类型备注
hotelId

integer

None.

checkInDate

date

None.

checkOutDate

date

None.

memberType

MemberType

None.

channelId

pms渠道参数

string

None.

hotelVipId

当会员id有值的时候,查询会员价格

string

None.

hotelVipCardType

酒店会员类型id

string

None.

onlyCanCheckIn

是否只返回能入住的房型

boolean

None.

isHourRoom

是否钟点房预定

boolean

None.

IsSpecial

是否特舒房

boolean

None.

请求格式

application/json, text/json

Sample:
{
  "hotelId": 1,
  "checkInDate": "2025-05-04T17:07:20.6993744+08:00",
  "checkOutDate": "2025-05-04T17:07:20.6993744+08:00",
  "memberType": 0,
  "channelId": "sample string 4",
  "hotelVipId": "sample string 5",
  "hotelVipCardType": "sample string 6",
  "onlyCanCheckIn": true,
  "isHourRoom": true,
  "IsSpecial": true
}

application/xml, text/xml

Sample:
<HotelRoomTypesQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs.Query">
  <IsSpecial>true</IsSpecial>
  <channelId>sample string 4</channelId>
  <checkInDate>2025-05-04T17:07:20.6993744+08:00</checkInDate>
  <checkOutDate>2025-05-04T17:07:20.6993744+08:00</checkOutDate>
  <hotelId>1</hotelId>
  <hotelVipCardType>sample string 6</hotelVipCardType>
  <hotelVipId>sample string 5</hotelVipId>
  <isHourRoom>true</isHourRoom>
  <memberType>Normal</memberType>
  <onlyCanCheckIn>true</onlyCanCheckIn>
</HotelRoomTypesQuery>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HotelRoomTypesQuery'.

响应信息(Response)

资源描述

酒店房间列表

RequestResultOfListOfHotelRoomDTO
名称描述类型备注
Data

HotelRoomDTO 集合

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].Combos[0].Products[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].Combos[0].Products[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “WLife.Application.DTOs.DealSpecificationDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “WLife.Application.DTOs.DealSpecificationDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。