init
This commit is contained in:
28
Contracts/CanUseGoogle2FA.php
Normal file
28
Contracts/CanUseGoogle2FA.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Google2FA\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
||||
|
||||
interface CanUseGoogle2FA
|
||||
{
|
||||
public function google2fa(): MorphOne;
|
||||
|
||||
/**
|
||||
* Notes : 获取用户名称
|
||||
*
|
||||
* @Date : 2022/12/1 13:47
|
||||
* @Author : <Jason.C>
|
||||
* @return string
|
||||
*/
|
||||
public function getUsername(): string;
|
||||
|
||||
/**
|
||||
* Notes : 获取用户昵称
|
||||
*
|
||||
* @Date : 2022/12/1 13:47
|
||||
* @Author : <Jason.C>
|
||||
* @return string
|
||||
*/
|
||||
public function getNickname(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user