mirror of
https://github.com/beego/bee.git
synced 2024-11-26 01:11:30 +00:00
support ignore struct not show
This commit is contained in:
parent
2e408fa881
commit
27fecfbe75
2
bee.go
2
bee.go
@ -25,7 +25,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "1.2.3"
|
const version = "1.2.4"
|
||||||
|
|
||||||
type Command struct {
|
type Command struct {
|
||||||
// Run runs the command.
|
// Run runs the command.
|
||||||
|
13
g_docs.go
13
g_docs.go
@ -334,11 +334,11 @@ func isSystemPackage(pkgpath string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO(zh):support go1.4
|
//TODO(zh):support go1.4
|
||||||
wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath))
|
wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath))
|
||||||
if utils.FileExists(wg) {
|
if utils.FileExists(wg) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -589,6 +589,9 @@ func getModel(str string) (pkgpath, objectname string, m swagger.Model, realType
|
|||||||
if desc := stag.Get("description"); desc != "" {
|
if desc := stag.Get("description"); desc != "" {
|
||||||
mp.Description = desc
|
mp.Description = desc
|
||||||
}
|
}
|
||||||
|
if ignore := stag.Get("ignore"); ignore != "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
m.Properties[name] = mp
|
m.Properties[name] = mp
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user