更新
This commit is contained in:
19
app/controller/system/File.php
Normal file
19
app/controller/system/File.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\system;
|
||||
|
||||
use app\controller\Base;
|
||||
use app\services\system\DictionaryService;
|
||||
|
||||
/**
|
||||
* @title 文件
|
||||
*/
|
||||
class File extends Base{
|
||||
|
||||
}
|
||||
@@ -27,4 +27,16 @@ class Log extends Base {
|
||||
$this->data['data'] = $list;
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 我的日志
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function my(){
|
||||
$list = app()->make(UsersLogService::class)->getMyLogList($this->request);
|
||||
|
||||
$this->data['data'] = $list;
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
@@ -126,10 +126,9 @@ class Menu extends Base{
|
||||
* @title 我的菜单
|
||||
* @return Array
|
||||
*/
|
||||
public function my(){
|
||||
$menu = app()->make(AuthService::class)->getAuthMenu();
|
||||
public function my(AuthService $service){
|
||||
$this->data['code'] = 1;
|
||||
$this->data['data'] = ['menu' => $menu, 'permissions' => []];
|
||||
$this->data['data'] = ['menu' => $service->getAuthMenu($this->request), 'permissions' => $service->getAuthPermissions($this->request)];
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user