update comments

This commit is contained in:
MaysWind
2024-09-17 09:48:01 +08:00
parent cb69991f7f
commit 9f0e82446e
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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{
@@ -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{
+2 -2
View File
@@ -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"`