mirror of
https://github.com/PengZhangs2017582/novel.git
synced 2025-06-16 23:41:21 +08:00
33 lines
803 B
Go
33 lines
803 B
Go
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"novel/internal/model"
|
|
)
|
|
|
|
type (
|
|
IPhoneVerify interface {
|
|
GenerateCode(ctx context.Context, phone string, codeType int) (out *model.GetCodeOutput, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localPhoneVerify IPhoneVerify
|
|
)
|
|
|
|
func PhoneVerify() IPhoneVerify {
|
|
if localPhoneVerify == nil {
|
|
panic("implement not found for interface IPhoneVerify, forgot register?")
|
|
}
|
|
return localPhoneVerify
|
|
}
|
|
|
|
func RegisterPhoneVerify(i IPhoneVerify) {
|
|
localPhoneVerify = i
|
|
}
|