35 lines
640 B
PHP
35 lines
640 B
PHP
|
<?php
|
||
|
declare (strict_types=1);
|
||
|
|
||
|
namespace app\front;
|
||
|
|
||
|
use app\exception\BusinessException;
|
||
|
use app\Request;
|
||
|
use app\service\UserService;
|
||
|
use think\App;
|
||
|
|
||
|
/**
|
||
|
* @author canny
|
||
|
* @date 2024/3/28 16:10
|
||
|
**/
|
||
|
class Login extends Base
|
||
|
{
|
||
|
|
||
|
private UserService $service;
|
||
|
|
||
|
public function __construct(App $app, Request $request)
|
||
|
{
|
||
|
parent::__construct($app, $request);
|
||
|
$this->service = $app->make(UserService::class);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @throws BusinessException
|
||
|
*/
|
||
|
public function loginSendSms(): \think\Response
|
||
|
{
|
||
|
$this->service->loginSendSms($this->params);
|
||
|
return responseOk();
|
||
|
}
|
||
|
|
||
|
}
|