dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (d *Dao)

New new 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) Close

func (d *Dao) Close() (err error)

Close close connections.

func (*Dao) GetMidByEmail

func (d *Dao) GetMidByEmail(c context.Context, a *model.UserEmail) (mid int64, err error)

GetMidByEmail get mid by email.

func (*Dao) GetMidByTel

func (d *Dao) GetMidByTel(c context.Context, a *model.UserTel) (mid int64, err error)

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

func (d *Dao) InsertUserBase(c context.Context, a *model.UserBase) (affected int64, err error)

InsertUserBase add user base.

func (*Dao) InsertUserEmail

func (d *Dao) InsertUserEmail(c context.Context, a *model.UserEmail) (affected int64, err error)

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

func (d *Dao) InsertUserTel(c context.Context, a *model.UserTel) (affected int64, err error)

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

func (d *Dao) LoadSecret(c context.Context) (res []*model.Secret, err error)

LoadSecret load secret

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping check dao ok.

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

func (d *Dao) QueryAccountByMid(c context.Context, mid int64) (res *model.OriginAccount, err error)

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

func (d *Dao) QueryCountryCode(c context.Context) (res map[int64]string, err error)

QueryCountryCode query country code

func (*Dao) QueryTelBindLog

func (d *Dao) QueryTelBindLog(c context.Context, mid int64) (res int64, err error)

QueryTelBindLog get aso tel bind log.

func (*Dao) QueryUserBase

func (d *Dao) QueryUserBase(c context.Context, mid int64) (res *model.UserBase, err error)

QueryUserBase query user basic info by mid

func (*Dao) QueryUserMail

func (d *Dao) QueryUserMail(c context.Context, mid int64) (res *model.UserEmail, err error)

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

func (d *Dao) QueryUserTel(c context.Context, mid int64) (res *model.UserTel, err error)

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

func (d *Dao) SendWechat(param map[string]int64) (err error)

SendWechat send stat to wechat

func (*Dao) UpdateUserBase

func (d *Dao) UpdateUserBase(c context.Context, a *model.UserBase) (affected int64, err error)

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

func (d *Dao) UpdateUserMail(c context.Context, a *model.UserEmail) (affected int64, err error)

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

func (d *Dao) UpdateUserTel(c context.Context, a *model.UserTel) (affected int64, err error)

UpdateUserTel update user tel

func (*Dao) UpdateUserTelDuplicateStatus

func (d *Dao) UpdateUserTelDuplicateStatus(c context.Context, id int64) (affected int64, err error)

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

func (d *Dao) UserEmailDuplicate(c context.Context) (res []*model.UserEmailDuplicate, err error)

UserEmailDuplicate get user email duplicate.

func (*Dao) UserTelDuplicate

func (d *Dao) UserTelDuplicate(c context.Context) (res []*model.UserTelDuplicate, err error)

UserTelDuplicate get user tel duplicate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL