GET api/v1/Deal/GetPushDeals?Ids={Ids}&Count={Count}

获取推荐的商品

请求信息(Request)

URI 参数

名称描述类型备注
Ids

商品ID,多个商品用‘-’号隔开,如果为空返回随机商品

string

Default value is

Count

返回的商品数(默认为3)

integer

Default value is 3

Body 参数

None.

响应信息(Response)

资源描述

RequestResultOfIEnumerableOfDealDTO
名称描述类型备注
Data

DealDTO 集合

None.

Status

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

integer

None.

Message

导致失败的相关消息

string

None.

Total

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

integer

None.

响应格式

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'WLife.Application.DTOs.DealSpecificationDTO'. Path 'Data[0].DealSpecifications[0].ChildrenSpecification1'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'WLife.Application.DTOs.DealSpecificationDTO'. Path 'Data[0].DealSpecifications[0].ChildrenSpecification1'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “System.Collections.Generic.List`1[[WLife.Application.DTOs.DealSpecificationDTO, WLife.Application, Version=1.0.0.33, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “System.Collections.Generic.List`1[[WLife.Application.DTOs.DealSpecificationDTO, WLife.Application, Version=1.0.0.33, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。