mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 22:22:34 +01:00
♻️ Refactor av
This commit is contained in:
parent
d80bed7b85
commit
9fd0565a61
6 changed files with 31 additions and 19 deletions
|
|
@ -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"` // 排序顺序
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue