mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
fix: goctl api tsgen (#4726)
This commit is contained in:
@@ -34,6 +34,10 @@ func writeProperty(writer io.Writer, member spec.Member, indent int) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(name, "-") {
|
||||||
|
name = fmt.Sprintf("'%s'", name)
|
||||||
|
}
|
||||||
|
|
||||||
comment := member.GetComment()
|
comment := member.GetComment()
|
||||||
if len(comment) > 0 {
|
if len(comment) > 0 {
|
||||||
comment = strings.TrimPrefix(comment, "//")
|
comment = strings.TrimPrefix(comment, "//")
|
||||||
|
|||||||
Reference in New Issue
Block a user