go-zero
go-zero copied to clipboard
goctl dart error
What category of issue (goctl
or sdk
)?
What type of issue (feature
|bug
|suggestion
)?
What version of Goctl are you using (goctl --version
)?
$ goctl --version 1.4.3
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using ?
GO_VERSION = "go1.18" OS = "darwin" ARCH = "arm64" GOCTL_VERSION = "1.4.3"
type (
ProductCollectAddReq {
Desc string json:"desc,optional" comment:"集合描述"
Videos []*Media json:"videos,optional" comment:"视频列表"
Pics []*Media json:"pics,optional" comment:"图片列表"
ParentShopId int64 json:"parentShopId,default=0" comment:"父店铺ID(供应商店铺ID)"
}
ProductCollectUpdateReq {
Id int64 `json:"id" comment:"产品集合ID"`
ProductCollectAddReq
}
)
goctl api dart -api api/app.api -dir ./tttt
get error: template: dataTemplate:14:40: executing "dataTemplate" at <getPropertyFromMember .>: error calling getPropertyFromMember: cannot get property name of ""