|
@@ -40,7 +40,10 @@ type AreaDom struct {
|
|
|
Url string `json:"url"`
|
|
|
}
|
|
|
|
|
|
-var JyAreaLocation []*AreaLocation
|
|
|
+var (
|
|
|
+ JyAreaLocation []*AreaLocation
|
|
|
+ JyTopMenuSpecial []map[string]interface{}
|
|
|
+)
|
|
|
|
|
|
var initAreaLocations = func() []*AreaLocation {
|
|
|
var jyAreaLocation []*AreaLocation
|
|
@@ -63,3 +66,10 @@ func GetAreaLocations() []*AreaLocation {
|
|
|
}
|
|
|
return JyAreaLocation
|
|
|
}
|
|
|
+
|
|
|
+func GetTopMenuSpecial() []map[string]interface{} {
|
|
|
+ if len(JyTopMenuSpecial) == 0 {
|
|
|
+ return g.Cfg("index").MustGet(context.Background(), "topMenuSpecial").Maps()
|
|
|
+ }
|
|
|
+ return JyTopMenuSpecial
|
|
|
+}
|