add admin

This commit is contained in:
2026-08-07 15:40:17 +08:00
parent 10424d23d8
commit 56674a850e
28 changed files with 2066 additions and 569 deletions
+29
View File
@@ -0,0 +1,29 @@
package dao
type RoutesMenu struct {
Id int `json:"id"`
Name string `json:"name"`
ParentId int `json:"parent_id"`
Level uint8 `json:"level"`
Type uint8 `json:"type"`
Path string `json:"path"`
Api string `json:"api"`
ViewPath string `json:"view_path"`
Identification string `json:"identification"`
Icon string `json:"icon"`
Sort uint8 `json:"sort"`
IsShow uint8 `json:"is_show"`
Remarks string `json:"remarks"`
Children []RoutesMenu `json:"children"`
}
type RoutesAuth struct {
Id int `json:"id"`
Type uint8 `json:"type"`
Identification string `json:"identification"`
}
type Routes struct {
Menu []RoutesMenu `json:"menu"`
Auth []RoutesAuth `json:"auth"`
}