优化表结构,重构模型,重新实现基于白银网关的提取节点流程
This commit is contained in:
14
web/models/user_role.go
Normal file
14
web/models/user_role.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"platform/web/core"
|
||||
)
|
||||
|
||||
// UserRole 用户角色表
|
||||
type UserRole struct {
|
||||
core.Model
|
||||
Name string `json:"name" gorm:"column:name"` // 角色名称
|
||||
Description *string `json:"description" gorm:"column:description"` // 角色描述
|
||||
Active bool `json:"active" gorm:"column:active"` // 是否激活
|
||||
Sort int32 `json:"sort" gorm:"column:sort"` // 排序
|
||||
}
|
||||
Reference in New Issue
Block a user