优化结构
This commit is contained in:
@@ -10,31 +10,6 @@ type IgnoredAPI struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
// AdminMenu describes a menu entry contributed by a module. ParentName is
|
||||
// resolved by the system persistence layer so feature modules do not need to
|
||||
// know the menu PO shape.
|
||||
type AdminMenu struct {
|
||||
Name string
|
||||
Path string
|
||||
ParentName string
|
||||
Component string
|
||||
Title string
|
||||
Icon string
|
||||
Sort int
|
||||
}
|
||||
|
||||
type AdminAPI struct {
|
||||
Path string
|
||||
Method string
|
||||
APIGroup string
|
||||
Description string
|
||||
}
|
||||
|
||||
type AdminSurface struct {
|
||||
Menus []AdminMenu
|
||||
APIs []AdminAPI
|
||||
}
|
||||
|
||||
func DefaultIgnoredAPIs(staticPath string) []IgnoredAPI {
|
||||
staticRoute := "/" + strings.Trim(staticPath, "/") + "/*filepath"
|
||||
return []IgnoredAPI{
|
||||
|
||||
Reference in New Issue
Block a user