POST api/WebInterface/Personal/FrequentContacts/Add
新增常用联系人
Request Information
URI Parameters
None.
Body Parameters
PersonalLinkman| Name | Description | Type | Additional information |
|---|---|---|---|
| AutoId |
唯一标识 |
integer |
None. |
| PersonalId |
个人会员ID |
integer |
Required |
| Name |
联系人姓名 |
string |
Required |
| Sex |
联系人性别 M-男 W-女 |
string |
Required Max length: 1 |
| Mobile |
联系人手机号 |
string |
Required Max length: 11 |
| IdentityCard |
联系人证件号 |
string |
Required Max length: 20 |
| IdentityType |
联系人证件类型 1-身份证 2-护照 3-其他 |
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:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
新增常用联系人
CommonOperationResult| Name | Description | Type | Additional 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>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.