This commit is contained in:
walkor 2022-09-25 19:55:02 +08:00
parent f1f7648aeb
commit 5e4288f05e
2 changed files with 0 additions and 67 deletions

View File

@ -1,35 +0,0 @@
<?php
namespace plugin\admin\app\controller;
use plugin\admin\app\controller\Base;
use plugin\admin\app\controller\Crud;
use plugin\admin\app\model\Aritcle;
use support\Request;
/**
* 文章管理
*/
class AritcleController extends Base
{
/**
* 开启增删改查
*/
use Crud;
/**
* @var Aritcle
*/
protected $model = null;
/**
* 构造函数
*
* @return void
*/
public function __construct()
{
$this->model = new Aritcle;
}
}

View File

@ -1,32 +0,0 @@
<?php
namespace plugin\admin\app\model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $title 标题
* @property string $content 内容
* @property integer $uid 用户id
*/
class Aritcle extends Base
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'aritcle';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}