1 Star 0 Fork 0

庞飞 / multiapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Roles.go 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
庞飞 提交于 2023-10-08 10:22 . 调整
package sysmodel
import (
"gitee.com/pangxianfei/multiapp/kernel/zone"
)
// SysRoles 角色表
type SysRoles struct {
Id int64 `gorm:"column:id;type:int(11) unsigned;primary_key;AUTO_INCREMENT" json:"id"`
Name string `gorm:"column:name;type:varchar(255);NOT NULL" json:"name"`
AppId int64 `gorm:"column:app_id;type:int(11) unsigned;NOT NULL" json:"app_id"`
CreatedAt zone.Time `gorm:"column:created_at"`
UpdatedAt zone.Time `gorm:"column:updated_at"`
Permissions []RolePermissions `gorm:"foreignKey:RoleId"`
}
// TableName 指定表
func (s *SysRoles) TableName() string {
return "sys_roles"
}
Go
1
https://gitee.com/pangxianfei/multiapp.git
git@gitee.com:pangxianfei/multiapp.git
pangxianfei
multiapp
multiapp
v1.2.3

搜索帮助

53164aa7 5694891 3bd8fe86 5694891