POST api/v1/Bet/PlaceOrder

投注

请求信息(Request)

URI 参数

None.

Body 参数

投注订单

BetOrderSubmitDTO
名称描述类型备注
GameId

integer

Required

BetAmountType

投注数类型

BetAmountType

None.

BetAmount

投注数

decimal number

None.

VictoryResult

猜胜平负

BetVictoryResultType

None.

TeamId

猜冠军

integer

None.

BetOptionId

猜选项

integer

None.

Appid

微信appid

string

None.

请求格式

application/json, text/json

Sample:
{
  "GameId": 1,
  "BetAmountType": 0,
  "BetAmount": 2.0,
  "VictoryResult": 0,
  "TeamId": 1,
  "BetOptionId": 1,
  "Appid": "sample string 3"
}

application/xml, text/xml

Sample:
<BetOrderSubmitDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <Appid>sample string 3</Appid>
  <BetAmount>2</BetAmount>
  <BetAmountType>Score</BetAmountType>
  <BetOptionId>1</BetOptionId>
  <GameId>1</GameId>
  <TeamId>1</TeamId>
  <VictoryResult>Victory</VictoryResult>
</BetOrderSubmitDTO>

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

响应信息(Response)

资源描述

RequestResultOfInt32
名称描述类型备注
Data

integer

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": 1,
  "Status": 2,
  "Message": "sample string 3",
  "Total": 4
}

application/xml, text/xml

Sample:
<RequestResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 3</Message>
  <Status>2</Status>
  <Total>4</Total>
  <Data>1</Data>
</RequestResultOfint>