Documentation ¶
Index ¶
- type Dao
- func (d *Dao) CheckApiIdAndHash(apiId int32, apiHash string) error
- func (d *Dao) CheckCanDoAction(ctx context.Context, authKeyId int64, phoneNumber string, actionType int) error
- func (d *Dao) CreatePhoneCode(ctx context.Context, authKeyId int64, sessionId int64, phoneNumber string, ...) (codeData *model.PhoneCodeTransaction, err error)
- func (d *Dao) DeleteCachePhoneCode(ctx context.Context, authKeyId int64, phoneNumber string) (err error)
- func (d *Dao) DeletePhoneCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string) error
- func (d *Dao) GetCachePhoneCode(ctx context.Context, authKeyId int64, phoneNumber string) (*model.PhoneCodeTransaction, error)
- func (d *Dao) GetCountryAndRegionByIp(ip string) (string, string)
- func (d *Dao) GetPhoneCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string) (codeData *model.PhoneCodeTransaction, err error)
- func (d *Dao) PutCachePhoneCode(ctx context.Context, authKeyId int64, phoneNumber string, ...) (err error)
- func (d *Dao) UpdatePhoneCodeData(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { MMDB *geoip2.Reader authsession_client.AuthsessionClient user_client.UserClient sync_client.SyncClient chat_client.ChatClient status_client.StatusClient msg_client.MsgClient // contains filtered or unexported fields }
func (*Dao) CheckCanDoAction ¶
func (*Dao) CreatePhoneCode ¶
func (d *Dao) CreatePhoneCode(ctx context.Context, authKeyId int64, sessionId int64, phoneNumber string, phoneNumberRegistered bool, sendCodeType, nextCodeType, state int) (codeData *model.PhoneCodeTransaction, err error)
CreatePhoneCode for sendCode
func (*Dao) DeleteCachePhoneCode ¶
func (*Dao) DeletePhoneCode ¶
func (*Dao) GetCachePhoneCode ¶
func (*Dao) GetCountryAndRegionByIp ¶
func (*Dao) GetPhoneCode ¶
func (*Dao) PutCachePhoneCode ¶
func (*Dao) UpdatePhoneCodeData ¶
Click to show internal directories.
Click to hide internal directories.