Documentation ¶
Index ¶
- type Dao
- func (d *Dao) BatchQueryAccount(c context.Context, start, limit int64) (res []*model.OriginAccount, err error)
- func (d *Dao) BatchQueryAccountByTime(c context.Context, start, end time.Time) (res []*model.OriginAccount, err error)
- func (d *Dao) BatchQueryAccountInfo(c context.Context, start, limit int64, suffix int) (res []*model.OriginAccountInfo, err error)
- func (d *Dao) BatchQueryAccountInfoByTime(c context.Context, start, end time.Time, suffix int) (res []*model.OriginAccountInfo, err error)
- func (d *Dao) BatchQueryAccountRegByTime(c context.Context, start, end time.Time, suffix int) (res []*model.OriginAccountReg, err error)
- func (d *Dao) BatchQueryAccountSns(c context.Context, start, limit int64) (res []*model.OriginAccountSns, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) GetMidByEmail(c context.Context, a *model.UserEmail) (mid int64, err error)
- func (d *Dao) GetMidByTel(c context.Context, a *model.UserTel) (mid int64, err error)
- func (d *Dao) GetUnverifiedEmail(c context.Context, start int64) (res []*model.UserEmail, err error)
- func (d *Dao) GetUserRegOriginByMid(c context.Context, mid int64) (res *model.UserRegOrigin, err error)
- func (d *Dao) InsertUpdateUserRegOriginType(c context.Context, a *model.UserRegOrigin) (affected int64, err error)
- func (d *Dao) InsertUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
- func (d *Dao) InsertUserEmail(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) InsertUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) InsertUserTel(c context.Context, a *model.UserTel) (affected int64, err error)
- func (d *Dao) InsertUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
- func (d *Dao) LoadSecret(c context.Context) (res []*model.Secret, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) QueryAccountByMail(c context.Context, mail string) (res *model.OriginAccount, err error)
- func (d *Dao) QueryAccountByMid(c context.Context, mid int64) (res *model.OriginAccount, err error)
- func (d *Dao) QueryAccountByTel(c context.Context, tel string) (res *model.OriginAccount, err error)
- func (d *Dao) QueryAccountInfoByMid(c context.Context, mid int64) (res *model.OriginAccountInfo, err error)
- func (d *Dao) QueryAccountRegByMid(c context.Context, mid int64) (res *model.OriginAccountReg, err error)
- func (d *Dao) QueryAccountSnsByMid(c context.Context, mid int64) (res *model.OriginAccountSns, err error)
- func (d *Dao) QueryCountryCode(c context.Context) (res map[int64]string, err error)
- func (d *Dao) QueryTelBindLog(c context.Context, mid int64) (res int64, err error)
- func (d *Dao) QueryUserBase(c context.Context, mid int64) (res *model.UserBase, err error)
- func (d *Dao) QueryUserMail(c context.Context, mid int64) (res *model.UserEmail, err error)
- func (d *Dao) QueryUserSafeQuestion(c context.Context, mid int64) (res *model.UserSafeQuestion, err error)
- func (d *Dao) QueryUserTel(c context.Context, mid int64) (res *model.UserTel, err error)
- func (d *Dao) QueryUserThirdBind(c context.Context, mid, platform int64) (res *model.UserThirdBind, err error)
- func (d *Dao) SendWechat(param map[string]int64) (err error)
- func (d *Dao) UpdateUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
- func (d *Dao) UpdateUserEmailDuplicateStatus(c context.Context, id int64) (affected int64, err error)
- func (d *Dao) UpdateUserMail(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserMailVerified(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) UpdateUserTel(c context.Context, a *model.UserTel) (affected int64, err error)
- func (d *Dao) UpdateUserTelDuplicateStatus(c context.Context, id int64) (affected int64, err error)
- func (d *Dao) UpdateUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
- func (d *Dao) UserEmailDuplicate(c context.Context) (res []*model.UserEmailDuplicate, err error)
- func (d *Dao) UserTelDuplicate(c context.Context) (res []*model.UserTelDuplicate, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func (*Dao) BatchQueryAccount ¶
func (d *Dao) BatchQueryAccount(c context.Context, start, limit int64) (res []*model.OriginAccount, err error)
BatchQueryAccount batch query account
func (*Dao) BatchQueryAccountByTime ¶
func (d *Dao) BatchQueryAccountByTime(c context.Context, start, end time.Time) (res []*model.OriginAccount, err error)
BatchQueryAccountByTime batch query by time
func (*Dao) BatchQueryAccountInfo ¶
func (d *Dao) BatchQueryAccountInfo(c context.Context, start, limit int64, suffix int) (res []*model.OriginAccountInfo, err error)
BatchQueryAccountInfo batch query account info
func (*Dao) BatchQueryAccountInfoByTime ¶
func (d *Dao) BatchQueryAccountInfoByTime(c context.Context, start, end time.Time, suffix int) (res []*model.OriginAccountInfo, err error)
BatchQueryAccountInfoByTime batch query account info
func (*Dao) BatchQueryAccountRegByTime ¶
func (d *Dao) BatchQueryAccountRegByTime(c context.Context, start, end time.Time, suffix int) (res []*model.OriginAccountReg, err error)
BatchQueryAccountRegByTime batch query account info
func (*Dao) BatchQueryAccountSns ¶
func (d *Dao) BatchQueryAccountSns(c context.Context, start, limit int64) (res []*model.OriginAccountSns, err error)
BatchQueryAccountSns batch query account sns
func (*Dao) GetMidByEmail ¶
GetMidByEmail get mid by email.
func (*Dao) GetMidByTel ¶
GetMidByTel get mid by tel.
func (*Dao) GetUnverifiedEmail ¶
func (d *Dao) GetUnverifiedEmail(c context.Context, start int64) (res []*model.UserEmail, err error)
GetUnverifiedEmail get unverified email.
func (*Dao) GetUserRegOriginByMid ¶
func (d *Dao) GetUserRegOriginByMid(c context.Context, mid int64) (res *model.UserRegOrigin, err error)
GetUserRegOriginByMid get user reg origin by mid.
func (*Dao) InsertUpdateUserRegOriginType ¶
func (d *Dao) InsertUpdateUserRegOriginType(c context.Context, a *model.UserRegOrigin) (affected int64, err error)
InsertUpdateUserRegOriginType insert update user reg origin type.
func (*Dao) InsertUserBase ¶
InsertUserBase add user base.
func (*Dao) InsertUserEmail ¶
InsertUserEmail add user email.
func (*Dao) InsertUserSafeQuestion ¶
func (d *Dao) InsertUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
InsertUserSafeQuestion insert user safe question
func (*Dao) InsertUserTel ¶
InsertUserTel insert user tel
func (*Dao) InsertUserThirdBind ¶
func (d *Dao) InsertUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
InsertUserThirdBind insert user third bind.
func (*Dao) LoadSecret ¶
LoadSecret load secret
func (*Dao) QueryAccountByMail ¶
func (d *Dao) QueryAccountByMail(c context.Context, mail string) (res *model.OriginAccount, err error)
QueryAccountByMail query account by mid
func (*Dao) QueryAccountByMid ¶
QueryAccountByMid query account by mid
func (*Dao) QueryAccountByTel ¶
func (d *Dao) QueryAccountByTel(c context.Context, tel string) (res *model.OriginAccount, err error)
QueryAccountByTel query account by mid
func (*Dao) QueryAccountInfoByMid ¶
func (d *Dao) QueryAccountInfoByMid(c context.Context, mid int64) (res *model.OriginAccountInfo, err error)
QueryAccountInfoByMid query account info by mid
func (*Dao) QueryAccountRegByMid ¶
func (d *Dao) QueryAccountRegByMid(c context.Context, mid int64) (res *model.OriginAccountReg, err error)
QueryAccountRegByMid query account reg by mid
func (*Dao) QueryAccountSnsByMid ¶
func (d *Dao) QueryAccountSnsByMid(c context.Context, mid int64) (res *model.OriginAccountSns, err error)
QueryAccountSnsByMid query account sns by mid
func (*Dao) QueryCountryCode ¶
QueryCountryCode query country code
func (*Dao) QueryTelBindLog ¶
QueryTelBindLog get aso tel bind log.
func (*Dao) QueryUserBase ¶
QueryUserBase query user basic info by mid
func (*Dao) QueryUserMail ¶
QueryUserMail query user mail info by mid
func (*Dao) QueryUserSafeQuestion ¶
func (d *Dao) QueryUserSafeQuestion(c context.Context, mid int64) (res *model.UserSafeQuestion, err error)
QueryUserSafeQuestion query user safe question by mid
func (*Dao) QueryUserTel ¶
QueryUserTel query user tel info by mid
func (*Dao) QueryUserThirdBind ¶
func (d *Dao) QueryUserThirdBind(c context.Context, mid, platform int64) (res *model.UserThirdBind, err error)
QueryUserThirdBind query user third bind by mid and platform
func (*Dao) SendWechat ¶
SendWechat send stat to wechat
func (*Dao) UpdateUserBase ¶
UpdateUserBase update user base
func (*Dao) UpdateUserEmailDuplicateStatus ¶
func (d *Dao) UpdateUserEmailDuplicateStatus(c context.Context, id int64) (affected int64, err error)
UpdateUserEmailDuplicateStatus update user email duplicate status.
func (*Dao) UpdateUserMail ¶
UpdateUserMail update user tel
func (*Dao) UpdateUserMailVerified ¶
func (d *Dao) UpdateUserMailVerified(c context.Context, a *model.UserEmail) (affected int64, err error)
UpdateUserMailVerified update user email verified
func (*Dao) UpdateUserSafeQuestion ¶
func (d *Dao) UpdateUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
UpdateUserSafeQuestion update user tel
func (*Dao) UpdateUserTel ¶
UpdateUserTel update user tel
func (*Dao) UpdateUserTelDuplicateStatus ¶
UpdateUserTelDuplicateStatus update user tel duplicate status.
func (*Dao) UpdateUserThirdBind ¶
func (d *Dao) UpdateUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
UpdateUserThirdBind update user third bind
func (*Dao) UserEmailDuplicate ¶
UserEmailDuplicate get user email duplicate.
func (*Dao) UserTelDuplicate ¶
UserTelDuplicate get user tel duplicate.