cmbYouku_Api/app/front/Login.php

35 lines
640 B
PHP
Raw Permalink Normal View History

2024-07-01 15:57:07 +08:00
<?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();
}
}