feat: 新增导航相关接口
This commit is contained in:
35
app/common/model/SysNavigationItemBaseModel.php
Normal file
35
app/common/model/SysNavigationItemBaseModel.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 导航数据模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class SysNavigationItemBaseModel extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'sys_navigation_item';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'nav_id' => 'int',
|
||||
'pid' => 'int',
|
||||
'name' => 'string',
|
||||
'icon' => 'string',
|
||||
'link_type' => 'int',
|
||||
'link' => 'string',
|
||||
'sort' => 'int',
|
||||
'blank' => 'int',
|
||||
'status' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user