POST api/FangYuan/AddNewClient

增加新客户

Request Information

URI Parameters

None.

Body Parameters

客户实体

ClientNewDto
NameDescriptionTypeAdditional information
MendianId

门店标识

integer

None.

DemandType

客户需求类型

HouseClientDemandType

None.

PublicType

客户保护级别

HouseClientType

None.

ClientName

客户姓名

string

None.

Gender

客户性别

SexType

None.

Contact

客户联系方式

string

None.

Level

客户级别

HouseClientLevel

None.

Remark

备注信息

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<ClientNewDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.House.Service.Dto.Client">
  <ClientName>sample string 2</ClientName>
  <Contact>sample string 3</Contact>
  <DemandType>All</DemandType>
  <Gender>Male</Gender>
  <Level>All</Level>
  <MendianId>1</MendianId>
  <PublicType>Public</PublicType>
  <Remark>sample string 4</Remark>
</ClientNewDto>

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 'ClientNewDto'.

Response Information

Resource Description

增加新客户

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />