feat: add superadmin wallet view
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user