新增菜单详情

This commit is contained in:
2023-06-28 13:20:59 +08:00
parent d0f9eaea61
commit 6e6e3803e4
3 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type AdminUser struct {
Avatar string `gorm:"column:avatar;type:varchar(255);comment:'头像'" json:"avatar"`
Sex int `gorm:"column:sex;type:tinyint(1);comment:'性别(1:男 2:女)'" json:"sex"`
Email string `gorm:"column:email;type:varchar(100);comment:'邮箱'" json:"email"`
RoleID int64 `gorm:"column:role_id;type:bigint(19);comment:'角色'" json:"role_id"`
RoleID int64 `gorm:"column:role_id;type:bigint(19);comment:'角色id'" json:"role_id"`
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"` // 角色