Browse Source

#1494

update
tags/v1.22.2.2^2
chenyifan01 3 years ago
parent
commit
f9bede5166
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      models/user.go

+ 5
- 0
models/user.go View File

@@ -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",


Loading…
Cancel
Save