httpclient支持mesh请求 #2

Merged
zhangdeman merged 26 commits from feature/upgrade_httpclient into master 2025-04-01 12:16:20 +08:00
Showing only changes of commit 655b6d3a21 - Show all commits

View File

@ -83,8 +83,9 @@ func (c *client) Request() *Response {
respByte := serialize.JSON.MarshalForByteIgnoreError(c.resp.AliasResultTable) respByte := serialize.JSON.MarshalForByteIgnoreError(c.resp.AliasResultTable)
fieldList := make([]validate.StructField, 0) fieldList := make([]validate.StructField, 0)
for _, item := range c.reqCfg.ResultRule { for _, item := range c.reqCfg.ResultRule {
pathArr := strings.Split(item.DataPath, ".")
fieldList = append(fieldList, validate.StructField{ fieldList = append(fieldList, validate.StructField{
JsonTag: "", JsonTag: pathArr[len(pathArr)-1],
Type: item.DataType, Type: item.DataType,
Required: false, Required: false,
RuleList: nil, RuleList: nil,