mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
0c0d02c6a6
commit
526bd76c4c
1 changed files with 5 additions and 5 deletions
|
|
@ -18,11 +18,11 @@ package av
|
||||||
|
|
||||||
// ViewGroup 描述了视图分组规则的结构。
|
// ViewGroup 描述了视图分组规则的结构。
|
||||||
type ViewGroup struct {
|
type ViewGroup struct {
|
||||||
Field string `json:"field"` // 分组字段 ID
|
Field string `json:"field"` // 分组字段 ID
|
||||||
Method GroupMethod `json:"method"` // 分组方式
|
Method GroupMethod `json:"method"` // 分组方式
|
||||||
Range *GroupRange `json:"range,omitempty"` // 分组范围
|
Range *GroupRange `json:"range,omitempty"` // 分组范围
|
||||||
Order GroupOrder `json:"order"` // 分组排序规则
|
Order GroupOrder `json:"order"` // 分组排序规则
|
||||||
HideEmpty bool `json:"hideEmpty,omitempty"` // 是否隐藏空分组
|
HideEmpty bool `json:"hideEmpty"` // 是否隐藏空分组
|
||||||
}
|
}
|
||||||
|
|
||||||
// GroupMethod 描述了分组方式。
|
// GroupMethod 描述了分组方式。
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue