You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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 |
|
}
|
|
|