You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
851 B

package model
import (
"time"
)
// FrontendRoute 前台路由模型
type FrontendRoute struct {
ID uint `gorm:"primarykey" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Path string `json:"path"` // 前台路由路径
Name string `json:"name"` // 路由名称
Component string `json:"component"` // 组件名称
Module string `json:"module"` // 所属模块
Description string `json:"description"` // 描述
Sort int `gorm:"default:0" json:"sort"` // 排序
Status int `gorm:"default:1" json:"status"` // 状态:1-启用,0-禁用
}
// TableName 指定表名
func (FrontendRoute) TableName() string {
return "frontend_routes"
}