first commit
This commit is contained in:
62
滴滴淘/diditao/app/controller/Login.php
Normal file
62
滴滴淘/diditao/app/controller/Login.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user