mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
code refactor
This commit is contained in:
@@ -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
|
// 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" {
|
if accountIds == "" || accountIds == "0" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
// 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" {
|
if categoryIds == "" || categoryIds == "0" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user