This commit is contained in:
Daniel 2025-07-24 11:05:29 +08:00
parent 54f2d8599e
commit 684286fc8a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 26 additions and 19 deletions

View file

@ -18,10 +18,11 @@ package av
// ViewGroup 描述了视图分组规则的结构。
type ViewGroup struct {
Field string `json:"field"` // 分组字段 ID
Method GroupMethod `json:"method"` // 分组方式
Range *GroupRange `json:"range,omitempty"` // 分组范围
Order GroupOrder `json:"order"` // 分组排序规则
Field string `json:"field"` // 分组字段 ID
Method GroupMethod `json:"method"` // 分组方式
Range *GroupRange `json:"range,omitempty"` // 分组范围
Order GroupOrder `json:"order"` // 分组排序规则
HideEmpty bool `json:"hideEmpty,omitempty"` // 是否隐藏空分组
}
// GroupMethod 描述了分组方式。