Skip to content

Commit

Permalink
chore: use type any instead of interface
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoclair committed Aug 17, 2024
1 parent e0acf71 commit 558d434
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra/data/mysql/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 = ?
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 558d434

Please sign in to comment.