Documentation ¶
Index ¶
- type Dao
- type PassAndSalt
- type Timing
- type User
- type UserBase
- type UserDao
- func (d *UserDao) CacheDelUserBaseByUid(ctx context.Context, uid uint64) error
- func (d *UserDao) CacheGetUserBaseByUid(ctx context.Context, uid uint64) (*UserBase, error)
- func (d *UserDao) CacheSetUserBase(ctx context.Context, u *UserBase) error
- func (d *UserDao) Delete(ctx context.Context, uid uint64) error
- func (d *UserDao) FindByTel(ctx context.Context, tel string) (*User, error)
- func (d *UserDao) FindByUid(ctx context.Context, uid uint64) (*User, error)
- func (d *UserDao) FindPassAndSaltByUid(ctx context.Context, uid uint64) (*PassAndSalt, error)
- func (d *UserDao) FindUserBaseByTel(ctx context.Context, tel string) (*UserBase, error)
- func (d *UserDao) FindUserBaseByUid(ctx context.Context, uid uint64) (*UserBase, error)
- func (d *UserDao) FindUserBaseByUids(ctx context.Context, uids []uint64) ([]*UserBase, error)
- func (d *UserDao) Insert(ctx context.Context, user *User) error
- func (d *UserDao) UpdateAvatar(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateEmail(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateGender(ctx context.Context, value int8, uid uint64) error
- func (d *UserDao) UpdateNickname(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdatePass(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateSalt(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateStyleSign(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateTel(ctx context.Context, value string, uid uint64) error
- func (d *UserDao) UpdateUserBase(ctx context.Context, base *UserBase) error
- type UserSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PassAndSalt ¶
仅有部分查询结果的定义
type User ¶
type User struct { UserBase UserSecret }
type UserBase ¶
type UserBase struct { Uid uint64 `db:"uid" json:"uid"` Nickname string `db:"nickname" json:"nickname"` Avatar string `db:"avatar" json:"avatar"` StyleSign string `db:"style_sign" json:"style_sign"` Gender int8 `db:"gender" json:"gender"` Tel string `db:"tel" json:"tel"` Email string `db:"email" json:"email"` Timing }
type UserDao ¶
type UserDao struct {
// contains filtered or unexported fields
}
func (*UserDao) CacheDelUserBaseByUid ¶
func (*UserDao) CacheGetUserBaseByUid ¶
func (*UserDao) CacheSetUserBase ¶
func (*UserDao) FindPassAndSaltByUid ¶
func (*UserDao) FindUserBaseByTel ¶
func (*UserDao) FindUserBaseByUid ¶
func (*UserDao) FindUserBaseByUids ¶
TODO make it cache
func (*UserDao) UpdateAvatar ¶
func (*UserDao) UpdateEmail ¶
func (*UserDao) UpdateGender ¶
func (*UserDao) UpdateNickname ¶
func (*UserDao) UpdatePass ¶
func (*UserDao) UpdateSalt ¶
func (*UserDao) UpdateStyleSign ¶
type UserSecret ¶
Click to show internal directories.
Click to hide internal directories.