go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

goctl dart error

Open tourdt opened this issue 1 year ago • 3 comments

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 ""

tourdt avatar Jun 01 '23 01:06 tourdt