mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0f24054d3d
commit
ae737173b4
3 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ import (
|
||||||
|
|
||||||
// ViewFilter 描述了视图过滤规则的结构。
|
// ViewFilter 描述了视图过滤规则的结构。
|
||||||
type ViewFilter struct {
|
type ViewFilter struct {
|
||||||
Column string `json:"column"` // 列(字段)ID
|
Column string `json:"column"` // 字段(列)ID
|
||||||
Qualifier FilterQuantifier `json:"quantifier,omitempty"` // 量词
|
Qualifier FilterQuantifier `json:"quantifier,omitempty"` // 量词
|
||||||
Operator FilterOperator `json:"operator"` // 操作符
|
Operator FilterOperator `json:"operator"` // 操作符
|
||||||
Value *Value `json:"value"` // 过滤值
|
Value *Value `json:"value"` // 过滤值
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import (
|
||||||
|
|
||||||
// ViewSort 描述了视图排序规则的结构。
|
// ViewSort 描述了视图排序规则的结构。
|
||||||
type ViewSort struct {
|
type ViewSort struct {
|
||||||
Column string `json:"column"` // 列(字段)ID
|
Column string `json:"column"` // 字段(列)ID
|
||||||
Order SortOrder `json:"order"` // 排序顺序
|
Order SortOrder `json:"order"` // 排序顺序
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -702,7 +702,7 @@ type ValuePhone struct {
|
||||||
type AssetType string
|
type AssetType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AssetTypeFile = "file"
|
AssetTypeFile = "file" // 链接也使用文件类型
|
||||||
AssetTypeImage = "image"
|
AssetTypeImage = "image"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue