GET api/MallCommodity/CountCommodityBrowseHistory

获取商品浏览记录数

Request Information

URI Parameters

None.

Body Parameters

CommodityBrowseHistorySearchDto
NameDescriptionTypeAdditional information
UserId

浏览人标识

integer

None.

UserState

浏览人用户态

integer

None.

BrowseStart

浏览起始日期

date

None.

BrowseEnd

浏览截止日期

date

None.

PageSize

每页条数

integer

None.

Search

关键字

string

None.

Keywords

关键字

string

None.

PageID

分页页数

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<CommodityBrowseHistorySearchDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Mall.Service.Dto.Commodity">
  <PageID xmlns="http://schemas.datacontract.org/2004/07/Mh.WebHelper.Pages">5</PageID>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/Mh.WebHelper.Pages">3</PageSize>
  <Search xmlns="http://schemas.datacontract.org/2004/07/Mh.WebHelper.Pages">sample string 4</Search>
  <BrowseEnd>2024-04-30T02:40:21.3323162+08:00</BrowseEnd>
  <BrowseStart>2024-04-30T02:40:21.3323162+08:00</BrowseStart>
  <UserId>1</UserId>
  <UserState>2</UserState>
</CommodityBrowseHistorySearchDto>

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

Response Information

Resource Description

获取商品浏览记录数

integer

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>