62 lines
1.1 KiB
PHP
62 lines
1.1 KiB
PHP
<?php
|
|
|
|
|
|
namespace app\controller;
|
|
|
|
|
|
use diditao\common\base\BaseController;
|
|
use diditao\common\response\facade\AppResponse;
|
|
|
|
class Login extends BaseController
|
|
{
|
|
/**
|
|
* @desc 用户登录
|
|
* @user Liu qian
|
|
* @time 2020/5/8 22:13
|
|
* @return mixed
|
|
* @throws \diditao\common\exception\AppError
|
|
*/
|
|
public function index()
|
|
{
|
|
$this->validate();
|
|
return AppResponse::handle();
|
|
}
|
|
|
|
/**
|
|
* @desc 用户注册
|
|
* @user Liu qian
|
|
* @time 2020/5/8 22:13
|
|
* @return mixed
|
|
* @throws \diditao\common\exception\AppError
|
|
*/
|
|
public function reg()
|
|
{
|
|
$this->validate();
|
|
return AppResponse::handle();
|
|
}
|
|
|
|
/**
|
|
* @desc 重置密码
|
|
* @user Liu qian
|
|
* @time 2020/5/8 22:13
|
|
* @return mixed
|
|
* @throws \diditao\common\exception\AppError
|
|
*/
|
|
public function forget()
|
|
{
|
|
$this->validate();
|
|
return AppResponse::handle();
|
|
}
|
|
|
|
/**
|
|
* @desc 退出登录
|
|
* @user Liu qian
|
|
* @time 2020/5/9 1:00
|
|
* @return mixed
|
|
*/
|
|
public function logout()
|
|
{
|
|
return AppResponse::handle();
|
|
}
|
|
|
|
} |