Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/sdk/sdk.iclient.go generated by gf gen ctrl -k api/sdk miss some content #2816

Closed
windvalley opened this issue Jul 31, 2023 · 0 comments · Fixed by #2817
Closed

api/sdk/sdk.iclient.go generated by gf gen ctrl -k api/sdk miss some content #2816

windvalley opened this issue Jul 31, 2023 · 0 comments · Fixed by #2817
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.

Comments

@windvalley
Copy link
Contributor

1. What version of Go and system type/arch are you using?

go version go1.20.4 darwin/amd64

2. What version of GoFrame are you using?

GoFrame CLI Tool v2.5.1, https://goframe.org
GoFrame Version: v2.5.1 in current go.mod
CLI Installed At: /Users/xg/go/bin/gf
Current is a custom installed version, no installation information.

3. Can this issue be re-produced with the latest release?

yes

4. What did you do?

$ gf gen ctrl -k api/sdk

以上命令生成的api/sdk/sdk.iclient.go文件缺少必要的接口方法.

5. What did you expect to see?

vi api/sdk/sdk.iclient.go

// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. 
// =================================================================================

package sdk

import (
	"github.com/windvalley/gf2-demo/api/demo"
)

type IClient interface {
	DemoV1() demo.IDemoV1
}

6. What did you see instead?

vi api/sdk/sdk.iclient.go

// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. 
// =================================================================================

package sdk

import (
	"github.com/windvalley/gf2-demo/api/demo"
)

type IClient interface {

}
windvalley added a commit to windvalley/gf that referenced this issue Jul 31, 2023
Fix the issue that `api/sdk/sdk.iclient.go` generated by `gf gen ctrl -k api/sdk` miss some content.

Fixes gogf#2816.
windvalley added a commit to windvalley/gf that referenced this issue Jul 31, 2023
Fix the issue that `api/sdk/sdk.iclient.go` generated by `gf gen ctrl -k api/sdk` miss some content.

Fixes gogf#2816.
@gqcn gqcn closed this as completed in #2817 Aug 1, 2023
gqcn pushed a commit that referenced this issue Aug 1, 2023
@gqcn gqcn added bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version. labels Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants