mirror of
https://github.com/beego/bee.git
synced 2025-06-19 22:10:39 +00:00
support ignore struct not show
This commit is contained in:
2
bee.go
2
bee.go
@ -25,7 +25,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const version = "1.2.3"
|
||||
const version = "1.2.4"
|
||||
|
||||
type Command struct {
|
||||
// Run runs the command.
|
||||
|
@ -589,6 +589,9 @@ func getModel(str string) (pkgpath, objectname string, m swagger.Model, realType
|
||||
if desc := stag.Get("description"); desc != "" {
|
||||
mp.Description = desc
|
||||
}
|
||||
if ignore := stag.Get("ignore"); ignore != "" {
|
||||
continue
|
||||
}
|
||||
}
|
||||
m.Properties[name] = mp
|
||||
}
|
||||
|
Reference in New Issue
Block a user