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

goctl dart error

Open tourdt opened this issue 2 years ago • 3 comments
trafficstars

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

Please try goctl v1.5.2, couple dart related bugs fixed.

kevwan avatar Jun 01 '23 15:06 kevwan

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

tourdt avatar Jun 02 '23 00:06 tourdt

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 13 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 14 '24 01:09 github-actions[bot]