Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2020 Changes in this version + const AllMembers + const BackendAdminModulo + const BackendAdminRemainder + const CGFriends + const CGHome + const CGMates + const CGOffice + const CGUnsorted + const CGWork + const DefaultChannel + const DefaultLanguage + const DefaultLocale + const DefaultNilTimeNano + const DefaultTimezone + const DefaultVersion + const RoleAdmin + const RoleAdvanced + const RoleCMSAdmin + const RoleCMSEditor + const RoleCMSPoster + const RoleCMSUser + const RoleDeveloper + const RoleGuest + const RoleImAdmin + const RoleImUser + const RolePowered + const RoleUser + const RoleVIP + const SexFemale + const SexMale + const SexUnspecified + const SexViolate + const StatusMaskBlocked + const StatusMaskValid + const StatusStandardInvalid + const StatusStandardValid + const SystemBotId + const SystemBotLoginName + const SystemBotUnique + const UTCTimezone + const UniqueIdLength + const UserTypeAppBotMask + const UserTypeBotMask + const UserTypeFilterBotMask + const UserTypeHookBotMask + const UserTypeIoTMask + const UserTypeNormal + const UserTypeOrgBotMask + const UserTypeSpecial + const UserTypeSpecialMask + const UserTypeTopicBotMask + var DefaultGenerator = &Generator + var DefaultNilTime time.Time + type BaseModel struct + CreatedAt time.Time + DeletedAt *time.Time + Id uint64 + Limit int + Offset int + SortBy string + UpdatedAt time.Time + type BasicResp struct + Count int + Msg string + Status bool + type BxModel struct + CreatedAt time.Time + Id uint64 + UpdatedAt time.Time + type Circle struct + Content string + Footer string + HeadUrl string + Header string + Pid uint64 + Remarks string + Title string + UserId uint64 + func (Circle) TableName() string + type CircleImage struct + BaseName string + CircleId uint64 + LocalPath string + Mime string + Size int64 + Url string + UserId uint64 + func (CircleImage) TableName() string + type Contact struct + Avatar string + CreatedAt time.Time + DeletedAt time.Time + Email string + Email1 string + Email1For string + Email2 string + Email2For string + EmailFor string + FromRemarks string + FromSrc string + FullName string + Id uint64 + ImportRemarks string + Nickname string + OrgName string + Remarks string + Signature string + Slogan string + Tags string + Tel string + Tel1 string + Tel1For string + Tel2 string + Tel2For string + TelFor string + Title string + Type int32 + Uid uint64 + UpdatedAt time.Time + func (r *Contact) TableName() string + type ContactGroup struct + CreatedAt time.Time + DeletedAt time.Time + Id uint64 + Name string + UidOwner uint64 + UpdatedAt time.Time + type ContactLinks struct + ContactId uint64 + LinkId uint64 + Uid uint64 + type ContactRelation struct + Cid uint64 + CreatedAt time.Time + DeletedAt time.Time + Gid uint64 + RelationShip int + RemarkAvatar string + RemarkEmail string + RemarkMobile string + RemarkName string + RemarkOrgName string + RemarkTags string + RemarkTitle string + Remarks string + UidOwner uint64 + UpdatedAt time.Time + type GenderType int16 + const GenderFemale + const GenderMale + const GenderUnspecified + const GenderViolated + func (gt GenderType) Parse(gender string) GenderType + func (gt GenderType) String() string + type Generator struct + func (r *Generator) Encode(s string) (ret string) + func (r *Generator) IsRandomEmail(email string) bool + func (r *Generator) IsRandomMobile(mobile string) bool + func (r *Generator) NewPassword() string + func (r *Generator) NewRandomEmail() string + func (r *Generator) NewRandomMobile() string + func (r *Generator) NewRandomString(length int) string + func (r *Generator) NewUniqueId(src string, length int) string + func (r *Generator) PasswordMatched(testPwd, pwdHashInDB string) (matched bool) + type GivenName struct + Description *string + GivenMobile *string + GivenName *string + Identities []Identity + NameFirst *string + NameLast *string + NameMid *string + NameTitle *string + Remarks *string + UserID uint64 + type Identity struct + IdentNumber string + IdentType string + type Language struct + Name string + type Location struct + City *string + Country *string + Description *string + Latitude float32 + Longitude float32 + PostCode *string + Remarks *string + State *string + Street *string + Title *string + TzDescription *string + TzOffset int + type NormalUser struct + Blocked bool + Forbidden bool + ImportRemarks bool + Ip bool + JsonProfile bool + Openid bool + Password bool + PlatId bool + Privilege bool + Roles bool + Salt bool + Status bool + Unionid bool + UserId bool + type Role struct + Id uint64 + Remarks string + RoleDesc string + RoleName string + type User struct + Avatar *string + AvatarLarge *string + AvatarMedium *string + Birthday *string + Blocked bool + Cell string + Channel string + City *string + Country *string + DescLine *string + Email string + Forbidden bool + FullName *string + Gender GenderType + GivenName GivenName + IdentNumber *string + IdentType *string + Identities []Identity + ImportRemarks *string + InvokeStatus bool + Ip *string + JsonProfile *string + Lang string + Languages []Language + LocationId uint64 + Locations []Location + LoginName string + Nationalities *string + Nickname *string + Openid *string + Password string + Phone *string + PlatId uint64 + Privilege *string + Remarks *string + Roles []string + Salt string + SloganLine *string + State *string + Status int + StatusLine *string + Street *string + TitleLine *string + Token string + Type int + Tz string + Unionid *string + UniqueId string + UserId uint64 + func (r *User) AfterUpdate(scope *gorm.Scope) + func (r *User) Age() int32 + func (r *User) BeforeCreate() + func (r *User) BeforeInsert() + func (r *User) DisplayName() (ret string) + func (r *User) IsAppBot() bool + func (r *User) IsBot() bool + func (r *User) IsFilterBot() bool + func (r *User) IsHookBot() bool + func (r *User) IsIoTDevice() bool + func (r *User) IsNormal() bool + func (r *User) IsOrgBot() bool + func (r *User) IsPasswordMatched(testPwd string) bool + func (r *User) IsRandomEmail() bool + func (r *User) IsRandomLoginName() bool + func (r *User) IsRandomMobile() bool + func (r *User) IsSpecial() bool + func (r *User) IsTopicBot() bool + func (r *User) NewEncodePwd() + func (r *User) NewUniqueId() + type UserDevice struct + CreatedAt time.Time + DeletedAt time.Time + Id int64 + ImportRemarks string + Model string + Nickname string + Remarks string + SystemOs string + SystemVersion string + Uid int64 + Unique string + UpdatedAt time.Time + type UserRole struct + RoleId uint64 + UserId uint64