feat: add storages
This commit is contained in:
@@ -61,7 +61,7 @@ func (c *OrderController) List(ctx fiber.Ctx, claim *jwt.Claims, pagination *req
|
||||
// Create order
|
||||
// @Router /api/v1/orders [post]
|
||||
// @Bind claim local
|
||||
// @Bind hash
|
||||
// @Bind hash path
|
||||
// @Bind tenantSlug cookie key(tenant)
|
||||
func (c *OrderController) Create(ctx fiber.Ctx, claim *jwt.Claims, tenantSlug, hash string) (*UserOrder, error) {
|
||||
user, err := c.userSvc.GetUserByID(ctx.Context(), claim.UserID)
|
||||
|
||||
@@ -53,4 +53,9 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
PathParam[string]("orderID"),
|
||||
))
|
||||
|
||||
router.Post("/v1/orders/pay/notify/:channel", DataFunc1(
|
||||
r.payController.Notify,
|
||||
PathParam[string]("channel"),
|
||||
))
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user