POST api/Personal/FrequentContacts/Add

新增常用联系人

Request Information

URI Parameters

None.

Body Parameters

PersonalLinkman
NameDescriptionTypeAdditional information
AutoId

唯一标识

integer

None.

PersonalId

个人会员ID

integer

Required

Name

联系人姓名

string

Required

Sex

联系人性别 M-男 W-女

string

Required

Max length: 1

Mobile

联系人手机号

string

Max length: 11

IdentityCard

联系人证件号

string

Required

Max length: 20

IdentityType

联系人证件类型 1-二代居民身份证,2-护照,3-现役军官证、士兵证,4-学生证,5-老年证,6-残疾证,7-外国人永久居留身份证,8-港澳通行证,A-台湾通行证,B-出生证,C-港奥台回乡证或台胞证,D-港奥台居民居住证, 9-其他

string

Required

Max length: 1

Reserve1

保留1

string

Max length: 50

Reserve2

保留2

string

Max length: 50

Request Formats

application/json, text/json

Sample:
{
  "AutoId": 1,
  "PersonalId": 2,
  "Name": "sample string 3",
  "Sex": "sample string 4",
  "Mobile": "sample string 5",
  "IdentityCard": "sample string 6",
  "IdentityType": "sample string 7",
  "Reserve1": "sample string 8",
  "Reserve2": "sample string 9"
}

application/xml, text/xml

Sample:
<PersonalLinkman xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface">
  <AutoId>1</AutoId>
  <IdentityCard>sample string 6</IdentityCard>
  <IdentityType>sample string 7</IdentityType>
  <Mobile>sample string 5</Mobile>
  <Name>sample string 3</Name>
  <PersonalId>2</PersonalId>
  <Reserve1>sample string 8</Reserve1>
  <Reserve2>sample string 9</Reserve2>
  <Sex>sample string 4</Sex>
</PersonalLinkman>

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

Response Information

Resource Description

新增常用联系人

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>