POST api/v2/member/favorite/collection

添加收藏

Request Information

URI Parameters

None.

Body Parameters

FavoriteContract
NameDescriptionTypeAdditional information
memberId

会员ID

integer

None.

relationId

产品ID

string

None.

itemType

订单产品类型(4.TourGroup,5.LocalTravel)

ItemType

None.

Request Formats

application/json, text/json

Sample:
{
  "memberId": 1,
  "relationId": "sample string 2",
  "itemType": 0
}

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

Response Information

Resource Description

添加收藏

ReturnResult
NameDescriptionTypeAdditional information
code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

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