POST api/member/contact/add

添加联系人

Request Information

URI Parameters

None.

Body Parameters

MemberContactContract
NameDescriptionTypeAdditional information
contactid

编号

integer

None.

memberid

会员编号

integer

None.

title

称谓(MR,MS,Miss....)

string

None.

firstname

string

None.

lastname

string

None.

firstnamecht

名(中文)

string

None.

lastnamecht

姓(中文)

string

None.

phareacode

电话区号

string

None.

phone

电话号码

string

None.

nationality

国籍

string

None.

email

Email

string

None.

cardtype

证件类型

string

None.

cardno

证件号码

string

None.

expireddate

证件过期日期

date

None.

agetype

0.成人,1.小孩

integer

None.

birthday

生日

date

None.

address

地址

string

None.

address2

地址2

string

None.

city

城市

string

None.

citycode

城市代码

string

None.

country

国家

string

None.

seatpreference

座位偏好

string

None.

flyprograme

飞行计划

string

None.

programenumber

计划编号

string

None.

mealrequest

餐饮需求

string

None.

specialassistance

特别协助

string

None.

emergfirstname

紧急联系人

string

None.

emerglastname

紧急联系人

string

None.

emergcountrycode

紧急联系人电话区号

string

None.

emergphone

紧急联系人电话

string

None.

createdate

添加时间

date

None.

isself

是否自己

boolean

None.

cardissueplace

證件簽發地

string

None.

Request Formats

application/json, text/json

Sample:
{
  "contactid": 1,
  "memberid": 2,
  "title": "sample string 3",
  "firstname": "sample string 4",
  "lastname": "sample string 5",
  "firstnamecht": "sample string 6",
  "lastnamecht": "sample string 7",
  "phareacode": "sample string 8",
  "phone": "sample string 9",
  "nationality": "sample string 10",
  "email": "sample string 11",
  "cardtype": "sample string 12",
  "cardno": "sample string 13",
  "expireddate": "2025-04-24T16:55:33.6965402+08:00",
  "agetype": 15,
  "birthday": "2025-04-24T16:55:33.6965402+08:00",
  "address": "sample string 17",
  "address2": "sample string 18",
  "city": "sample string 19",
  "citycode": "sample string 20",
  "country": "sample string 21",
  "seatpreference": "sample string 22",
  "flyprograme": "sample string 23",
  "programenumber": "sample string 24",
  "mealrequest": "sample string 25",
  "specialassistance": "sample string 26",
  "emergfirstname": "sample string 27",
  "emerglastname": "sample string 28",
  "emergcountrycode": "sample string 29",
  "emergphone": "sample string 30",
  "createdate": "2025-04-24T16:55:33.6985455+08:00",
  "isself": true,
  "cardissueplace": "sample string 33"
}

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

Response Information

Resource Description

添加联系人

ReturnResultOfInt32
NameDescriptionTypeAdditional information
data

integer

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": 1,
  "code": 2,
  "message": "sample string 3"
}