mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 18:30:02 +08:00
(goctl): fix map conversion (#4306)
This commit is contained in:
@@ -78,7 +78,7 @@ func (a *Analyzer) astTypeToSpec(in ast.DataType) (spec.Type, error) {
|
|||||||
|
|
||||||
return spec.MapType{
|
return spec.MapType{
|
||||||
RawName: v.RawText(),
|
RawName: v.RawText(),
|
||||||
Key: v.RawText(),
|
Key: v.Key.RawText(),
|
||||||
Value: value,
|
Value: value,
|
||||||
}, nil
|
}, nil
|
||||||
case *ast.PointerDataType:
|
case *ast.PointerDataType:
|
||||||
|
|||||||
Reference in New Issue
Block a user