POST api/v1/Hotel/AddHotelRoomFeature
新增酒店房间特性
请求信息(Request)
URI 参数
None.
Body 参数
酒店房间特性
HotelRoomFeatureDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| ID |
ID |
integer |
None. |
| HotelId |
酒店ID |
integer |
None. |
| HotelName |
酒店名称 |
string |
None. |
| FeatureName |
特性名称 |
string |
None. |
| CreateTime |
创建时间 |
date |
None. |
请求格式
application/json, text/json
Sample:
{
"ID": 1,
"HotelId": 2,
"HotelName": "sample string 3",
"FeatureName": "sample string 4",
"CreateTime": "2025-11-06T04:22:42.7160303+08:00"
}
application/xml, text/xml
Sample:
<HotelRoomFeatureDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs"> <CreateTime>2025-11-06T04:22:42.7160303+08:00</CreateTime> <FeatureName>sample string 4</FeatureName> <HotelId>2</HotelId> <HotelName>sample string 3</HotelName> <ID>1</ID> </HotelRoomFeatureDTO>
application/x-www-form-urlencoded
Sample:
响应信息(Response)
资源描述
RequestResultOfInt32| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | integer |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": 1,
"Status": 2,
"Message": "sample string 3",
"Total": 4
}
application/xml, text/xml
Sample:
<RequestResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application"> <Message>sample string 3</Message> <Status>2</Status> <Total>4</Total> <Data>1</Data> </RequestResultOfint>