mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
392 B
18 lines
392 B
2 years ago
|
package core
|
||
|
|
||
|
import (
|
||
|
"github.com/rocboss/paopao-ce/internal/model"
|
||
|
)
|
||
|
|
||
|
// SecurityService 安全相关服务
|
||
|
type SecurityService interface {
|
||
|
GetLatestPhoneCaptcha(phone string) (*model.Captcha, error)
|
||
|
UsePhoneCaptcha(captcha *model.Captcha) error
|
||
|
SendPhoneCaptcha(phone string) error
|
||
|
}
|
||
|
|
||
|
// 附件检测服务
|
||
|
type AttachmentCheckService interface {
|
||
|
CheckAttachment(uri string) error
|
||
|
}
|