diff --git a/api2sql/execute.go b/api2sql/execute.go index 4dbb4b2..157fb8a 100644 --- a/api2sql/execute.go +++ b/api2sql/execute.go @@ -89,7 +89,7 @@ func (e *execute) List(ctx context.Context, inputParam *define.Api2SqlParam) (an // 动态生成结果解析结构体 st := wrapper.NewDynamic() for _, columnConfig := range inputParam.ColumnList { - tag := fmt.Sprintf(`gorm:"%v" json:"%v"`, columnConfig.Column, columnConfig.Alias) + tag := fmt.Sprintf(`%v`, columnConfig.Alias) column := wrapper.String(columnConfig.Column).SnakeCaseToCamel() switch columnConfig.Type { case "int", "int8", "int16", "int32", "int64":