mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 10:20:00 +08:00
feat: add gen api @doc comment to logic handler routes (#3790)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ type {{.logic}} struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
{{if .hasDoc}}{{.doc}}{{end}}
|
||||
func New{{.logic}}(ctx context.Context, svcCtx *svc.ServiceContext) *{{.logic}} {
|
||||
return &{{.logic}}{
|
||||
Logger: logx.WithContext(ctx),
|
||||
|
||||
Reference in New Issue
Block a user