POST api/v1/Activity/GetBargainObject

获取用户砍价信息

请求信息(Request)

URI 参数

None.

Body 参数

BargainObjectSubmitDTO
名称描述类型备注
BargainId

integer

None.

UserId

integer

None.

Appid

string

None.

OpenId

string

None.

UnionId

string

None.

NickName

string

None.

Avatar

string

None.

请求格式

application/json, text/json

Sample:
{
  "BargainId": 1,
  "UserId": 1,
  "Appid": "sample string 2",
  "OpenId": "sample string 3",
  "UnionId": "sample string 4",
  "NickName": "sample string 5",
  "Avatar": "sample string 6"
}

application/xml, text/xml

Sample:
<BargainObjectSubmitDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <Appid>sample string 2</Appid>
  <Avatar>sample string 6</Avatar>
  <BargainId>1</BargainId>
  <NickName>sample string 5</NickName>
  <OpenId>sample string 3</OpenId>
  <UnionId>sample string 4</UnionId>
  <UserId>1</UserId>
</BargainObjectSubmitDTO>

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

响应信息(Response)

资源描述

RequestResultOfBargainObjectDTO
名称描述类型备注
Data

BargainObjectDTO

None.

Status

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

integer

None.

Message

导致失败的相关消息

string

None.

Total

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

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "ID": 1,
    "BargainId": 2,
    "UserId": 1,
    "NickName": "sample string 3",
    "Avatar": "sample string 4",
    "CurrentAmount": 5.0,
    "CreateTime": "2025-05-04T17:03:20.0587201+08:00",
    "HasGet": true,
    "GetTime": "2025-05-04T17:03:20.0587201+08:00",
    "GiftType": 0,
    "BargainRecords": [
      {
        "ID": 1,
        "ObjectId": 2,
        "NickName": "sample string 3",
        "Avatar": "sample string 4",
        "Amount": 5.0,
        "CreateTime": "2025-05-04T17:03:20.0587201+08:00"
      },
      {
        "ID": 1,
        "ObjectId": 2,
        "NickName": "sample string 3",
        "Avatar": "sample string 4",
        "Amount": 5.0,
        "CreateTime": "2025-05-04T17:03:20.0587201+08:00"
      }
    ]
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml, text/xml

Sample:
<RequestResultOfBargainObjectDTO6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 2</Message>
  <Status>1</Status>
  <Total>3</Total>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
    <d2p1:Avatar>sample string 4</d2p1:Avatar>
    <d2p1:BargainId>2</d2p1:BargainId>
    <d2p1:BargainRecords>
      <d2p1:BargainRecordDTO>
        <d2p1:Amount>5</d2p1:Amount>
        <d2p1:Avatar>sample string 4</d2p1:Avatar>
        <d2p1:CreateTime>2025-05-04T17:03:20.0587201+08:00</d2p1:CreateTime>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:NickName>sample string 3</d2p1:NickName>
        <d2p1:ObjectId>2</d2p1:ObjectId>
      </d2p1:BargainRecordDTO>
      <d2p1:BargainRecordDTO>
        <d2p1:Amount>5</d2p1:Amount>
        <d2p1:Avatar>sample string 4</d2p1:Avatar>
        <d2p1:CreateTime>2025-05-04T17:03:20.0587201+08:00</d2p1:CreateTime>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:NickName>sample string 3</d2p1:NickName>
        <d2p1:ObjectId>2</d2p1:ObjectId>
      </d2p1:BargainRecordDTO>
    </d2p1:BargainRecords>
    <d2p1:CreateTime>2025-05-04T17:03:20.0587201+08:00</d2p1:CreateTime>
    <d2p1:CurrentAmount>5</d2p1:CurrentAmount>
    <d2p1:GetTime>2025-05-04T17:03:20.0587201+08:00</d2p1:GetTime>
    <d2p1:GiftType>None</d2p1:GiftType>
    <d2p1:HasGet>true</d2p1:HasGet>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:NickName>sample string 3</d2p1:NickName>
    <d2p1:UserId>1</d2p1:UserId>
  </Data>
</RequestResultOfBargainObjectDTO6NgmDdgv>