POST api/lease/save

保存出租房

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

LeaseSaveModel
名称说明数据类型附加信息
Price

价格

decimal number

Required

Range: inclusive between 0.01 and 5000000

HouseFixings

配套设施

Collection of integer

None.

UnitId

租金类型,如:元/㎡·天、元/月、元/㎡·月

integer

None.

LeaseWay

出租方式 如整租

integer

Required

LeasePayWay

付款方式 如:付3

integer

None.

Bail

押金要求 如:押1

integer

None.

IsAgencyFee

是否有中介费

boolean

None.

IsUrgently

是否急租

boolean

None.

IsHot

是否热租

boolean

None.

HouId

房源Id,存在Id视为保存,否则新增

integer

None.

BuildingId

小区Id(若这里为0,BuildingName,Address,RegionCode3个参数传入值则会根据buildingName去匹配小区,不存在的小区则新增[未审核状态])

integer

Required

BuildingName

需【新增的小区】名

string

None.

Address

需【新增的小区】地址

string

None.

RegionCode

需【新增的小区】区域code

string

None.

RoomCount

几室

integer

Range: inclusive between 0 and 9

HollCount

几厅

integer

Range: inclusive between 0 and 9

LooCount

几卫

integer

Range: inclusive between 0 and 9

Cookroom

几厨

integer

Range: inclusive between 0 and 9

Terrace

几阳台

integer

Range: inclusive between 0 and 9

Area

面积

decimal number

Required

Range: inclusive between 0.01 and 999999

HouseKind

房源类型

integer

Required

Deck

装修类型

integer

Required

Direct

房屋朝向

integer

Required

BirthYear

建筑年代

integer

Required

Range: inclusive between 1900 and 2147483647

FloorCount

总楼层

integer

Required

Floor

所在楼层

integer

Required

HouseCommend

房源标题

string

Required

Max length: 36

Min length: 2

Remark

房源描述,3000字以内

string

Required

RoomTypeImgs

户型图片

Collection of HouseImage

None.

HouseImgs

房源图片

Collection of HouseImage

None.

InsideCode

内部编号

string

Max length: 20

SmsCode

个人/房东 发布时的验证码

string

None.

LinkMan

个人/房东 联系人

string

None.

Tel

个人/房东 电话号码

string

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Price": 1.0,
  "HouseFixings": [
    1,
    2
  ],
  "UnitId": 2,
  "LeaseWay": 1,
  "LeasePayWay": 3,
  "Bail": 4,
  "IsAgencyFee": true,
  "IsUrgently": true,
  "IsHot": true,
  "HouId": 1,
  "BuildingId": 8,
  "BuildingName": "sample string 9",
  "Address": "sample string 10",
  "RegionCode": "sample string 11",
  "RoomCount": 12,
  "HollCount": 13,
  "LooCount": 14,
  "Cookroom": 15,
  "Terrace": 16,
  "Area": 17.0,
  "HouseKind": 18,
  "Deck": 19,
  "Direct": 20,
  "BirthYear": 21,
  "FloorCount": 22,
  "Floor": 23,
  "HouseCommend": "sample string 24",
  "Remark": "sample string 25",
  "RoomTypeImgs": [
    {
      "ResId": 1,
      "IsMain": true,
      "FileName": "sample string 2",
      "Title": "sample string 3",
      "Ext": "sample string 4",
      "Path": "sample string 5"
    },
    {
      "ResId": 1,
      "IsMain": true,
      "FileName": "sample string 2",
      "Title": "sample string 3",
      "Ext": "sample string 4",
      "Path": "sample string 5"
    }
  ],
  "HouseImgs": [
    {
      "ResId": 1,
      "IsMain": true,
      "FileName": "sample string 2",
      "Title": "sample string 3",
      "Ext": "sample string 4",
      "Path": "sample string 5"
    },
    {
      "ResId": 1,
      "IsMain": true,
      "FileName": "sample string 2",
      "Title": "sample string 3",
      "Ext": "sample string 4",
      "Path": "sample string 5"
    }
  ],
  "InsideCode": "sample string 26",
  "SmsCode": "sample string 27",
  "LinkMan": "sample string 28",
  "Tel": "sample string 29",
  "City": "sample string 30",
  "Token": "sample string 31",
  "Platform": "sample string 32"
}

application/xml, text/xml

示例:
<LeaseSaveModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Lease">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 32</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 31</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 30</City>
  <Address xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 10</Address>
  <Area xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">17</Area>
  <BirthYear xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">21</BirthYear>
  <BuildingId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</BuildingId>
  <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 9</BuildingName>
  <Cookroom xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">15</Cookroom>
  <Deck xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">19</Deck>
  <Direct xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">20</Direct>
  <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">23</Floor>
  <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">22</FloorCount>
  <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">13</HollCount>
  <HouId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</HouId>
  <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 24</HouseCommend>
  <HouseImgs xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
    <HouseImage>
      <Ext>sample string 4</Ext>
      <FileName>sample string 2</FileName>
      <IsMain>true</IsMain>
      <Path>sample string 5</Path>
      <ResId>1</ResId>
      <Title>sample string 3</Title>
    </HouseImage>
    <HouseImage>
      <Ext>sample string 4</Ext>
      <FileName>sample string 2</FileName>
      <IsMain>true</IsMain>
      <Path>sample string 5</Path>
      <ResId>1</ResId>
      <Title>sample string 3</Title>
    </HouseImage>
  </HouseImgs>
  <HouseKind xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">18</HouseKind>
  <InsideCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 26</InsideCode>
  <LinkMan xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 28</LinkMan>
  <LooCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14</LooCount>
  <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 11</RegionCode>
  <Remark xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 25</Remark>
  <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">12</RoomCount>
  <RoomTypeImgs xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
    <HouseImage>
      <Ext>sample string 4</Ext>
      <FileName>sample string 2</FileName>
      <IsMain>true</IsMain>
      <Path>sample string 5</Path>
      <ResId>1</ResId>
      <Title>sample string 3</Title>
    </HouseImage>
    <HouseImage>
      <Ext>sample string 4</Ext>
      <FileName>sample string 2</FileName>
      <IsMain>true</IsMain>
      <Path>sample string 5</Path>
      <ResId>1</ResId>
      <Title>sample string 3</Title>
    </HouseImage>
  </RoomTypeImgs>
  <SmsCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 27</SmsCode>
  <Tel xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 29</Tel>
  <Terrace xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">16</Terrace>
  <Bail>4</Bail>
  <HouseFixings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </HouseFixings>
  <IsAgencyFee>true</IsAgencyFee>
  <IsHot>true</IsHot>
  <IsUrgently>true</IsUrgently>
  <LeasePayWay>3</LeasePayWay>
  <LeaseWay>1</LeaseWay>
  <Price>1</Price>
  <UnitId>2</UnitId>
</LeaseSaveModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

EditResult
名称说明数据类型附加信息
HouId

房源id

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "HouId": 1,
  "ErrorCode": 0,
  "Msg": "sample string 2"
}

application/xml, text/xml

示例:
<EditResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Msg>
  <HouId>1</HouId>
</EditResult>