SendVerifyCode时,如果是管理员,返回verifyCode

This commit is contained in:
gazebo
2020-01-06 12:13:28 +08:00
parent a07209c86d
commit 5d21158c7b
6 changed files with 32 additions and 14 deletions

View File

@@ -45,8 +45,8 @@ func (a *DefAuther) UnbindAuth(userID, authType, userName string) (err error) {
return err
}
func (a *DefAuther) SendVerifyCode(authID string) error {
return errors.New("当前登录类型不支持此操作")
func (a *DefAuther) SendVerifyCode(authID string) (verifyCode string, err error) {
return "", errors.New("当前登录类型不支持此操作")
}
// 此函数为空