新增菜单详情
This commit is contained in:
@@ -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"` // 角色
|
||||
|
||||
Reference in New Issue
Block a user