GET api/v1/User/GetGiftBoxByCode?code={code}

请求信息(Request)

URI 参数

名称描述类型备注
code

string

Required

Body 参数

None.

响应信息(Response)

资源描述

RequestResultOfGiftBoxDTO
名称描述类型备注
Data

GiftBoxDTO

None.

Status

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

integer

None.

Message

导致失败的相关消息

string

None.

Total

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

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "ID": 1,
    "GiftTypeID": 2,
    "UserID": 3,
    "DealerId": 1,
    "DealerName": "sample string 4",
    "HotelId": 1,
    "ShopName": "sample string 5",
    "AddTime": "2025-05-04T16:53:39.0431295+08:00",
    "ExpireTime": "2025-05-04T16:53:39.0431295+08:00",
    "HasUsed": true,
    "GiftValue": 9.0,
    "GiftName": "sample string 10",
    "Info": "sample string 11",
    "Reason": "sample string 12",
    "AddByUid": 13,
    "AddByName": "sample string 14",
    "IsExpire": false,
    "IsWillExpire": true,
    "Tag": 0,
    "UseTime": "2025-05-04T16:53:39.0431295+08:00",
    "UseDealerId": 1,
    "RuleId": 15,
    "PmsHotelVipCardType": "sample string 16"
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml, text/xml

Sample:
<RequestResultOfGiftBoxDTO6NgmDdgv 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:AddByName>sample string 14</d2p1:AddByName>
    <d2p1:AddByUid>13</d2p1:AddByUid>
    <d2p1:AddTime>2025-05-04T16:53:39.0431295+08:00</d2p1:AddTime>
    <d2p1:DealerId>1</d2p1:DealerId>
    <d2p1:DealerName>sample string 4</d2p1:DealerName>
    <d2p1:ExpireTime>2025-05-04T16:53:39.0431295+08:00</d2p1:ExpireTime>
    <d2p1:GiftName>sample string 10</d2p1:GiftName>
    <d2p1:GiftTypeID>2</d2p1:GiftTypeID>
    <d2p1:GiftValue>9</d2p1:GiftValue>
    <d2p1:HasUsed>true</d2p1:HasUsed>
    <d2p1:HotelId>1</d2p1:HotelId>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:Info>sample string 11</d2p1:Info>
    <d2p1:PmsHotelVipCardType>sample string 16</d2p1:PmsHotelVipCardType>
    <d2p1:Reason>sample string 12</d2p1:Reason>
    <d2p1:RuleId>15</d2p1:RuleId>
    <d2p1:ShopName>sample string 5</d2p1:ShopName>
    <d2p1:Tag>MemberCard</d2p1:Tag>
    <d2p1:UseDealerId>1</d2p1:UseDealerId>
    <d2p1:UseTime>2025-05-04T16:53:39.0431295+08:00</d2p1:UseTime>
    <d2p1:UserID>3</d2p1:UserID>
  </Data>
</RequestResultOfGiftBoxDTO6NgmDdgv>