v3
This commit is contained in:
75
internal/pkg/know/pearadmin/pearadmin.go
Normal file
75
internal/pkg/know/pearadmin/pearadmin.go
Normal file
@@ -0,0 +1,75 @@
|
||||
package pearadmin
|
||||
|
||||
import "management/internal/db/model/dto"
|
||||
|
||||
const PearKey = "PEAR_JSON"
|
||||
|
||||
var PearJson = &dto.PearConfig{
|
||||
Logo: dto.Logo{
|
||||
Title: "Pear Admin",
|
||||
Image: "/statics/admin/images/logo.png",
|
||||
},
|
||||
Menu: dto.Menu{
|
||||
Data: "/system/menus",
|
||||
Method: "GET",
|
||||
Accordion: false,
|
||||
Collapse: false,
|
||||
Control: true,
|
||||
Select: "10",
|
||||
Async: true,
|
||||
},
|
||||
Tab: dto.Tab{
|
||||
Enable: true,
|
||||
KeepState: true,
|
||||
Session: true,
|
||||
Preload: false,
|
||||
Max: "30",
|
||||
Index: dto.Index{
|
||||
Id: "10",
|
||||
Href: "",
|
||||
Title: "首页",
|
||||
},
|
||||
},
|
||||
Theme: dto.Theme{
|
||||
DefaultColor: "1",
|
||||
DefaultMenu: "dark-theme",
|
||||
DefaultHeader: "light-theme",
|
||||
AllowCustom: true,
|
||||
Banner: false,
|
||||
},
|
||||
Colors: []dto.Colors{
|
||||
{
|
||||
Id: "1",
|
||||
Color: "#2d8cf0",
|
||||
Second: "#ecf5ff",
|
||||
},
|
||||
{
|
||||
Id: "2",
|
||||
Color: "#36b368",
|
||||
Second: "#f0f9eb",
|
||||
},
|
||||
{
|
||||
Id: "3",
|
||||
Color: "#f6ad55",
|
||||
Second: "#fdf6ec",
|
||||
},
|
||||
{
|
||||
Id: "4",
|
||||
Color: "#f56c6c",
|
||||
Second: "#fef0f0",
|
||||
},
|
||||
{
|
||||
Id: "5",
|
||||
Color: "#3963bc",
|
||||
Second: "#ecf5ff",
|
||||
},
|
||||
},
|
||||
Other: dto.Other{
|
||||
KeepLoad: "200",
|
||||
AutoHead: false,
|
||||
Footer: false,
|
||||
},
|
||||
Header: dto.Header{
|
||||
Message: "/statics/admin/data/message.json",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user