support batch deleting transactions

This commit is contained in:
MaysWind
2026-04-25 20:01:16 +08:00
parent de885c963d
commit e4e74304b6
28 changed files with 428 additions and 86 deletions
+6
View File
@@ -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"`