feat: 增加订单过滤功能,支持按内容ID、支付时间范围和支付金额范围筛选
This commit is contained in:
@@ -57,6 +57,11 @@ GET {{ host }}/t/{{ tenantCode }}/v1/orders?page=1&limit=10
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
### Tenant - My orders list (filter by status/content_id/paid_at window)
|
||||
GET {{ host }}/t/{{ tenantCode }}/v1/orders?page=1&limit=10&status=paid&content_id={{ contentID }}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
### Tenant - My order detail
|
||||
GET {{ host }}/t/{{ tenantCode }}/v1/orders/{{ orderID }}
|
||||
Content-Type: application/json
|
||||
@@ -113,6 +118,11 @@ GET {{ host }}/t/{{ tenantCode }}/v1/admin/orders?page=1&limit=10
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
### Tenant Admin - Orders list (filter by user_id/content_id/paid_at range/amount_paid range)
|
||||
GET {{ host }}/t/{{ tenantCode }}/v1/admin/orders?page=1&limit=10&user_id=2&content_id={{ contentID }}&paid_at_from=2025-01-01T00:00:00Z&paid_at_to=2026-01-01T00:00:00Z&amount_paid_min=1&amount_paid_max=99999999
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
### Tenant Admin - Order detail
|
||||
@orderID = 1
|
||||
GET {{ host }}/t/{{ tenantCode }}/v1/admin/orders/{{ orderID }}
|
||||
|
||||
Reference in New Issue
Block a user