Documentation ¶
Index ¶
- type UserDao
- func (w *UserDao) GetDbOrm() *gorm.DB
- func (w *UserDao) GetUserInfoByMobile(ctx context.Context, appname, mobile string) (*UserInfo, error)
- func (w *UserDao) GetUserInfoByOpenID(ctx context.Context, appname, openID string) (*UserInfo, error)
- func (w *UserDao) GetUserInfoByUUID(ctx context.Context, appname, uuid string) (*UserInfo, error)
- func (w *UserDao) GetUserInfoByUnionID(ctx context.Context, appname, unionID string) (*UserInfo, error)
- func (w *UserDao) SetDbOrm(dbOrm *gorm.DB) error
- func (w *UserDao) UpdateUserBaseInfo(ctx context.Context, appname, uuid, openID, sessionKey string, status int, ...) (err error)
- func (w *UserDao) UpdateUserExtInfo(ctx context.Context, appname, uuid, unionid, nickname, avatar string, ...) (err error)
- func (w *UserDao) UpdateUserMobile(ctx context.Context, appname, uuid, mobile string) (err error)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDao ¶
type UserDao struct {
// contains filtered or unexported fields
}
UserDao ...
func (*UserDao) GetUserInfoByMobile ¶
func (w *UserDao) GetUserInfoByMobile(ctx context.Context, appname, mobile string) (*UserInfo, error)
GetUserInfoByMobile 手机号码获取用户信息
func (*UserDao) GetUserInfoByOpenID ¶
func (w *UserDao) GetUserInfoByOpenID(ctx context.Context, appname, openID string) (*UserInfo, error)
GetUserInfoByOpenID 获取用户信息
func (*UserDao) GetUserInfoByUUID ¶
GetUserInfoByUUID 获取用户信息
func (*UserDao) GetUserInfoByUnionID ¶
func (w *UserDao) GetUserInfoByUnionID(ctx context.Context, appname, unionID string) (*UserInfo, error)
GetUserInfoByUnionID 获取用户信息
func (*UserDao) UpdateUserBaseInfo ¶
func (w *UserDao) UpdateUserBaseInfo(ctx context.Context, appname, uuid, openID, sessionKey string, status int, inviter string) (err error)
UpdateUserBaseInfo ...
type UserInfo ¶
type UserInfo struct { ID int64 `json:"id"` Uuid string `json:"uuid"` Mobile string `json:"mobile"` InviterID string `json:"inviter"` NickName string `json:"nickname"` AvatarURL string `json:"avatar_url"` Gender int `json:"gender"` Language string `json:"language"` City string `json:"city"` Province string `json:"province"` Country string `json:"country"` Status int `json:"status"` IsNewUser int `json:"is_new_user"` OpenID string `json:"openid"` UnionID string `json:"unionid"` SessionKey string `json:"session_key"` CreatedTime time.Time `json:"create_time"` UpdatedTime time.Time `json:"last_login_time"` }
Click to show internal directories.
Click to hide internal directories.