修复聚合请求结果json tag未设置的问题
This commit is contained in:
parent
53ed0fe04f
commit
655b6d3a21
@ -83,8 +83,9 @@ func (c *client) Request() *Response {
|
||||
respByte := serialize.JSON.MarshalForByteIgnoreError(c.resp.AliasResultTable)
|
||||
fieldList := make([]validate.StructField, 0)
|
||||
for _, item := range c.reqCfg.ResultRule {
|
||||
pathArr := strings.Split(item.DataPath, ".")
|
||||
fieldList = append(fieldList, validate.StructField{
|
||||
JsonTag: "",
|
||||
JsonTag: pathArr[len(pathArr)-1],
|
||||
Type: item.DataType,
|
||||
Required: false,
|
||||
RuleList: nil,
|
||||
|
Loading…
x
Reference in New Issue
Block a user