rule

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemProvide = 1
	WechatProvide = 2
)

Variables

This section is empty.

Functions

func GenerateCCTitle added in v1.8.0

func GenerateCCTitle(displayName string, templateName string) string

func GenerateTitle

func GenerateTitle(displayName string, templateName string) string

func GetFields

func GetFields(rules []Rule, provide uint8, data map[string]interface{}) []card.Field

Types

type Data

type Data struct {
	Provide  uint8
	OderData map[string]interface{}
}

type Rule

type Rule struct {
	Type  string                 `json:"type"`
	Field string                 `json:"field"`
	Title string                 `json:"title"`
	Style map[string]interface{} `json:"style"`
}

func ParseRules

func ParseRules(ruleData interface{}) ([]Rule, error)

ParseRules 解析模版字段

type Rules

type Rules []Rule

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL