This commit is contained in:
2025-06-16 15:48:55 +08:00
parent 346ade21f1
commit 90d1ef301d
47 changed files with 6233 additions and 112 deletions

View File

@@ -0,0 +1,10 @@
package system
type Category struct {
ID int32 `json:"id" gorm:"primaryKey;autoIncrement;not null"`
Name string `json:"name" gorm:"type:varchar(200);not null;uniqueIndex"`
}
func (Category) TableName() string {
return "categories"
}

View File

@@ -1,6 +1,11 @@
package view
import "time"
import (
"time"
"management/internal/erpserver/model/dto"
"management/internal/erpserver/model/system"
)
type LayuiTree struct {
ID string `json:"id"`
@@ -53,3 +58,13 @@ type MenuTree struct {
Children []*MenuTree `json:"children"`
}
type EditSysConfig struct {
*system.Config
Result string
}
type SetMenuView struct {
Role *system.Role
Menus []*dto.SetMenuDto
}