🎨 Database supports setting display field icons https://github.com/siyuan-note/siyuan/issues/15089

This commit is contained in:
Daniel 2025-06-30 15:06:43 +08:00
parent 921cddd2fa
commit 1991e2b76f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 60 additions and 51 deletions

View file

@ -36,6 +36,14 @@ type BaseLayout struct {
PageSize int `json:"pageSize,omitempty"` // 每页条目数
}
// BaseField 描述了字段的基础结构。
type BaseField struct {
ID string `json:"id"` // 字段 ID
Wrap bool `json:"wrap"` // 是否换行
Hidden bool `json:"hidden"` // 是否隐藏
Desc string `json:"desc,omitempty"` // 字段描述
}
// BaseValue 描述了字段值的基础结构。
type BaseValue struct {
ID string `json:"id"` // 字段值 ID