|
|
@@ -188,6 +188,11 @@ type SearchOrganizationsOptions struct { |
|
|
|
All bool |
|
|
|
} |
|
|
|
|
|
|
|
// GenerateRandomAvatar generates a random avatar for user. |
|
|
|
func (u *User) IsBindWechat() bool { |
|
|
|
return u.WechatOpenId != "" |
|
|
|
} |
|
|
|
|
|
|
|
// ColorFormat writes a colored string to identify this struct |
|
|
|
func (u *User) ColorFormat(s fmt.State) { |
|
|
|
log.ColorFprintf(s, "%d:%s", |
|
|
|