support batch update accounts for transactions

This commit is contained in:
MaysWind
2026-04-25 23:17:33 +08:00
parent e38ba2ea0a
commit bab7a0041b
27 changed files with 461 additions and 0 deletions
+7
View File
@@ -331,6 +331,13 @@ type TransactionBatchUpdateCategoryRequest struct {
CategoryId int64 `json:"categoryId,string" binding:"required"`
}
// TransactionBatchUpdateAccountRequest represents all parameters of transaction batch update account request
type TransactionBatchUpdateAccountRequest struct {
TransactionIds []string `json:"transactionIds,string" binding:"required"`
AccountId int64 `json:"accountId,string" binding:"required"`
IsDestinationAccount bool `json:"isDestinationAccount"`
}
// TransactionMoveBetweenAccountsRequest represents all parameters of moving all transactions between accounts request
type TransactionMoveBetweenAccountsRequest struct {
FromAccountId int64 `json:"fromAccountId,string" binding:"required,min=1"`