Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
type ICacheRepo ¶
type UserLocalCacheRepo ¶
type UserLocalCacheRepo struct { }
func (*UserLocalCacheRepo) GetUserByOpenid ¶
func (u *UserLocalCacheRepo) GetUserByOpenid(ctx *beanctx.BizContext, openid string) (*do.User, error)
func (*UserLocalCacheRepo) GetUserCacheKey ¶
func (u *UserLocalCacheRepo) GetUserCacheKey(openid string) string
func (*UserLocalCacheRepo) SetUserCache ¶
func (u *UserLocalCacheRepo) SetUserCache(ctx *beanctx.BizContext, user *do.User) error
type UserRedisRepo ¶
type UserRedisRepo struct { }
func (*UserRedisRepo) GetUserByOpenid ¶
func (u *UserRedisRepo) GetUserByOpenid(ctx *beanctx.BizContext, openid string) (*do.User, error)
func (*UserRedisRepo) GetUserCacheKey ¶
func (u *UserRedisRepo) GetUserCacheKey(openid string) string
func (*UserRedisRepo) SetUserCache ¶
func (u *UserRedisRepo) SetUserCache(ctx *beanctx.BizContext, user *do.User) error
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo() *UserRepo
func (*UserRepo) CreateUser ¶
func (*UserRepo) GetUserByOpenid ¶
Click to show internal directories.
Click to hide internal directories.