feat(distribution): 优化货架批量操作、结算大事务、大盘与前台多端解析缓存及货架分页

This commit is contained in:
yml2213
2026-09-11 12:59:33 +08:00
parent 9ae6d5eaea
commit 3508608a8f
10 changed files with 518 additions and 48 deletions
+30 -2
View File
@@ -408,9 +408,37 @@ type UpdateAccountMarkupRequest struct {
ShelfRatioDelta float64 `json:"shelf_ratio_delta"`
}
type AccountMarkupItem struct {
ID uint64 `json:"id,omitempty"`
ListingID uint64 `json:"listing_id,omitempty"`
ShelfRatioDelta float64 `json:"shelf_ratio_delta"`
}
type BatchUpdateAccountMarkupRequest struct {
ListingIDs []uint64 `json:"listing_ids" binding:"required"`
ShelfRatioDelta float64 `json:"shelf_ratio_delta"`
ListingIDs []uint64 `json:"listing_ids"`
DisplayIDs []uint64 `json:"display_ids"`
ShelfRatioDelta float64 `json:"shelf_ratio_delta"`
Items []AccountMarkupItem `json:"items"`
}
type BatchUpdateAccountDisplayRequest struct {
DisplayIDs []uint64 `json:"display_ids"`
ListingIDs []uint64 `json:"listing_ids"`
TargetStatus string `json:"target_status" binding:"required,oneof=enabled disabled"`
}
type AccountDisplayQuery struct {
Page int `form:"page" json:"page"`
PageSize int `form:"page_size" json:"page_size"`
Status string `form:"status" json:"status"`
Keyword string `form:"keyword" json:"keyword"`
}
type AccountDisplayPageDTO struct {
Items []AccountDisplayDTO `json:"items"`
Total int64 `json:"total"`
Page int `json:"page"`
PageSize int `json:"page_size"`
}
// 商户钱包与提现 DTO