Documentation ¶
Index ¶
- type Dao
- func (dao *Dao) BatchGetLastSuccess(c context.Context, mids []int64) (lastSuccessMap map[int64]*model.LastSuccessData, err error)
- func (dao *Dao) BatchGetRecoveryAddit(c context.Context, rids []int64) (addits map[int64]*model.DBAccountRecoveryAddit, err error)
- func (dao *Dao) BatchGetRecoverySuccess(c context.Context, mids []int64) (successMap map[int64]*model.RecoverySuccess, err error)
- func (dao *Dao) BatchUpdateSuccessCount(c context.Context, mids string) (err error)
- func (dao *Dao) BeginTran(ctx context.Context) (tx *sql.Tx, err error)
- func (d *Dao) CheckCard(c context.Context, mid int64, cardType int8, cardCode string) (ok bool, err error)
- func (d *Dao) CheckPwds(c context.Context, mid int64, pwds string) (v string, err error)
- func (d *Dao) CheckRealnameStatus(c context.Context, mid int64) (status int8, err error)
- func (d *Dao) CheckReg(c context.Context, mid int64, regTime int64, regType int8, regAddr string) (v *model.Check, err error)
- func (d *Dao) CheckSafe(c context.Context, mid int64, question int8, answer string) (check *model.Check, err error)
- func (d *Dao) Close()
- func (d *Dao) DelEMailCode(c context.Context, mid int64, linkMail string) (err error)
- func (d *Dao) GetAddrByIP(c context.Context, mid int64, limit int64) (addrs string, err error)
- func (dao *Dao) GetAllByCon(c context.Context, aq *model.QueryRecoveryInfoReq) ([]*model.AccountRecoveryInfo, int64, error)
- func (d *Dao) GetEMailCode(c context.Context, mid int64, linkMail string) (code string, err error)
- func (dao *Dao) GetLastSuccess(c context.Context, mid int64) (lastSuc *model.LastSuccessData, err error)
- func (d *Dao) GetLoginIPs(c context.Context, mid int64, limit int64) (ipInfo []*model.LoginIPInfo, err error)
- func (dao *Dao) GetMailStatus(c context.Context, rid int64) (mailStatus int64, err error)
- func (d *Dao) GetMidInfo(c context.Context, qType string, qKey string) (v *model.MIDInfo, err error)
- func (dao *Dao) GetNoDeal(c context.Context, mid int64) (count int64, err error)
- func (dao *Dao) GetRecoveryAddit(c context.Context, rid int64) (addit *model.DBAccountRecoveryAddit, err error)
- func (dao *Dao) GetStatusByRid(c context.Context, rid int64) (status int64, err error)
- func (dao *Dao) GetSuccessCount(c context.Context, mid int64) (count int64, err error)
- func (d *Dao) GetToken(c context.Context, bid string) (res *model.TokenResq, err error)
- func (dao *Dao) GetUinfoByRid(c context.Context, rid int64) (mid int64, linkMail string, ctime string, err error)
- func (dao *Dao) GetUinfoByRidMore(c context.Context, ridsStr string) (bathRes []*model.BatchAppeal, err error)
- func (dao *Dao) GetUnCheckInfo(c context.Context, rid int64) (r *model.UserInfoReq, err error)
- func (d *Dao) GetUserInfo(c context.Context, mid int64) (v *model.UserInfo, err error)
- func (d *Dao) GetUserType(c context.Context, mid int64) (gams []*model.Game, err error)
- func (d *Dao) Info3(c context.Context, mid int64) (info *account.Info, err error)
- func (d *Dao) Infos(c context.Context, ipList []string) (res map[string]*location.Info, err error)
- func (dao *Dao) InsertRecoveryAddit(c context.Context, rid int64, files, extra string) (err error)
- func (dao *Dao) InsertRecoveryInfo(c context.Context, uinfo *model.UserInfoReq) (lastID int64, err error)
- func (d *Dao) NickNameLog(c context.Context, nickNameReq *model.NickNameReq) (res *model.NickNameLogRes, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PingRedis(c context.Context) (err error)
- func (dao *Dao) QueryByID(c context.Context, rid int64, fromTime, endTime xtime.Time) (res *model.AccountRecoveryInfo, err error)
- func (dao *Dao) QueryInfoByLimit(c context.Context, req *model.DBRecoveryInfoParams) (res []*model.AccountRecoveryInfo, total int64, err error)
- func (d *Dao) SendMail(body string, subject string, send ...string) (err error)
- func (d *Dao) SetCaptcha(c context.Context, code string, mid int64, linkMail string) (err error)
- func (d *Dao) SetLinkMailCount(c context.Context, linkMail string) (state int64, err error)
- func (d *Dao) UpdateBatchPwd(c context.Context, mids string, operator string) (userMap map[string]*model.User, err error)
- func (dao *Dao) UpdateMailStatus(c context.Context, rid int64) (err error)
- func (d *Dao) UpdatePwd(c context.Context, mid int64, operator string) (user *model.User, err error)
- func (dao *Dao) UpdateRecoveryAddit(c context.Context, rid int64, files []string, extra string) (err error)
- func (dao *Dao) UpdateStatus(c context.Context, status int64, rid int64, operator string, ...) (err error)
- func (dao *Dao) UpdateSuccessCount(c context.Context, mid int64) (err error)
- func (dao *Dao) UpdateSysInfo(c context.Context, sys *model.SysInfo, userType int64, rid int64) (err error)
- func (dao *Dao) UpdateUserType(c context.Context, status int64, rid int64) (err error)
- func (d *Dao) UserBindLog(c context.Context, userActLogReq *model.UserBindLogReq) (res *model.UserBindLogRes, err error)
- func (d *Dao) Verify(c context.Context, code, token string) (ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
Dao dao
func (*Dao) BatchGetLastSuccess ¶
func (dao *Dao) BatchGetLastSuccess(c context.Context, mids []int64) (lastSuccessMap map[int64]*model.LastSuccessData, err error)
BatchGetLastSuccess batch get last find success info
func (*Dao) BatchGetRecoveryAddit ¶
func (dao *Dao) BatchGetRecoveryAddit(c context.Context, rids []int64) (addits map[int64]*model.DBAccountRecoveryAddit, err error)
BatchGetRecoveryAddit is
func (*Dao) BatchGetRecoverySuccess ¶
func (dao *Dao) BatchGetRecoverySuccess(c context.Context, mids []int64) (successMap map[int64]*model.RecoverySuccess, err error)
BatchGetRecoverySuccess batch get recovery success info
func (*Dao) BatchUpdateSuccessCount ¶
BatchUpdateSuccessCount batch insert or update success count
func (*Dao) CheckCard ¶
func (d *Dao) CheckCard(c context.Context, mid int64, cardType int8, cardCode string) (ok bool, err error)
CheckCard check card
func (*Dao) CheckRealnameStatus ¶
CheckRealnameStatus realname status
func (*Dao) CheckReg ¶
func (d *Dao) CheckReg(c context.Context, mid int64, regTime int64, regType int8, regAddr string) (v *model.Check, err error)
CheckReg check reg info
func (*Dao) CheckSafe ¶
func (d *Dao) CheckSafe(c context.Context, mid int64, question int8, answer string) (check *model.Check, err error)
CheckSafe safe info
func (*Dao) DelEMailCode ¶
DelEMailCode del captcha from redis 提交:校验验证之后就删除验证码(保证只能提交一次)
func (*Dao) GetAddrByIP ¶
GetAddrByIP get addr by ip
func (*Dao) GetAllByCon ¶
func (dao *Dao) GetAllByCon(c context.Context, aq *model.QueryRecoveryInfoReq) ([]*model.AccountRecoveryInfo, int64, error)
GetAllByCon get a pageData by more condition
func (*Dao) GetEMailCode ¶
GetEMailCode get captcha from redis
func (*Dao) GetLastSuccess ¶
func (dao *Dao) GetLastSuccess(c context.Context, mid int64) (lastSuc *model.LastSuccessData, err error)
GetLastSuccess get last find success info
func (*Dao) GetLoginIPs ¶
func (d *Dao) GetLoginIPs(c context.Context, mid int64, limit int64) (ipInfo []*model.LoginIPInfo, err error)
GetLoginIPs get login ip
func (*Dao) GetMailStatus ¶
GetMailStatus get mail_status by rid
func (*Dao) GetMidInfo ¶
func (d *Dao) GetMidInfo(c context.Context, qType string, qKey string) (v *model.MIDInfo, err error)
GetMidInfo get mid info by more condition
func (*Dao) GetRecoveryAddit ¶
func (dao *Dao) GetRecoveryAddit(c context.Context, rid int64) (addit *model.DBAccountRecoveryAddit, err error)
GetRecoveryAddit is
func (*Dao) GetStatusByRid ¶
GetStatusByRid get status by rid
func (*Dao) GetSuccessCount ¶
GetSuccessCount get success count
func (*Dao) GetUinfoByRid ¶
func (dao *Dao) GetUinfoByRid(c context.Context, rid int64) (mid int64, linkMail string, ctime string, err error)
GetUinfoByRid get mid,linkMail by rid
func (*Dao) GetUinfoByRidMore ¶
func (dao *Dao) GetUinfoByRidMore(c context.Context, ridsStr string) (bathRes []*model.BatchAppeal, err error)
GetUinfoByRidMore get list of BatchAppeal by rid
func (*Dao) GetUnCheckInfo ¶
GetUnCheckInfo get uncheck info
func (*Dao) GetUserInfo ¶
GetUserInfo get user info by mid
func (*Dao) GetUserType ¶
GetUserType get user_type
func (*Dao) InsertRecoveryAddit ¶
InsertRecoveryAddit is
func (*Dao) InsertRecoveryInfo ¶
func (dao *Dao) InsertRecoveryInfo(c context.Context, uinfo *model.UserInfoReq) (lastID int64, err error)
InsertRecoveryInfo insert data
func (*Dao) NickNameLog ¶
func (d *Dao) NickNameLog(c context.Context, nickNameReq *model.NickNameReq) (res *model.NickNameLogRes, err error)
NickNameLog NickNameLog
func (*Dao) QueryByID ¶
func (dao *Dao) QueryByID(c context.Context, rid int64, fromTime, endTime xtime.Time) (res *model.AccountRecoveryInfo, err error)
QueryByID query by rid
func (*Dao) QueryInfoByLimit ¶
func (dao *Dao) QueryInfoByLimit(c context.Context, req *model.DBRecoveryInfoParams) (res []*model.AccountRecoveryInfo, total int64, err error)
QueryInfoByLimit page query through limit m,n
func (*Dao) SetCaptcha ¶
SetCaptcha set linkMail expire time.
func (*Dao) SetLinkMailCount ¶
SetLinkMailCount set linkMail expire time.
func (*Dao) UpdateBatchPwd ¶
func (d *Dao) UpdateBatchPwd(c context.Context, mids string, operator string) (userMap map[string]*model.User, err error)
UpdateBatchPwd batch update password
func (*Dao) UpdateMailStatus ¶
UpdateMailStatus update mail_status.
func (*Dao) UpdatePwd ¶
func (d *Dao) UpdatePwd(c context.Context, mid int64, operator string) (user *model.User, err error)
UpdatePwd update password
func (*Dao) UpdateRecoveryAddit ¶
func (dao *Dao) UpdateRecoveryAddit(c context.Context, rid int64, files []string, extra string) (err error)
UpdateRecoveryAddit is
func (*Dao) UpdateStatus ¶
func (dao *Dao) UpdateStatus(c context.Context, status int64, rid int64, operator string, optTime xtime.Time, remark string) (err error)
UpdateStatus update field status.
func (*Dao) UpdateSuccessCount ¶
UpdateSuccessCount insert or update success count
func (*Dao) UpdateSysInfo ¶
func (dao *Dao) UpdateSysInfo(c context.Context, sys *model.SysInfo, userType int64, rid int64) (err error)
UpdateSysInfo update sysinfo and user_type
func (*Dao) UpdateUserType ¶
UpdateUserType update field user_type.
func (*Dao) UserBindLog ¶
func (d *Dao) UserBindLog(c context.Context, userActLogReq *model.UserBindLogReq) (res *model.UserBindLogRes, err error)
UserBindLog User bind log