feat: 新增系统接口表模型

This commit is contained in:
2025-03-18 09:52:42 +08:00
parent ec30eae536
commit b98f02d6b1
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 系统接口表模型
* @mixin \think\Model
*/
class SysRestfulApiBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_restful_api';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'module' => 'string',
'name' => 'string',
'rule' => 'string',
'method' => 'string',
'desc' => 'string',
'created_at' => 'datetime',
'updated_at' => 'datetime'
];
}