mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +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
|
||||
}
|
||||
|
||||
if strings.Contains(name, "-") {
|
||||
name = fmt.Sprintf("'%s'", name)
|
||||
}
|
||||
|
||||
comment := member.GetComment()
|
||||
if len(comment) > 0 {
|
||||
comment = strings.TrimPrefix(comment, "//")
|
||||
|
||||
Reference in New Issue
Block a user