feat: 增加订单过滤功能,支持按内容ID、支付时间范围和支付金额范围筛选
This commit is contained in:
@@ -1386,6 +1386,19 @@ paths:
|
||||
name: tenantCode
|
||||
required: true
|
||||
type: string
|
||||
- description: AmountPaidMax filters orders by amount_paid <= this amount (cents).
|
||||
in: query
|
||||
name: amount_paid_max
|
||||
type: integer
|
||||
- description: AmountPaidMin filters orders by amount_paid >= this amount (cents).
|
||||
in: query
|
||||
name: amount_paid_min
|
||||
type: integer
|
||||
- description: ContentID filters orders by purchased content id (via order_items
|
||||
join).
|
||||
in: query
|
||||
name: content_id
|
||||
type: integer
|
||||
- description: Limit is page size; only values in {10,20,50,100} are accepted
|
||||
(otherwise defaults to 10).
|
||||
in: query
|
||||
@@ -1395,6 +1408,14 @@ paths:
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- description: PaidAtFrom filters orders by paid_at >= this time.
|
||||
in: query
|
||||
name: paid_at_from
|
||||
type: string
|
||||
- description: PaidAtTo filters orders by paid_at <= this time.
|
||||
in: query
|
||||
name: paid_at_to
|
||||
type: string
|
||||
- description: Status filters orders by order status.
|
||||
enum:
|
||||
- created
|
||||
@@ -1745,6 +1766,11 @@ paths:
|
||||
name: tenantCode
|
||||
required: true
|
||||
type: string
|
||||
- description: ContentID filters orders by purchased content id (via order_items
|
||||
join).
|
||||
in: query
|
||||
name: content_id
|
||||
type: integer
|
||||
- description: Limit is page size; only values in {10,20,50,100} are accepted
|
||||
(otherwise defaults to 10).
|
||||
in: query
|
||||
@@ -1754,6 +1780,14 @@ paths:
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- description: PaidAtFrom filters orders by paid_at >= this time.
|
||||
in: query
|
||||
name: paid_at_from
|
||||
type: string
|
||||
- description: PaidAtTo filters orders by paid_at <= this time.
|
||||
in: query
|
||||
name: paid_at_to
|
||||
type: string
|
||||
- description: Status filters orders by order status.
|
||||
enum:
|
||||
- created
|
||||
|
||||
Reference in New Issue
Block a user