model/user.go
@@ -34,6 +34,8 @@ Ip string `json:"ip" gorm:"type:varchar(255);comment:集群Ip"` Port string `json:"port" gorm:"type:varchar(255);comment:端口号"` Status int `json:"status" gorm:"type:int(11);comment:用户审核状态 0:禁用; 1:正常; 2:审核中"` AuthorityId uint `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID Authority Authority `json:"authority" gorm:"foreignKey:AuthorityId"` } UserSearch struct {