ApiAdmin/app/util/AutoBuild.php
2021-02-19 19:34:04 +08:00

47 lines
785 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
*
* @since 2021-02-18
* @author zhaoxiang <zhaoxiang051405@gmail.com>
*/
namespace app\util;
class AutoBuild {
private $config = [
'model' => 0, // 是否需要构建模型
'control' => 1, // 是否需要构建控制器
'menu' => 1, // 是否需要构建目录
'route' => 1, // 是否需要构建路由
'name' => '', // 唯一标识
'module' => 1, // 构建类型 1admin2api
'table' => '' // 表名称
];
public function run($config) {
}
private function buildControl() {
}
private function buildModel() {
}
private function createTable() {
}
private function buildMenu() {
}
private function buildRoute() {
}
}