mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
support batch update tags for transactions
This commit is contained in:
@@ -327,17 +327,34 @@ type TransactionGetRequest struct {
|
||||
|
||||
// TransactionBatchUpdateCategoryRequest represents all parameters of transaction batch update category request
|
||||
type TransactionBatchUpdateCategoryRequest struct {
|
||||
TransactionIds []string `json:"transactionIds,string" binding:"required"`
|
||||
TransactionIds []string `json:"transactionIds" binding:"required"`
|
||||
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"`
|
||||
TransactionIds []string `json:"transactionIds" binding:"required"`
|
||||
AccountId int64 `json:"accountId,string" binding:"required"`
|
||||
IsDestinationAccount bool `json:"isDestinationAccount"`
|
||||
}
|
||||
|
||||
// TransactionBatchAddTagsRequest represents all parameters of transaction batch add tags request
|
||||
type TransactionBatchAddTagsRequest struct {
|
||||
TransactionIds []string `json:"transactionIds" binding:"required"`
|
||||
TagIds []string `json:"tagIds" binding:"required"`
|
||||
}
|
||||
|
||||
// TransactionBatchRemoveTagsRequest represents all parameters of transaction batch remove tags request
|
||||
type TransactionBatchRemoveTagsRequest struct {
|
||||
TransactionIds []string `json:"transactionIds" binding:"required"`
|
||||
TagIds []string `json:"tagIds" binding:"required"`
|
||||
}
|
||||
|
||||
// TransactionBatchClearTagsRequest represents all parameters of transaction batch clear tags request
|
||||
type TransactionBatchClearTagsRequest struct {
|
||||
TransactionIds []string `json:"transactionIds" binding:"required"`
|
||||
}
|
||||
|
||||
// TransactionMoveBetweenAccountsRequest represents all parameters of moving all transactions between accounts request
|
||||
type TransactionMoveBetweenAccountsRequest struct {
|
||||
FromAccountId int64 `json:"fromAccountId,string" binding:"required,min=1"`
|
||||
|
||||
Reference in New Issue
Block a user