store wise orders change
This commit is contained in:
@@ -209,6 +209,14 @@ func (ctl *DeliveriesController) GetDeliveries(c *fiber.Ctx) error {
|
||||
stat := c.Query("status")
|
||||
keyword := c.Query("keyword")
|
||||
|
||||
if pid == 0 && tid == 0 && uid == 0 && cid == 0 && aid == 0 && aud == 0 {
|
||||
return c.Status(http.StatusBadRequest).JSON(fiber.Map{
|
||||
"code": http.StatusBadRequest,
|
||||
"message": "At least one of tenantid, partnerid, customerid, applocationid, userid or appuserid is required",
|
||||
"status": false,
|
||||
})
|
||||
}
|
||||
|
||||
info := models.DeliveryQuery{
|
||||
Partnerid: pid,
|
||||
Tenantid: tid,
|
||||
|
||||
Reference in New Issue
Block a user