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 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) { func (a *TransactionTagsApi) TagHideHandler(c *core.WebContext) (any, *errs.Error) {
var tagHideReq models.TransactionTagHideRequest var tagHideReq models.TransactionTagHideRequest
err := c.ShouldBindJSON(&tagHideReq) err := c.ShouldBindJSON(&tagHideReq)
+1 -1
View File
@@ -302,7 +302,7 @@ func (a *TransactionTemplatesApi) TemplateModifyHandler(c *core.WebContext) (any
return templateResp, nil 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) { func (a *TransactionTemplatesApi) TemplateHideHandler(c *core.WebContext) (any, *errs.Error) {
var templateHideReq models.TransactionTemplateHideRequest var templateHideReq models.TransactionTemplateHideRequest
err := c.ShouldBindJSON(&templateHideReq) err := c.ShouldBindJSON(&templateHideReq)
+1 -1
View File
@@ -2,7 +2,7 @@ package cli
import "github.com/mayswind/ezbookkeeping/pkg/settings" 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 { type CliUsingConfig struct {
container *settings.ConfigContainer container *settings.ConfigContainer
} }
+1 -1
View File
@@ -31,7 +31,7 @@ type UserDataCli struct {
forgetPasswords *services.ForgetPasswordService forgetPasswords *services.ForgetPasswordService
} }
// Initialize an user data cli singleton instance // Initialize a user data cli singleton instance
var ( var (
UserData = &UserDataCli{ UserData = &UserDataCli{
CliUsingConfig: CliUsingConfig{ CliUsingConfig: CliUsingConfig{
@@ -28,7 +28,7 @@ var feideeMymoneyTransactionTypeNameMapping = map[models.TransactionType]string{
models.TRANSACTION_TYPE_TRANSFER: "转账", 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 ( var (
FeideeMymoneyTransactionDataXlsImporter = &feideeMymoneyTransactionDataXlsImporter{ FeideeMymoneyTransactionDataXlsImporter = &feideeMymoneyTransactionDataXlsImporter{
DataTableTransactionDataImporter{ DataTableTransactionDataImporter{
+2 -2
View File
@@ -286,7 +286,7 @@ type TransactionStatisticResponse struct {
Items []*TransactionStatisticResponseItem `json:"items"` Items []*TransactionStatisticResponseItem `json:"items"`
} }
// TransactionStatisticResponseItem represents total amount item for an response // TransactionStatisticResponseItem represents total amount item for a response
type TransactionStatisticResponseItem struct { type TransactionStatisticResponseItem struct {
CategoryId int64 `json:"categoryId,string"` CategoryId int64 `json:"categoryId,string"`
AccountId int64 `json:"accountId,string"` AccountId int64 `json:"accountId,string"`
@@ -314,7 +314,7 @@ type TransactionMonthAmountsResponseItem struct {
Amounts []*TransactionAmountsResponseItemAmountInfo `json:"amounts"` Amounts []*TransactionAmountsResponseItemAmountInfo `json:"amounts"`
} }
// TransactionAmountsResponseItemAmountInfo represents amount info for an response item // TransactionAmountsResponseItemAmountInfo represents amount info for a response item
type TransactionAmountsResponseItemAmountInfo struct { type TransactionAmountsResponseItemAmountInfo struct {
Currency string `json:"currency"` Currency string `json:"currency"`
IncomeAmount int64 `json:"incomeAmount"` IncomeAmount int64 `json:"incomeAmount"`