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 ""
Please try goctl v1.5.2, couple dart related bugs fixed.
Please try goctl v1.5.2, couple dart related bugs fixed.
I Update goctl to v1.5.2, 2023/06/02 08:42:38 template: dataTemplate:19:35: executing "dataTemplate" at <getPropertyFromMember .>: error calling getPropertyFromMember: cannot get property name of ""
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.