b_verify_code.go 367 B

123456789101112131415
  1. package bll
  2. import (
  3. "context"
  4. "yx-dataset-server/app/schema"
  5. )
  6. // IVerifyCode VerifyCode业务逻辑接口
  7. type IVerifyCode interface {
  8. // Check 检查手机号及验证码的有效性
  9. Check(ctx context.Context, req schema.VerifyCodeCheck) (bool, error)
  10. ALiYunSendSms(ctx context.Context, req schema.VerifyCodeRequest) (*schema.VerifyCodeResponse, error)
  11. }