feat: 新增导航相关接口

This commit is contained in:
2025-03-01 18:05:35 +08:00
parent d21a69d99d
commit b5dae966e6
10 changed files with 252 additions and 3 deletions

View 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',
];
}