♻️ Refactor av

This commit is contained in:
Daniel 2025-06-08 12:08:31 +08:00
parent d80bed7b85
commit 9fd0565a61
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 31 additions and 19 deletions

View file

@ -24,12 +24,16 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
// Sortable 接口定义了可排序的视图类型。
type Sortable interface {
SortRows(attrView *AttributeView)
// Sort 根据视图中设置的排序规则进行排序。
Sort(attrView *AttributeView)
}
// ViewSort 描述了视图排序规则的结构。
type ViewSort struct {
Column string `json:"column"` // 列 ID
Column string `json:"column"` // 列(字段)ID
Order SortOrder `json:"order"` // 排序顺序
}