Documentation ¶
Index ¶
- func GetActionType(request proto.Message) int
- type AuthLogic
- func (m *AuthLogic) DoAuthCancelCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string) error
- func (m *AuthLogic) DoAuthReSendCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string, ...) (codeData *model.PhoneCodeTransaction, err error)
- func (m *AuthLogic) DoAuthSendCode(ctx context.Context, authKeyId int64, sessionId int64, phoneNumber string, ...) (codeData *model.PhoneCodeTransaction, err error)
- func (m *AuthLogic) DoAuthSignIn(ctx context.Context, authKeyId int64, ...) (codeData *model.PhoneCodeTransaction, err error)
- func (m *AuthLogic) DoAuthSignUp(ctx context.Context, authKeyId int64, phoneNumber string, phoneCode *string, ...) (codeData *model.PhoneCodeTransaction, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActionType ¶
Types ¶
type AuthLogic ¶
type AuthLogic struct { *dao.Dao code.VerifyCodeInterface }
func NewAuthSignLogic ¶
func NewAuthSignLogic(dao *dao.Dao, code2 *conf.SmsVerifyCodeConfig) *AuthLogic
func (*AuthLogic) DoAuthCancelCode ¶
func (m *AuthLogic) DoAuthCancelCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string) error
auth.cancelCode
func (*AuthLogic) DoAuthReSendCode ¶
func (m *AuthLogic) DoAuthReSendCode(ctx context.Context, authKeyId int64, phoneNumber, phoneCodeHash string, cb func(codeData *model.PhoneCodeTransaction) error) (codeData *model.PhoneCodeTransaction, err error)
auth.resendCode
func (*AuthLogic) DoAuthSendCode ¶
func (*AuthLogic) DoAuthSignIn ¶
Click to show internal directories.
Click to hide internal directories.