POST api/sale/salescontract/SaveHouse
保存一个屋舍信息
请求信息
URI 参数
None.
Body 参数
屋舍信息对象
SalesContractHouseEntity名称 | 说明 | 类型 | 其他信息 |
---|---|---|---|
SalesContractId |
销售合同 |
string |
Required |
SerialNumber |
序号 |
integer |
Required |
HouseType |
屋舍类型,使用字典Sales-HouseType |
string |
Required |
HouseSizeLength |
屋舍尺寸长,单位米 |
decimal number |
Required |
HouseSizeWidth |
屋舍尺寸宽,单位米 |
decimal number |
Required |
HouseSizeHigh |
屋舍尺寸高,单位米 |
decimal number |
Required |
Building |
栋数 |
string |
None. |
FeedingQuantity |
饲养量 |
integer |
Required |
Id | string |
None. |
|
CreateDate | date |
None. |
|
CreateUserId | string |
None. |
|
CreateUserName | string |
None. |
|
ModifyDate | date |
None. |
|
ModifyUserId | string |
None. |
|
ModifyUserName | string |
None. |
请求格式
application/json, text/json
Sample:
{ "SalesContractId": "sample string 1", "SerialNumber": 2, "HouseType": "sample string 3", "HouseSizeLength": 4.0, "HouseSizeWidth": 5.0, "HouseSizeHigh": 6.0, "Building": "sample string 7", "FeedingQuantity": 8, "Id": "sample string 9", "CreateDate": "2024-09-21 16:35:26", "CreateUserId": "sample string 10", "CreateUserName": "sample string 11", "ModifyDate": "2024-09-21 16:35:26", "ModifyUserId": "sample string 12", "ModifyUserName": "sample string 13" }
application/xml, text/xml
Sample:
<SalesContractHouseEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZJ.GX.Application.Domain"> <CreateDate xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">2024-09-21T16:35:26.1788629+08:00</CreateDate> <CreateUserId xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">sample string 10</CreateUserId> <CreateUserName xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">sample string 11</CreateUserName> <Id xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">sample string 9</Id> <ModifyDate xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">2024-09-21T16:35:26.1788629+08:00</ModifyDate> <ModifyUserId xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">sample string 12</ModifyUserId> <ModifyUserName xmlns="http://schemas.datacontract.org/2004/07/ZJ.DataBase.Domain">sample string 13</ModifyUserName> <Building>sample string 7</Building> <FeedingQuantity>8</FeedingQuantity> <HouseSizeHigh>6</HouseSizeHigh> <HouseSizeLength>4</HouseSizeLength> <HouseSizeWidth>5</HouseSizeWidth> <HouseType>sample string 3</HouseType> <SalesContractId>sample string 1</SalesContractId> <SerialNumber>2</SerialNumber> </SalesContractHouseEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
响应说明
ResponseEx名称 | 说明 | 类型 | 其他信息 |
---|---|---|---|
StatusCode |
状态码 |
ResponseStatusCode |
None. |
Message |
信息 |
string |
None. |
Data |
数据 |
Object |
None. |
响应格式
application/json, text/json
Sample:
{ "StatusCode": 0, "Message": "sample string 1", "Data": {} }
application/xml, text/xml
Sample:
<ResponseEx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZJ.GX.Application.WebApi.Models"> <Data /> <Message>sample string 1</Message> <StatusCode>OK</StatusCode> </ResponseEx>