rm
This commit is contained in:
parent
f1f7648aeb
commit
5e4288f05e
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user