bilibili-backup/app/service/main/member/model/user_flag.go
2019-04-22 02:59:20 +00:00

17 lines
253 B
Go

package model
const (
// NickUpdated 首次改昵称
NickUpdated = uint(1)
)
// HasAttr get attr.
func HasAttr(flag uint, bit uint) bool {
return flag&bit == bit
}
// SetAttr set attr.
func SetAttr(flag uint, bit uint) uint {
return flag | bit
}