修复资源用mvc
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace app\admin\model\Resource;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class ResourceCategory extends Model
|
||||
{
|
||||
// 设置当前模型对应的数据表名称(不含前缀)
|
||||
protected $name = 'resources_category';
|
||||
|
||||
// 设置主键
|
||||
protected $pk = 'id';
|
||||
}
|
||||
Reference in New Issue
Block a user