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: 10 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) AddCountryCode

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

AddCountryCode add country code.

func (*Dao) AddUserBase

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

AddUserBase add user base.

func (*Dao) AddUserEmail

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

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

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

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) AesKey

func (d *Dao) AesKey(c context.Context) (res string, err error)

AesKey get aes key.

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

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

AsoCountryCode get aso country code.

func (*Dao) AsoTelBindLog

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

AsoTelBindLog get aso tel bind log.

func (*Dao) BeginTran

func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)

BeginTran begin transcation.

func (*Dao) Close

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

Close close connections of mc, cloudDB.

func (*Dao) CountryCodeMap

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

CountryCodeMap get country code map.

func (*Dao) DelUserBaseCache

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

DelUserBaseCache del user base cache

func (*Dao) DelUserEmailCache

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

DelUserEmailCache del user email cache

func (*Dao) DelUserTelCache

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

DelUserTelCache del user tel cache

func (*Dao) DelUserThirdBind

func (d *Dao) DelUserThirdBind(c context.Context, mid int64) (affected int64, err error)

DelUserThirdBind del user third bind.

func (*Dao) DelUserThirdBindQQCache

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

DelUserThirdBindQQCache del user third bind qq cache

func (*Dao) DelUserThirdBindSinaCache

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

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

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) GetUserBaseByMid

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

GetUserBaseByMid get user base by mid.

func (*Dao) GetUserEmailByMid

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

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

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

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) Ping

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

Ping check dao ok.

func (*Dao) Salt

func (d *Dao) Salt(c context.Context) (res string, err error)

Salt get salt.

func (*Dao) SetUserBaseCache

func (d *Dao) SetUserBaseCache(c context.Context, ub *model.UserBase) (err error)

SetUserBaseCache set user base to cache

func (*Dao) SetUserEmailCache

func (d *Dao) SetUserEmailCache(c context.Context, ue *model.UserEmail) (err error)

SetUserEmailCache set user email to cache

func (*Dao) SetUserRegOriginCache

func (d *Dao) SetUserRegOriginCache(c context.Context, uro *model.UserRegOrigin) (err error)

SetUserRegOriginCache set user reg origin to cache

func (*Dao) SetUserSafeQuestionCache

func (d *Dao) SetUserSafeQuestionCache(c context.Context, usq *model.UserSafeQuestion) (err error)

SetUserSafeQuestionCache set user safe question to cache

func (*Dao) SetUserTelCache

func (d *Dao) SetUserTelCache(c context.Context, ut *model.UserTel) (err error)

SetUserTelCache set user tel to cache

func (*Dao) SetUserThirdBindQQCache

func (d *Dao) SetUserThirdBindQQCache(c context.Context, utb *model.UserThirdBind) (err error)

SetUserThirdBindQQCache set user third bind qq to cache

func (*Dao) SetUserThirdBindSinaCache

func (d *Dao) SetUserThirdBindSinaCache(c context.Context, utb *model.UserThirdBind) (err error)

SetUserThirdBindSinaCache set user third bind sina to cache

func (*Dao) TxAddUserBase

func (d *Dao) TxAddUserBase(tx *xsql.Tx, a *model.UserBase) (affected int64, err error)

TxAddUserBase add user base.

func (*Dao) TxAddUserEmail

func (d *Dao) TxAddUserEmail(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)

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

func (d *Dao) TxAddUserTel(tx *xsql.Tx, a *model.UserTel) (affected int64, err error)

TxAddUserTel add user tel.

func (*Dao) TxAddUserThirdBind

func (d *Dao) TxAddUserThirdBind(tx *xsql.Tx, a *model.UserThirdBind) (affected int64, err error)

TxAddUserThirdBind add user third bind.

func (*Dao) TxDelUserBase

func (d *Dao) TxDelUserBase(tx *xsql.Tx, mid int64) (affected int64, err error)

TxDelUserBase update user base deleted = 1.

func (*Dao) TxDelUserEmail

func (d *Dao) TxDelUserEmail(tx *xsql.Tx, mid int64) (affected int64, err error)

TxDelUserEmail update user email deleted = 1.

func (*Dao) TxDelUserTel

func (d *Dao) TxDelUserTel(tx *xsql.Tx, mid int64) (affected int64, err error)

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

func (d *Dao) TxUpdateUserEmail(tx *xsql.Tx, a *model.UserEmail) (affected int64, err error)

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

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

UpdateUserBase update user base.

func (*Dao) UpdateUserEmail

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

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

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

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

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) UserTel

func (d *Dao) UserTel(c context.Context, start, count int64) (res []*model.UserTel, err error)

UserTel get user tel.

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