diff --git a/data/view/genstruct/common.go b/data/view/genstruct/common.go index 0adfca6..24230ff 100644 --- a/data/view/genstruct/common.go +++ b/data/view/genstruct/common.go @@ -76,9 +76,9 @@ func (s *GenStruct) SetStructName(name string) { // SetNotes set the notes.设置注释 func (s *GenStruct) SetNotes(notes string) { - // if len(notes) > 0 { - // notes = s.Name + " " + notes - // } + if len(notes) > 0 { + notes = s.Name + " " + notes + } a := strings.Split(notes, "\n") var text []string