新增全局变量问题
This commit is contained in:
@@ -19,7 +19,7 @@ type AdminUser struct {
|
||||
DeptID int64 `gorm:"column:dept_id;type:bigint(19);comment:'部门id'" json:"dept_id"`
|
||||
PostID int64 `gorm:"column:post_id;type:bigint(19);comment:'岗位id'" json:"post_id"`
|
||||
Role *AdminRole `gorm:"foreignKey:RoleID"` // 角色
|
||||
Dept *AdminMenu `gorm:"foreignKey:DeptID"` // 部门
|
||||
Dept *AdminDept `gorm:"foreignKey:DeptID"` // 部门
|
||||
Post *AdminPost `gorm:"foreignKey:PostID"` // 岗位
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user