feat: add superadmin wallet view

This commit is contained in:
2026-01-15 11:21:37 +08:00
parent 37325ab1b4
commit 56082bad4f
10 changed files with 495 additions and 5 deletions

View File

@@ -43,6 +43,21 @@ func (c *users) Get(ctx fiber.Ctx, id int64) (*dto.UserItem, error) {
return services.Super.GetUser(ctx, id)
}
// Get user wallet
//
// @Router /super/v1/users/:id<int>/wallet [get]
// @Summary Get user wallet
// @Description Get user wallet balance and transactions
// @Tags User
// @Accept json
// @Produce json
// @Param id path int64 true "User ID"
// @Success 200 {object} dto.SuperWalletResponse
// @Bind id path
func (c *users) Wallet(ctx fiber.Ctx, id int64) (*dto.SuperWalletResponse, error) {
return services.Super.GetUserWallet(ctx, id)
}
// List user tenants
//
// @Router /super/v1/users/:id<int>/tenants [get]