新增全局变量问题

This commit is contained in:
2023-06-28 13:06:55 +08:00
parent e33721fcd8
commit d0f9eaea61
6 changed files with 39 additions and 61 deletions
+1 -1
View File
@@ -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"` // 岗位
}