POST promotion/join_lottery

Request Information

URI Parameters

None.

Body Parameters

JoinLotteryViewModel
NameDescriptionTypeAdditional information
join_id

integer

None.

lottery_id

integer

None.

joiner_id

integer

None.

is_captain

boolean

None.

is_official_fan

boolean

None.

join_group_id

integer

None.

share_user_id

integer

None.

wx_share_image_path

string

None.

client_id

integer

None.

shop_id

integer

None.

joiner_mobile

string

None.

joiner_name

string

None.

joiner_head_image_path

string

None.

date_created

string

None.

Request Formats

application/json, text/json

Sample:
{
  "join_id": 1,
  "lottery_id": 2,
  "joiner_id": 3,
  "is_captain": true,
  "is_official_fan": true,
  "join_group_id": 6,
  "share_user_id": 7,
  "wx_share_image_path": "sample string 8",
  "client_id": 9,
  "shop_id": 10,
  "joiner_mobile": "sample string 11",
  "joiner_name": "sample string 12",
  "joiner_head_image_path": "sample string 13",
  "date_created": "sample string 14"
}

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

Response Information

Resource Description

DataResponseOfLotteryViewModel
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

data

LotteryViewModel

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'date_fill_address' on 'ITPlus.Promotion.ViewModels.LotteryViewModel'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'date_fill_address' on 'ITPlus.Promotion.ViewModels.LotteryViewModel'.