rule

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemProvide = 1
	WechatProvide = 2
)

Variables

This section is empty.

Functions

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"`
}

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