mirror of
https://github.com/beego/bee.git
synced 2024-11-24 13:30:53 +00:00
update tag
This commit is contained in:
parent
d30c68e72f
commit
89ae690fdd
@ -463,7 +463,9 @@ func getModel(str string) (objectname string, m swagger.Model) {
|
|||||||
for _, field := range st.Fields.List {
|
for _, field := range st.Fields.List {
|
||||||
mp := swagger.ModelProperty{}
|
mp := swagger.ModelProperty{}
|
||||||
mp.Type = fmt.Sprint(field.Type)
|
mp.Type = fmt.Sprint(field.Type)
|
||||||
|
if field.Tag != nil {
|
||||||
mp.Description = strings.Trim(field.Tag.Value, "`")
|
mp.Description = strings.Trim(field.Tag.Value, "`")
|
||||||
|
}
|
||||||
m.Properties[field.Names[0].Name] = mp
|
m.Properties[field.Names[0].Name] = mp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user