Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddCountryCode(c context.Context, a *model.CountryCode) (affected int64, err error)
- func (d *Dao) AddUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
- func (d *Dao) AddUserEmail(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) AddUserEmailDuplicate(c context.Context, a *model.UserEmailDuplicate) (affected int64, err error)
- func (d *Dao) AddUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) AddUserTel(c context.Context, a *model.UserTel) (affected int64, err error)
- func (d *Dao) AddUserTelDuplicate(c context.Context, a *model.UserTelDuplicate) (affected int64, err error)
- func (d *Dao) AddUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
- func (d *Dao) AesKey(c context.Context) (res string, err error)
- func (d *Dao) AsoAccount(c context.Context, start, count int64) (res []*model.OriginAccount, err error)
- func (d *Dao) AsoAccountInfo(c context.Context, start, count, suffix int64) (res []*model.OriginAccountInfo, err error)
- func (d *Dao) AsoAccountReg(c context.Context, start, count, suffix int64) (res []*model.OriginAccountReg, err error)
- func (d *Dao) AsoAccountSns(c context.Context, start, count int64) (res []*model.OriginAccountSns, err error)
- func (d *Dao) AsoCountryCode(c context.Context) (res []*model.CountryCode, err error)
- func (d *Dao) AsoTelBindLog(c context.Context, mid int64) (res int64, err error)
- func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) CountryCodeMap(c context.Context) (res map[int64]string, err error)
- func (d *Dao) DelUserBaseCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelUserEmailCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelUserTelCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelUserThirdBind(c context.Context, mid int64) (affected int64, err error)
- func (d *Dao) DelUserThirdBindQQCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelUserThirdBindSinaCache(c context.Context, mid int64) (err error)
- func (d *Dao) GetAsoAccountByMid(c context.Context, mid int64) (res *model.OriginAccount, err error)
- func (d *Dao) GetAsoAccountInfoByMid(c context.Context, mid int64) (res *model.OriginAccountInfo, err error)
- func (d *Dao) GetAsoAccountRegByMid(c context.Context, mid int64) (res *model.OriginAccountReg, err error)
- func (d *Dao) GetAsoAccountSnsByMid(c context.Context, mid int64) (res *model.OriginAccountSns, 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) GetUserBaseByMid(c context.Context, mid int64) (res *model.UserBase, err error)
- func (d *Dao) GetUserEmailByMid(c context.Context, mid int64) (res *model.UserEmail, err error)
- func (d *Dao) GetUserRegOriginByMid(c context.Context, mid int64) (res *model.UserRegOrigin, err error)
- func (d *Dao) GetUserSafeQuestionByMid(c context.Context, mid int64) (res *model.UserSafeQuestion, err error)
- func (d *Dao) GetUserTelByMid(c context.Context, mid int64) (res *model.UserTel, err error)
- func (d *Dao) GetUserThirdBindByMid(c context.Context, mid int64) (res []*model.UserThirdBind, err error)
- func (d *Dao) GetUserThirdBindByMidAndPlatform(c context.Context, mid, platform int64) (res *model.UserThirdBind, err error)
- func (d *Dao) InsertUpdateUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
- func (d *Dao) InsertUpdateUserRegOriginType(c context.Context, a *model.UserRegOrigin) (affected int64, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Salt(c context.Context) (res string, err error)
- func (d *Dao) SetUserBaseCache(c context.Context, ub *model.UserBase) (err error)
- func (d *Dao) SetUserEmailCache(c context.Context, ue *model.UserEmail) (err error)
- func (d *Dao) SetUserRegOriginCache(c context.Context, uro *model.UserRegOrigin) (err error)
- func (d *Dao) SetUserSafeQuestionCache(c context.Context, usq *model.UserSafeQuestion) (err error)
- func (d *Dao) SetUserTelCache(c context.Context, ut *model.UserTel) (err error)
- func (d *Dao) SetUserThirdBindQQCache(c context.Context, utb *model.UserThirdBind) (err error)
- func (d *Dao) SetUserThirdBindSinaCache(c context.Context, utb *model.UserThirdBind) (err error)
- func (d *Dao) TxAddUserBase(tx *xsql.Tx, a *model.UserBase) (affected int64, err error)
- func (d *Dao) TxAddUserEmail(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) TxAddUserSafeQuestion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) TxAddUserTel(tx *xsql.Tx, a *model.UserTel) (affected int64, err error)
- func (d *Dao) TxAddUserThirdBind(tx *xsql.Tx, a *model.UserThirdBind) (affected int64, err error)
- func (d *Dao) TxDelUserBase(tx *xsql.Tx, mid int64) (affected int64, err error)
- func (d *Dao) TxDelUserEmail(tx *xsql.Tx, mid int64) (affected int64, err error)
- func (d *Dao) TxDelUserTel(tx *xsql.Tx, mid int64) (affected int64, err error)
- func (d *Dao) TxInsertIgnoreUserRegOrigin(tx *xsql.Tx, a *model.UserRegOrigin) (affected int64, err error)
- func (d *Dao) TxInsertIgnoreUserSafeQuestion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) TxInsertUpdateUserRegOrigin(tx *xsql.Tx, a *model.UserRegOrigin) (affected int64, err error)
- func (d *Dao) TxUpdateUserEmail(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) TxUpdateUserEmailBindTime(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) TxUpdateUserEmailVerified(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) TxUpdateUserSafeQuesion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
- func (d *Dao) UpdateUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
- func (d *Dao) UpdateUserEmail(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserEmailAndBindTime(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserEmailBindTime(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserEmailDuplicateStatus(c context.Context, id int64) (affected int64, err error)
- func (d *Dao) UpdateUserEmailVerified(c context.Context, a *model.UserEmail) (affected int64, err error)
- func (d *Dao) UpdateUserSafeQuesion(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) UpdateUserTelAndBindTime(c context.Context, a *model.UserTel) (affected int64, err error)
- func (d *Dao) UpdateUserTelBindTime(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) UserTel(c context.Context, start, count int64) (res []*model.UserTel, 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) AddCountryCode ¶
AddCountryCode add country code.
func (*Dao) AddUserBase ¶
AddUserBase add user base.
func (*Dao) AddUserEmail ¶
AddUserEmail add user email.
func (*Dao) AddUserEmailDuplicate ¶
func (d *Dao) AddUserEmailDuplicate(c context.Context, a *model.UserEmailDuplicate) (affected int64, err error)
AddUserEmailDuplicate add user email duplicate.
func (*Dao) AddUserSafeQuestion ¶
func (d *Dao) AddUserSafeQuestion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
AddUserSafeQuestion add user safe question.
func (*Dao) AddUserTel ¶
AddUserTel add user tel.
func (*Dao) AddUserTelDuplicate ¶
func (d *Dao) AddUserTelDuplicate(c context.Context, a *model.UserTelDuplicate) (affected int64, err error)
AddUserTelDuplicate add user tel duplicate.
func (*Dao) AddUserThirdBind ¶
func (d *Dao) AddUserThirdBind(c context.Context, a *model.UserThirdBind) (affected int64, err error)
AddUserThirdBind add user third bind.
func (*Dao) AsoAccount ¶
func (d *Dao) AsoAccount(c context.Context, start, count int64) (res []*model.OriginAccount, err error)
AsoAccount get account by mid.
func (*Dao) AsoAccountInfo ¶
func (d *Dao) AsoAccountInfo(c context.Context, start, count, suffix int64) (res []*model.OriginAccountInfo, err error)
AsoAccountInfo get account info by id.
func (*Dao) AsoAccountReg ¶
func (d *Dao) AsoAccountReg(c context.Context, start, count, suffix int64) (res []*model.OriginAccountReg, err error)
AsoAccountReg get account reg by id.
func (*Dao) AsoAccountSns ¶
func (d *Dao) AsoAccountSns(c context.Context, start, count int64) (res []*model.OriginAccountSns, err error)
AsoAccountSns get account sns by id.
func (*Dao) AsoCountryCode ¶
AsoCountryCode get aso country code.
func (*Dao) AsoTelBindLog ¶
AsoTelBindLog get aso tel bind log.
func (*Dao) CountryCodeMap ¶
CountryCodeMap get country code map.
func (*Dao) DelUserBaseCache ¶
DelUserBaseCache del user base cache
func (*Dao) DelUserEmailCache ¶
DelUserEmailCache del user email cache
func (*Dao) DelUserTelCache ¶
DelUserTelCache del user tel cache
func (*Dao) DelUserThirdBind ¶
DelUserThirdBind del user third bind.
func (*Dao) DelUserThirdBindQQCache ¶
DelUserThirdBindQQCache del user third bind qq cache
func (*Dao) DelUserThirdBindSinaCache ¶
DelUserThirdBindSinaCache del user third bind sina cache
func (*Dao) GetAsoAccountByMid ¶
func (d *Dao) GetAsoAccountByMid(c context.Context, mid int64) (res *model.OriginAccount, err error)
GetAsoAccountByMid get aso account by mid.
func (*Dao) GetAsoAccountInfoByMid ¶
func (d *Dao) GetAsoAccountInfoByMid(c context.Context, mid int64) (res *model.OriginAccountInfo, err error)
GetAsoAccountInfoByMid get aso account info by mid.
func (*Dao) GetAsoAccountRegByMid ¶
func (d *Dao) GetAsoAccountRegByMid(c context.Context, mid int64) (res *model.OriginAccountReg, err error)
GetAsoAccountRegByMid get aso account reg by mid.
func (*Dao) GetAsoAccountSnsByMid ¶
func (d *Dao) GetAsoAccountSnsByMid(c context.Context, mid int64) (res *model.OriginAccountSns, err error)
GetAsoAccountSnsByMid get aso account sns by mid.
func (*Dao) GetMidByEmail ¶
GetMidByEmail get mid by email.
func (*Dao) GetMidByTel ¶
GetMidByTel get mid by tel.
func (*Dao) GetUserBaseByMid ¶
GetUserBaseByMid get user base by mid.
func (*Dao) GetUserEmailByMid ¶
GetUserEmailByMid get user email by mid.
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) GetUserSafeQuestionByMid ¶
func (d *Dao) GetUserSafeQuestionByMid(c context.Context, mid int64) (res *model.UserSafeQuestion, err error)
GetUserSafeQuestionByMid get user safe question by mid.
func (*Dao) GetUserTelByMid ¶
GetUserTelByMid get user email by mid.
func (*Dao) GetUserThirdBindByMid ¶
func (d *Dao) GetUserThirdBindByMid(c context.Context, mid int64) (res []*model.UserThirdBind, err error)
GetUserThirdBindByMid get user third bind by mid.
func (*Dao) GetUserThirdBindByMidAndPlatform ¶
func (d *Dao) GetUserThirdBindByMidAndPlatform(c context.Context, mid, platform int64) (res *model.UserThirdBind, err error)
GetUserThirdBindByMidAndPlatform get user third bind by mid and platform.
func (*Dao) InsertUpdateUserBase ¶
func (d *Dao) InsertUpdateUserBase(c context.Context, a *model.UserBase) (affected int64, err error)
InsertUpdateUserBase insert update user base.
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) SetUserBaseCache ¶
SetUserBaseCache set user base to cache
func (*Dao) SetUserEmailCache ¶
SetUserEmailCache set user email to cache
func (*Dao) SetUserRegOriginCache ¶
SetUserRegOriginCache set user reg origin to cache
func (*Dao) SetUserSafeQuestionCache ¶
SetUserSafeQuestionCache set user safe question to cache
func (*Dao) SetUserTelCache ¶
SetUserTelCache set user tel to cache
func (*Dao) SetUserThirdBindQQCache ¶
SetUserThirdBindQQCache set user third bind qq to cache
func (*Dao) SetUserThirdBindSinaCache ¶
SetUserThirdBindSinaCache set user third bind sina to cache
func (*Dao) TxAddUserBase ¶
TxAddUserBase add user base.
func (*Dao) TxAddUserEmail ¶
TxAddUserEmail add user email.
func (*Dao) TxAddUserSafeQuestion ¶
func (d *Dao) TxAddUserSafeQuestion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
TxAddUserSafeQuestion add user safe question.
func (*Dao) TxAddUserTel ¶
TxAddUserTel add user tel.
func (*Dao) TxAddUserThirdBind ¶
TxAddUserThirdBind add user third bind.
func (*Dao) TxDelUserBase ¶
TxDelUserBase update user base deleted = 1.
func (*Dao) TxDelUserEmail ¶
TxDelUserEmail update user email deleted = 1.
func (*Dao) TxDelUserTel ¶
TxDelUserTel update user tel deleted = 1.
func (*Dao) TxInsertIgnoreUserRegOrigin ¶
func (d *Dao) TxInsertIgnoreUserRegOrigin(tx *xsql.Tx, a *model.UserRegOrigin) (affected int64, err error)
TxInsertIgnoreUserRegOrigin insert ignore user reg origin.
func (*Dao) TxInsertIgnoreUserSafeQuestion ¶
func (d *Dao) TxInsertIgnoreUserSafeQuestion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
TxInsertIgnoreUserSafeQuestion insert ignore user safe question.
func (*Dao) TxInsertUpdateUserRegOrigin ¶
func (d *Dao) TxInsertUpdateUserRegOrigin(tx *xsql.Tx, a *model.UserRegOrigin) (affected int64, err error)
TxInsertUpdateUserRegOrigin insert update user reg origin.
func (*Dao) TxUpdateUserEmail ¶
TxUpdateUserEmail update user email.
func (*Dao) TxUpdateUserEmailBindTime ¶
func (d *Dao) TxUpdateUserEmailBindTime(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
TxUpdateUserEmailBindTime update user email bind time.
func (*Dao) TxUpdateUserEmailVerified ¶
func (d *Dao) TxUpdateUserEmailVerified(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)
TxUpdateUserEmailVerified update user email verified.
func (*Dao) TxUpdateUserSafeQuesion ¶
func (d *Dao) TxUpdateUserSafeQuesion(tx *xsql.Tx, a *model.UserSafeQuestion) (affected int64, err error)
TxUpdateUserSafeQuesion update user safe question.
func (*Dao) UpdateUserBase ¶
UpdateUserBase update user base.
func (*Dao) UpdateUserEmail ¶
UpdateUserEmail update user email.
func (*Dao) UpdateUserEmailAndBindTime ¶
func (d *Dao) UpdateUserEmailAndBindTime(c context.Context, a *model.UserEmail) (affected int64, err error)
UpdateUserEmailAndBindTime update user email and bind time.
func (*Dao) UpdateUserEmailBindTime ¶
func (d *Dao) UpdateUserEmailBindTime(c context.Context, a *model.UserEmail) (affected int64, err error)
UpdateUserEmailBindTime update user email bind time.
func (*Dao) UpdateUserEmailDuplicateStatus ¶
func (d *Dao) UpdateUserEmailDuplicateStatus(c context.Context, id int64) (affected int64, err error)
UpdateUserEmailDuplicateStatus update user email duplicate status.
func (*Dao) UpdateUserEmailVerified ¶
func (d *Dao) UpdateUserEmailVerified(c context.Context, a *model.UserEmail) (affected int64, err error)
UpdateUserEmailVerified update user email verified.
func (*Dao) UpdateUserSafeQuesion ¶
func (d *Dao) UpdateUserSafeQuesion(c context.Context, a *model.UserSafeQuestion) (affected int64, err error)
UpdateUserSafeQuesion update user safe question.
func (*Dao) UpdateUserTel ¶
UpdateUserTel update user tel.
func (*Dao) UpdateUserTelAndBindTime ¶
func (d *Dao) UpdateUserTelAndBindTime(c context.Context, a *model.UserTel) (affected int64, err error)
UpdateUserTelAndBindTime update user tel and bind time.
func (*Dao) UpdateUserTelBindTime ¶
func (d *Dao) UpdateUserTelBindTime(c context.Context, a *model.UserTel) (affected int64, err error)
UpdateUserTelBindTime update user tel bind time.
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.