Versions in this module Expand all Collapse all v1 v1.0.4 Feb 19, 2024 v1.0.3 Feb 14, 2024 v1.0.2 Feb 8, 2024 v1.0.1 Feb 6, 2024 Changes in this version + func WithUserMobile(mobile string) gormx.SqlOptions + type AuthUserData struct + Active int + Gid string + Level int + Name string + Nid string + Password string + Status int + Type int + Uid string + type JwtUserClaims struct + Info AuthUserData + type User struct + Account string + Avatar string + Gender string + Info string + Mobile string + Name string + Pass string + Phone string + func (m *User) TableName() string + type UserAuth struct + AuthKey string + AuthType string + CreateTime time.Time + DelState int64 + DeleteTime time.Time + Id int64 + UpdateTime time.Time + UserId int64 + Version int64 + func (u *UserAuth) Delete(ctx context.Context, id int64) error + func (u *UserAuth) FindOne(ctx context.Context, id int64) (*UserAuth, error) + func (u *UserAuth) FindOneByAuthTypeAuthKey(ctx context.Context, authType string, authKey string) (*UserAuth, error) + func (u *UserAuth) FindOneByUserIdAuthType(ctx context.Context, userId int64, authType string) (*UserAuth, error) + func (u *UserAuth) Insert(ctx context.Context, data *UserAuth) error + func (u *UserAuth) Update(ctx context.Context, data *UserAuth) error + func (u *UserAuth) UpdateWithVersion(ctx context.Context, data *UserAuth) error + type UserAuthModel interface + Delete func(ctx context.Context, id int64) error + FindOne func(ctx context.Context, id int64) (*UserAuth, error) + FindOneByAuthTypeAuthKey func(ctx context.Context, authType string, authKey string) (*UserAuth, error) + FindOneByUserIdAuthType func(ctx context.Context, userId int64, authType string) (*UserAuth, error) + Insert func(ctx context.Context, data *UserAuth) error + Update func(ctx context.Context, data *UserAuth) error + UpdateWithVersion func(ctx context.Context, data *UserAuth) error + type UserModel interface + func NewUserModel(c *gofkConf.Config) UserModel