From d6ee8a416fce15023f074e14be9d654da1507716 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Thu, 24 Jul 2025 23:03:58 +0800 Subject: [PATCH] code refactor --- pkg/services/accounts.go | 2 +- pkg/services/transaction_categories.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/accounts.go b/pkg/services/accounts.go index 49397e75..cb313b2d 100644 --- a/pkg/services/accounts.go +++ b/pkg/services/accounts.go @@ -849,7 +849,7 @@ func (s *AccountService) GetAccountNames(accounts []*models.Account) []string { } // GetAccountOrSubAccountIds returns a list of account ids or sub-account ids according to given account ids -func (s *AccountService) GetAccountOrSubAccountIds(c *core.WebContext, accountIds string, uid int64) ([]int64, error) { +func (s *AccountService) GetAccountOrSubAccountIds(c core.Context, accountIds string, uid int64) ([]int64, error) { if accountIds == "" || accountIds == "0" { return nil, nil } diff --git a/pkg/services/transaction_categories.go b/pkg/services/transaction_categories.go index 9bf8f403..9416d3fd 100644 --- a/pkg/services/transaction_categories.go +++ b/pkg/services/transaction_categories.go @@ -543,7 +543,7 @@ func (s *TransactionCategoryService) GetCategoryNames(categories []*models.Trans } // GetCategoryOrSubCategoryIds returns all category ids and sub-category ids according to given category ids -func (s *TransactionCategoryService) GetCategoryOrSubCategoryIds(c *core.WebContext, categoryIds string, uid int64) ([]int64, error) { +func (s *TransactionCategoryService) GetCategoryOrSubCategoryIds(c core.Context, categoryIds string, uid int64) ([]int64, error) { if categoryIds == "" || categoryIds == "0" { return nil, nil }