Documentation
¶
Index ¶
Constants ¶
View Source
const ( SystemProvide uint8 = 1 WechatProvide uint8 = 2 )
Variables ¶
This section is empty.
Functions ¶
func GenerateAutoTitle ¶ added in v1.9.0
func GenerateCCTitle ¶ added in v1.8.0
func GenerateTitle ¶
Types ¶
type Field ¶ added in v1.10.0
type Field struct {
IsShort bool `json:"is_short"`
Tag string `json:"tag"`
Content string `json:"content"`
}
func AddRowSpacers ¶ added in v1.11.0
AddRowSpacers 为飞书双列排版自适应换行占位(每两个短元素插入一个空 spacer)
type Options ¶ added in v1.9.0
type Options struct {
Label string `json:"label"`
Value interface{} `json:"value"`
}
type Rule ¶
type Rule struct {
Type string `json:"type"`
Field string `json:"field"`
Title string `json:"title"`
Style map[string]interface{} `json:"style"`
NotifyHidden bool `json:"notify_hidden"`
Children []Rule `json:"children"`
Options []Options `json:"options"`
}
func FlattenRules ¶ added in v1.9.0
FlattenRules 扁平化处理函数,排除 type 为 "col" 和 "fcRow" 的规则本身,但递归保留它们的子规则
func ParseRules ¶
ParseRules 解析模版字段(兼顾兼容 string, []byte, map 或切片输入)
Click to show internal directories.
Click to hide internal directories.