按照模板格式配置数组, 数据过滤时逐层展开

This commit is contained in:
2024-11-29 15:51:33 +08:00
parent 69066c35c2
commit 7743ee14ce
4 changed files with 100 additions and 5 deletions

View File

@ -29,3 +29,16 @@ type PathResult struct {
List []string // 全部路径列表
ValueTable map[string]gjson.Result // 路径对应的值
}
const (
ArrayIdxTpl = "{{idx}}"
)
// ExpendArrayResult 展开数组的结果
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 15:46 2024/11/29
type ExpendArrayResult struct {
PathList []string `json:"path_list"` // 路径列表
}