chore: stabilize lint and verify builds
This commit is contained in:
@@ -59,6 +59,22 @@ func (c *users) Wallet(ctx fiber.Ctx, id int64) (*dto.SuperWalletResponse, error
|
||||
return services.Super.GetUserWallet(ctx, id)
|
||||
}
|
||||
|
||||
// @Router /super/v1/users/:id<int>/wallet/credit [post]
|
||||
// @Summary Credit user wallet
|
||||
// @Description Credit user wallet balance
|
||||
// @Tags User
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param id path int64 true "User ID"
|
||||
// @Param form body dto.SuperWalletCreditForm true "Credit form"
|
||||
// @Success 200 {string} string "OK"
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind id path
|
||||
// @Bind form body
|
||||
func (c *users) CreditWallet(ctx fiber.Ctx, user *models.User, id int64, form *dto.SuperWalletCreditForm) error {
|
||||
return services.Super.CreditUserWallet(ctx, user.ID, id, form)
|
||||
}
|
||||
|
||||
// List user notifications
|
||||
//
|
||||
// @Router /super/v1/users/:id<int>/notifications [get]
|
||||
|
||||
Reference in New Issue
Block a user