github.com/SupenBysz/gf-admin-community@v0.7.4/sys_service/sys_sms.go (about)

     1  // ================================================================================
     2  // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
     3  // You can delete these comments if you wish manually maintain this interface file.
     4  // ================================================================================
     5  
     6  package sys_service
     7  
     8  import (
     9  	"context"
    10  
    11  	"github.com/kysion/base-library/base_model/base_enum"
    12  )
    13  
    14  type (
    15  	ISysSms interface {
    16  		// Verify 校验验证码
    17  		Verify(ctx context.Context, mobile string, captcha string, typeIdentifier ...base_enum.CaptchaType) (bool, error)
    18  	}
    19  )
    20  
    21  var (
    22  	localSysSms ISysSms
    23  )
    24  
    25  func SysSms() ISysSms {
    26  	if localSysSms == nil {
    27  		panic("implement not found for interface ISysSms, forgot register?")
    28  	}
    29  	return localSysSms
    30  }
    31  
    32  func RegisterSysSms(i ISysSms) {
    33  	localSysSms = i
    34  }