Opt: status and role data type

pull/134/head
zijiren233 2 years ago
parent 197ba81529
commit addc70ba38

@ -6,7 +6,7 @@ import (
"time"
)
type RoomMemberStatus uint64
type RoomMemberStatus uint8
const (
RoomMemberStatusUnknown RoomMemberStatus = iota
@ -72,7 +72,7 @@ func (p RoomMemberPermission) Remove(permission RoomMemberPermission) RoomMember
return p &^ permission
}
type RoomMemberRole uint
type RoomMemberRole uint8
const (
RoomMemberRoleUnknown RoomMemberRole = iota

@ -9,7 +9,7 @@ import (
"gorm.io/gorm"
)
type RoomStatus uint64
type RoomStatus uint8
const (
RoomStatusBanned RoomStatus = 1

@ -11,7 +11,7 @@ import (
"gorm.io/gorm"
)
type Role uint
type Role uint8
const (
RoleBanned Role = 1

Loading…
Cancel
Save