From 558d434f61955b585e1578c8b114a93f3e2319c8 Mon Sep 17 00:00:00 2001 From: Diego Clair <diego93rodrigues@gmail.com> Date: Sat, 17 Aug 2024 00:51:15 -0300 Subject: [PATCH] chore: use type any instead of interface --- infra/data/mysql/account.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/data/mysql/account.go b/infra/data/mysql/account.go index db75d83..0d770fd 100644 --- a/infra/data/mysql/account.go +++ b/infra/data/mysql/account.go @@ -140,7 +140,7 @@ func (r *accountRepo) GetAccountByDocument(ctx context.Context, encryptedCPF str func (r *accountRepo) GetAccounts(ctx context.Context, take, skip int64) (accounts []entity.Account, totalRecords int64, err error) { - var params = []interface{}{} + var params = []any{} query := querySelectBase @@ -194,7 +194,7 @@ func (r *accountRepo) GetAccounts(ctx context.Context, take, skip int64) (accoun func (r *accountRepo) GetAccountByUUID(ctx context.Context, accountUUID string) (account entity.Account, err error) { - var params = []interface{}{} + var params = []any{} query := querySelectBase + ` WHERE ta.account_uuid = ? @@ -217,7 +217,7 @@ func (r *accountRepo) GetAccountByUUID(ctx context.Context, accountUUID string) } func (r *accountRepo) GetTransfersByAccountID(ctx context.Context, accountID, take, skip int64, origin bool) (transfers []entity.Transfer, totalRecords int64, err error) { - var params = []interface{}{} + var params = []any{} query := ` SELECT @@ -307,7 +307,7 @@ func (r *accountRepo) GetTransfersByAccountID(ctx context.Context, accountID, ta func (r *accountRepo) UpdateAccountBalance(ctx context.Context, accountID int64, balance float64) (err error) { - var params = []interface{}{} + var params = []any{} query := ` UPDATE tab_account