GET api/v1/Order/GetMyOrders?status={status}&pageIndex={pageIndex}&pageCount={pageCount}

[需登录] 获取当前用户的订单

请求信息(Request)

URI 参数

名称描述类型备注
status

订单状态,为 0 返回全部订单

OrderFilterStatus

Default value is All

pageIndex

分页索引,从 0 开始

integer

Default value is 0

pageCount

每页条目数量,默认每页 10 条

integer

Default value is 10

Body 参数

None.

响应信息(Response)

资源描述

用户订单列表

RequestResultOfIEnumerableOfMyOrderDTO
名称描述类型备注
Data

MyOrderDTO 集合

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 for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].HotelOrders[0].PreAllocatedRooms[0].RoomType.Combos[0].Products[0]'.

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 for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].HotelOrders[0].PreAllocatedRooms[0].RoomType.Combos[0].Products[0]'.

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]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。