chore: stabilize lint and verify builds

This commit is contained in:
2026-02-06 11:51:32 +08:00
parent edede17880
commit 1782f64417
114 changed files with 3032 additions and 1345 deletions

View File

@@ -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]