mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
support batch deleting transactions
This commit is contained in:
@@ -342,6 +342,12 @@ type TransactionDeleteRequest struct {
|
||||
Id int64 `json:"id,string" binding:"required,min=1"`
|
||||
}
|
||||
|
||||
// TransactionBatchDeleteRequest represents all parameters of transaction batch deleting request
|
||||
type TransactionBatchDeleteRequest struct {
|
||||
Ids []string `json:"ids,string" binding:"required"`
|
||||
Password string `json:"password" binding:"omitempty,min=6,max=128"`
|
||||
}
|
||||
|
||||
// YearMonthRangeRequest represents all parameters of a request with year and month range
|
||||
type YearMonthRangeRequest struct {
|
||||
StartYearMonth string `form:"start_year_month"`
|
||||
|
||||
Reference in New Issue
Block a user