feat: 新增导航相关接口

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

View File

@@ -0,0 +1,15 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 导航模型
* @mixin \think\Model
*/
class SysNavigationBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_navigation';
}

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

View File

@@ -0,0 +1,24 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 导航链接类型模型
* @mixin \think\Model
*/
class SysNavigationLinkTypeBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_navigation_link_type';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'type_name' => 'string',
'sort' => 'int'
];
}