POST api/v1/User/UserCollectionGet?Type={Type}&pageIndex={pageIndex}&pageCount={pageCount}
[需登录]用户收藏信息
请求信息(Request)
URI 参数
名称 | 描述 | 类型 | 备注 |
---|---|---|---|
Type |
收藏类型 |
BusinessType |
None. |
pageIndex |
分页索引 |
integer |
Default value is 0 |
pageCount |
分页数量 |
integer |
Default value is 10 |
Body 参数
None.
响应信息(Response)
资源描述
用户收藏列表
RequestResultOfIEnumerableOfUserCollectionDTO名称 | 描述 | 类型 | 备注 |
---|---|---|---|
Data | UserCollectionDTO 集合 |
None. |
|
Status |
状态(0:成功,1:失败) |
integer |
None. |
Message |
导致失败的相关消息 |
string |
None. |
Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{ "Data": [ { "ID": 1, "Title": "sample string 2", "UserId": 3, "CreateTime": "2025-05-04T16:59:11.8878932+08:00", "ItemId": 5, "Content": "sample string 6", "Type": 0, "TypeName": "sample string 7", "ImagePath": "sample string 8" }, { "ID": 1, "Title": "sample string 2", "UserId": 3, "CreateTime": "2025-05-04T16:59:11.8878932+08:00", "ItemId": 5, "Content": "sample string 6", "Type": 0, "TypeName": "sample string 7", "ImagePath": "sample string 8" } ], "Status": 1, "Message": "sample string 2", "Total": 3 }
application/xml, text/xml
Sample:
<RequestResultOfArrayOfUserCollectionDTO6NgmDdgv 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:UserCollectionDTO> <d2p1:Content>sample string 6</d2p1:Content> <d2p1:CreateTime>2025-05-04T16:59:11.8878932+08:00</d2p1:CreateTime> <d2p1:ID>1</d2p1:ID> <d2p1:ImagePath>sample string 8</d2p1:ImagePath> <d2p1:ItemId>5</d2p1:ItemId> <d2p1:Title>sample string 2</d2p1:Title> <d2p1:Type>None</d2p1:Type> <d2p1:TypeName>sample string 7</d2p1:TypeName> <d2p1:UserId>3</d2p1:UserId> </d2p1:UserCollectionDTO> <d2p1:UserCollectionDTO> <d2p1:Content>sample string 6</d2p1:Content> <d2p1:CreateTime>2025-05-04T16:59:11.8878932+08:00</d2p1:CreateTime> <d2p1:ID>1</d2p1:ID> <d2p1:ImagePath>sample string 8</d2p1:ImagePath> <d2p1:ItemId>5</d2p1:ItemId> <d2p1:Title>sample string 2</d2p1:Title> <d2p1:Type>None</d2p1:Type> <d2p1:TypeName>sample string 7</d2p1:TypeName> <d2p1:UserId>3</d2p1:UserId> </d2p1:UserCollectionDTO> </Data> </RequestResultOfArrayOfUserCollectionDTO6NgmDdgv>