11 changed files with 60 additions and 47 deletions
-
2app/Controller/v3/SmsController.php
-
8app/Controller/v3/UserController.php
-
23app/Service/v3/Implementations/SmsAliSendService.php
-
10app/Service/v3/Implementations/UserBindTelService.php
-
12app/Service/v3/Implementations/VerifyCodeService.php
-
13app/Service/v3/Interfaces/SmsSendServiceInterface.php
-
11app/Service/v3/Interfaces/SmsServiceInterface.php
-
10app/Service/v3/Interfaces/UserBindServiceInterface.php
-
10app/Service/v3/Interfaces/UserBindTelServiceInterface.php
-
4app/Service/v3/Interfaces/VerifyCodeServiceInterface.php
-
4config/autoload/dependencies.php
@ -0,0 +1,13 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
interface SmsSendServiceInterface |
|||
{ |
|||
public function do($tel, $template, $templateParams); |
|||
public function check(); |
|||
public function undo(); |
|||
public function doVerifyCode($tel, $code); |
|||
public function checkVerifyCode($tel, $code); |
|||
public function undoVerifyCode($tel, $code); |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
interface SmsServiceInterface |
|||
{ |
|||
public function send($tel, $template, $templateParams); |
|||
public function makeVerifyCode($tel, $code); |
|||
public function checkVerifyCode($tel, $code); |
|||
public function removeVerifyCode($tel, $code); |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
interface UserBindServiceInterface |
|||
{ |
|||
public function makeTel($userId, $tel); |
|||
public function checkTel($userId); |
|||
public function removeTel($userId); |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
interface UserBindTelServiceInterface |
|||
{ |
|||
public function do($userId, $tel); |
|||
public function check($userId); |
|||
public function undo($userId); |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue