first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
69df9137-96a1-4de5-a0ee-79d0e3e649fd
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2018/10/15
|
||||
* Time: 21:51
|
||||
*/
|
||||
|
||||
namespace app\admin\controller\tool;
|
||||
|
||||
|
||||
use app\admin\controller\AdminController;
|
||||
|
||||
/**
|
||||
* 图标管理
|
||||
* Class Icon
|
||||
* @package app\admin\controller
|
||||
*/
|
||||
class Icon extends AdminController {
|
||||
|
||||
/**
|
||||
* 图标列表
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$basic_data = [
|
||||
'title' => '图标列表',
|
||||
];
|
||||
return $this->fetch('', $basic_data);
|
||||
}
|
||||
|
||||
public function fa(){
|
||||
$basic_data = [
|
||||
'title' => 'fa图标列表',
|
||||
];
|
||||
return $this->fetch('', $basic_data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2018/10/15
|
||||
* Time: 21:58
|
||||
*/
|
||||
|
||||
namespace app\admin\controller\tool;
|
||||
|
||||
|
||||
use app\admin\controller\AdminController;
|
||||
|
||||
/**
|
||||
* 上传图片插件
|
||||
* Class Upload
|
||||
* @package app\admin\controller\tool
|
||||
*/
|
||||
class Upload extends AdminController {
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
* @param string $type ['multi','one']
|
||||
* @return mixed
|
||||
*/
|
||||
public function image($type = 'one') {
|
||||
return $this->fetch('', ['type' => $type]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user