From 22d9666102cbe59419d22d17c18841c13ff28eac Mon Sep 17 00:00:00 2001 From: molong Date: Sat, 29 Jun 2019 21:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.php => app/build.php | 17 +++++------------ app/controller/admin/Action.php | 21 +++++++++++++++++++++ app/controller/admin/Ad.php | 21 +++++++++++++++++++++ app/controller/admin/Addons.php | 21 +++++++++++++++++++++ app/controller/admin/Attribute.php | 21 +++++++++++++++++++++ app/controller/admin/Category.php | 21 +++++++++++++++++++++ app/controller/admin/Channel.php | 21 +++++++++++++++++++++ app/controller/admin/Client.php | 21 +++++++++++++++++++++ app/controller/admin/Config.php | 28 ++++++++++++++++++++++++++++ app/controller/admin/Content.php | 21 +++++++++++++++++++++ app/controller/admin/Database.php | 21 +++++++++++++++++++++ app/controller/admin/Form.php | 21 +++++++++++++++++++++ app/controller/admin/Group.php | 21 +++++++++++++++++++++ app/controller/admin/Index.php | 1 - app/controller/admin/Link.php | 21 +++++++++++++++++++++ app/controller/admin/Member.php | 21 +++++++++++++++++++++ app/controller/admin/Menu.php | 21 +++++++++++++++++++++ app/controller/admin/Model.php | 21 +++++++++++++++++++++ app/controller/admin/Seo.php | 21 +++++++++++++++++++++ app/model/Ad.php | 9 +++++++++ app/model/AdPlace.php | 9 +++++++++ app/model/Channel.php | 9 +++++++++ app/model/Client.php | 9 +++++++++ app/model/Config.php | 9 +++++++++ app/model/Content.php | 9 +++++++++ app/model/Link.php | 9 +++++++++ app/model/Member.php | 9 +++++++++ app/model/Model.php | 9 +++++++++ app/view/admin/category/index.html | 0 app/view/admin/config/group.html | 0 app/view/admin/content/index.html | 0 app/view/admin/member/index.html | 0 32 files changed, 450 insertions(+), 13 deletions(-) rename build.php => app/build.php (50%) create mode 100644 app/controller/admin/Action.php create mode 100644 app/controller/admin/Ad.php create mode 100644 app/controller/admin/Addons.php create mode 100644 app/controller/admin/Attribute.php create mode 100644 app/controller/admin/Category.php create mode 100644 app/controller/admin/Channel.php create mode 100644 app/controller/admin/Client.php create mode 100644 app/controller/admin/Config.php create mode 100644 app/controller/admin/Content.php create mode 100644 app/controller/admin/Database.php create mode 100644 app/controller/admin/Form.php create mode 100644 app/controller/admin/Group.php create mode 100644 app/controller/admin/Link.php create mode 100644 app/controller/admin/Member.php create mode 100644 app/controller/admin/Menu.php create mode 100644 app/controller/admin/Model.php create mode 100644 app/controller/admin/Seo.php create mode 100644 app/model/Ad.php create mode 100644 app/model/AdPlace.php create mode 100644 app/model/Channel.php create mode 100644 app/model/Client.php create mode 100644 app/model/Config.php create mode 100644 app/model/Content.php create mode 100644 app/model/Link.php create mode 100644 app/model/Member.php create mode 100644 app/model/Model.php create mode 100644 app/view/admin/category/index.html create mode 100644 app/view/admin/config/group.html create mode 100644 app/view/admin/content/index.html create mode 100644 app/view/admin/member/index.html diff --git a/build.php b/app/build.php similarity index 50% rename from build.php rename to app/build.php index 34ba3c84..4a5d100e 100644 --- a/build.php +++ b/app/build.php @@ -11,16 +11,9 @@ return [ // 生成应用公共文件 - '__file__' => ['common.php'], - - // 定义demo模块的自动生成 (按照实际定义的文件名生成) - 'demo' => [ - '__file__' => ['common.php'], - '__dir__' => ['behavior', 'controller', 'model', 'view'], - 'controller' => ['Index', 'Test', 'UserType'], - 'model' => ['User', 'UserType'], - 'view' => ['index/index'], - ], - - // 其他更多的模块定义 + '__file__' => ['common.php'], + '__dir__' => ['controller', 'model', 'view'], + 'controller' => ['Index', 'admin/Config', 'admin/Menu', 'admin/Member', 'admin/Content', 'admin/Action', 'admin/Ad', 'admin/Attribute', 'admin/Category', 'admin/Channel', 'admin/Client', 'admin/Database', 'admin/Model', 'admin/Link', 'admin/Seo', 'admin/Addons', 'admin/Form', 'admin/Group'], + 'model' => ['Member', 'Config', 'Content', 'Channel', 'Client', 'Model', 'Link', 'Ad', 'AdPlace'], + 'view' => ['admin/index/index', 'admin/config/group', 'admin/member/index', 'admin/content/index', 'admin/category/index'], ]; diff --git a/app/controller/admin/Action.php b/app/controller/admin/Action.php new file mode 100644 index 00000000..8971ea52 --- /dev/null +++ b/app/controller/admin/Action.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Action extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Ad.php b/app/controller/admin/Ad.php new file mode 100644 index 00000000..d8a57218 --- /dev/null +++ b/app/controller/admin/Ad.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Ad extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Addons.php b/app/controller/admin/Addons.php new file mode 100644 index 00000000..2e6bb0e4 --- /dev/null +++ b/app/controller/admin/Addons.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Addons extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Attribute.php b/app/controller/admin/Attribute.php new file mode 100644 index 00000000..8031b26d --- /dev/null +++ b/app/controller/admin/Attribute.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Attribute extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Category.php b/app/controller/admin/Category.php new file mode 100644 index 00000000..ce23e26d --- /dev/null +++ b/app/controller/admin/Category.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Category extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Channel.php b/app/controller/admin/Channel.php new file mode 100644 index 00000000..9adf4e03 --- /dev/null +++ b/app/controller/admin/Channel.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Channel extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Client.php b/app/controller/admin/Client.php new file mode 100644 index 00000000..7de46ae8 --- /dev/null +++ b/app/controller/admin/Client.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Client extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Config.php b/app/controller/admin/Config.php new file mode 100644 index 00000000..d9dbdcc8 --- /dev/null +++ b/app/controller/admin/Config.php @@ -0,0 +1,28 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Config extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } + + /** + * @title 系统首页 + */ + public function group(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Content.php b/app/controller/admin/Content.php new file mode 100644 index 00000000..1d634a41 --- /dev/null +++ b/app/controller/admin/Content.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Content extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Database.php b/app/controller/admin/Database.php new file mode 100644 index 00000000..6b8b10dd --- /dev/null +++ b/app/controller/admin/Database.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Database extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Form.php b/app/controller/admin/Form.php new file mode 100644 index 00000000..a843658f --- /dev/null +++ b/app/controller/admin/Form.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Form extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Group.php b/app/controller/admin/Group.php new file mode 100644 index 00000000..1a239c43 --- /dev/null +++ b/app/controller/admin/Group.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Group extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Index.php b/app/controller/admin/Index.php index 54e9302b..1bbd4342 100644 --- a/app/controller/admin/Index.php +++ b/app/controller/admin/Index.php @@ -20,7 +20,6 @@ class Index extends Admin{ * @title 系统首页 */ public function index(){ - return $this->data; } public function login(){ diff --git a/app/controller/admin/Link.php b/app/controller/admin/Link.php new file mode 100644 index 00000000..00421bdf --- /dev/null +++ b/app/controller/admin/Link.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Link extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Member.php b/app/controller/admin/Member.php new file mode 100644 index 00000000..536e9e97 --- /dev/null +++ b/app/controller/admin/Member.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Member extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Menu.php b/app/controller/admin/Menu.php new file mode 100644 index 00000000..1245f720 --- /dev/null +++ b/app/controller/admin/Menu.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Menu extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Model.php b/app/controller/admin/Model.php new file mode 100644 index 00000000..05cc32d7 --- /dev/null +++ b/app/controller/admin/Model.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Model extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/controller/admin/Seo.php b/app/controller/admin/Seo.php new file mode 100644 index 00000000..9743f8c8 --- /dev/null +++ b/app/controller/admin/Seo.php @@ -0,0 +1,21 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin; + +use app\controller\Admin; + +class Seo extends Admin{ + + /** + * @title 系统首页 + */ + public function index(){ + + } +} \ No newline at end of file diff --git a/app/model/Ad.php b/app/model/Ad.php new file mode 100644 index 00000000..543648b4 --- /dev/null +++ b/app/model/Ad.php @@ -0,0 +1,9 @@ +