diff --git a/pkg/api/transaction_tags.go b/pkg/api/transaction_tags.go index 93f78cbb..1d87d913 100644 --- a/pkg/api/transaction_tags.go +++ b/pkg/api/transaction_tags.go @@ -144,7 +144,7 @@ func (a *TransactionTagsApi) TagModifyHandler(c *core.WebContext) (any, *errs.Er return tagResp, nil } -// TagHideHandler hides an transaction tag by request parameters for current user +// TagHideHandler hides a transaction tag by request parameters for current user func (a *TransactionTagsApi) TagHideHandler(c *core.WebContext) (any, *errs.Error) { var tagHideReq models.TransactionTagHideRequest err := c.ShouldBindJSON(&tagHideReq) diff --git a/pkg/api/transaction_templates.go b/pkg/api/transaction_templates.go index 2744250e..d49ce79a 100644 --- a/pkg/api/transaction_templates.go +++ b/pkg/api/transaction_templates.go @@ -302,7 +302,7 @@ func (a *TransactionTemplatesApi) TemplateModifyHandler(c *core.WebContext) (any return templateResp, nil } -// TemplateHideHandler hides an transaction template by request parameters for current user +// TemplateHideHandler hides a transaction template by request parameters for current user func (a *TransactionTemplatesApi) TemplateHideHandler(c *core.WebContext) (any, *errs.Error) { var templateHideReq models.TransactionTemplateHideRequest err := c.ShouldBindJSON(&templateHideReq) diff --git a/pkg/cli/base.go b/pkg/cli/base.go index 2bfd350e..0c8bb215 100644 --- a/pkg/cli/base.go +++ b/pkg/cli/base.go @@ -2,7 +2,7 @@ package cli import "github.com/mayswind/ezbookkeeping/pkg/settings" -// CliUsingConfig represents an cli that need to use config +// CliUsingConfig represents a cli that need to use config type CliUsingConfig struct { container *settings.ConfigContainer } diff --git a/pkg/cli/user_data.go b/pkg/cli/user_data.go index d39189e1..027e8ce9 100644 --- a/pkg/cli/user_data.go +++ b/pkg/cli/user_data.go @@ -31,7 +31,7 @@ type UserDataCli struct { forgetPasswords *services.ForgetPasswordService } -// Initialize an user data cli singleton instance +// Initialize a user data cli singleton instance var ( UserData = &UserDataCli{ CliUsingConfig: CliUsingConfig{ diff --git a/pkg/converters/feidee_mymoney_transaction_data_xls_file_importer.go b/pkg/converters/feidee_mymoney_transaction_data_xls_file_importer.go index 455be6f2..3a2e6fb5 100644 --- a/pkg/converters/feidee_mymoney_transaction_data_xls_file_importer.go +++ b/pkg/converters/feidee_mymoney_transaction_data_xls_file_importer.go @@ -28,7 +28,7 @@ var feideeMymoneyTransactionTypeNameMapping = map[models.TransactionType]string{ models.TRANSACTION_TYPE_TRANSFER: "转账", } -// Initialize an feidee mymoney transaction data xls file importer singleton instance +// Initialize a feidee mymoney transaction data xls file importer singleton instance var ( FeideeMymoneyTransactionDataXlsImporter = &feideeMymoneyTransactionDataXlsImporter{ DataTableTransactionDataImporter{ diff --git a/pkg/models/transaction.go b/pkg/models/transaction.go index 18e34b4a..92f25de2 100644 --- a/pkg/models/transaction.go +++ b/pkg/models/transaction.go @@ -286,7 +286,7 @@ type TransactionStatisticResponse struct { Items []*TransactionStatisticResponseItem `json:"items"` } -// TransactionStatisticResponseItem represents total amount item for an response +// TransactionStatisticResponseItem represents total amount item for a response type TransactionStatisticResponseItem struct { CategoryId int64 `json:"categoryId,string"` AccountId int64 `json:"accountId,string"` @@ -314,7 +314,7 @@ type TransactionMonthAmountsResponseItem struct { Amounts []*TransactionAmountsResponseItemAmountInfo `json:"amounts"` } -// TransactionAmountsResponseItemAmountInfo represents amount info for an response item +// TransactionAmountsResponseItemAmountInfo represents amount info for a response item type TransactionAmountsResponseItemAmountInfo struct { Currency string `json:"currency"` IncomeAmount int64 `json:"incomeAmount"`