Versions in this module Expand all Collapse all v1 v1.10.0 Dec 27, 2024 v1.9.0 Aug 11, 2024 v1.8.2 Jun 22, 2024 Changes in this version + const DefaultDatabase + const UserDatabase + func GetUserDB() (*gorm.DB, error) v1.8.1 Nov 19, 2023 v1.8.0 Aug 8, 2023 v1.7.0 Jan 5, 2023 v1.6.0 Jun 16, 2022 v1.4.0 Jan 3, 2022 Changes in this version + var DB *gorm.DB + func GetDB() *gorm.DB + func Init() *gorm.DB + func WhereBuild(where map[string]interface{}) (whereSQL string, vals []interface{}, err error) + type NullType byte + const IsNotNull + const IsNull + type Token struct + Token string + type UserBaseModel struct + Avatar string + CreatedAt time.Time + Email string + ID uint64 + Password string + Phone int64 + Sex int + UpdatedAt time.Time + Username string + func (u *UserBaseModel) TableName() string + func (u *UserBaseModel) Validate() error + type UserFansModel struct + CreatedAt time.Time + FollowerUID uint64 + ID uint64 + Status int + UpdatedAt time.Time + UserID uint64 + func (u *UserFansModel) TableName() string + type UserFollow struct + FansNum int + FollowNum int + IsFans int + IsFollow int + type UserFollowModel struct + CreatedAt time.Time + FollowedUID uint64 + ID uint64 + Status int + UpdatedAt time.Time + UserID uint64 + func (u *UserFollowModel) TableName() string + type UserInfo struct + Avatar string + ID uint64 + Sex int + UserFollow *UserFollow + Username string + type UserList struct + IDMap map[uint64]*UserInfo + Lock *sync.Mutex + type UserStatModel struct + CreatedAt time.Time + FollowCount int + FollowerCount int + ID uint64 + Status int + UpdatedAt time.Time + UserID uint64 + func (u *UserStatModel) TableName() string v0 v0.0.18-test May 20, 2023 v0.0.17-test May 20, 2023 v0.0.16-test May 20, 2023 v0.0.15-test May 20, 2023 v0.0.14-test May 20, 2023 v0.0.13-test May 20, 2023 v0.0.9-test May 6, 2023 v0.0.8-test May 6, 2023 v0.0.1-test May 2, 2023