MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / CheckCode

Method CheckCode

internal/repository/sms.go:24–24  ·  view source on GitHub ↗
(ctx context.Context, smsID, number, vCode string)

Source from the content-addressed store, hash-verified

22// SmsRepository 接口定义了异步 SMS 记录操作的相关方法
23type SmsRepository interface {
24 CheckCode(ctx context.Context, smsID, number, vCode string) (bool, error)
25 AddUserOperationLog(ctx context.Context, log dao.VCodeSmsLog) error
26 SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error)
27 StoreVCode(ctx context.Context, smsID, number string, vCode string) error

Callers 1

LoginBySMSMethod · 0.65

Implementers 1

smsRepositoryinternal/repository/sms.go

Calls

no outgoing calls

Tested by

no test coverage detected