add: order status in orders get
This commit is contained in:
@@ -75,7 +75,11 @@ class SellerController extends BaseController {
|
||||
@ApiQuery("limit", "the limit of return data")
|
||||
@ApiQuery("page", "the page want to get")
|
||||
@ApiQuery("shipperId", "shipper id")
|
||||
@ApiQuery("status", "status of payment ==> value = Completed | Cancelled | Pending ")
|
||||
@ApiQuery(
|
||||
"status",
|
||||
"status of payment ==> value = wait_payment | process_by_sellers | shipped | cancelled_system | cancelled | Delivered",
|
||||
)
|
||||
@ApiQuery("paymentStatus", "status of order ==> value = Completed | Cancelled | Pending ")
|
||||
@ApiQuery(
|
||||
"since",
|
||||
"time of order created ==> value should be standard timestamp since that time user want like == > Date.now() - (7 * 24 * 60 * 60 * 1000) ==> this mean from a week ago till now ",
|
||||
@@ -91,6 +95,7 @@ class SellerController extends BaseController {
|
||||
@queryParam("page") page: string,
|
||||
@queryParam("shipperId") shipperId: string,
|
||||
@queryParam("status") status: string,
|
||||
@queryParam("paymentStatus") paymentStatus: string,
|
||||
@queryParam("since") since: string,
|
||||
@queryParam("maxPrice") maxPrice: string,
|
||||
@queryParam("minPrice") minPrice: string,
|
||||
@@ -101,6 +106,7 @@ class SellerController extends BaseController {
|
||||
page: parseInt(page),
|
||||
shipperId,
|
||||
status,
|
||||
paymentStatus,
|
||||
since: +since,
|
||||
maxPrice: +maxPrice,
|
||||
minPrice: +minPrice,
|
||||
|
||||
Reference in New Issue
Block a user