feat(arc): 新增ARC设备管理功能
- 创建了ARC设备管理的完整CRUD功能模块 - 实现了后台控制器、模型、验证器和视图文件 - 配置了应用基础设置和站点信息参数 - 添加了API接口控制器和数据模型 - 集成了Bootstrap表格组件和表单验证功能 - 支持设备IMEI、APP ID、SDK KEY等关键信息管理 - 实现软删除和回收站功能 - 配置了前端页面模板和JavaScript交互逻辑
This commit is contained in:
41
application/admin/model/Arc.php
Normal file
41
application/admin/model/Arc.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use traits\model\SoftDelete;
|
||||
|
||||
class Arc extends Model
|
||||
{
|
||||
|
||||
use SoftDelete;
|
||||
|
||||
|
||||
|
||||
// 表名
|
||||
protected $name = 'arc';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = 'datetime';
|
||||
protected $dateFormat = 'Y-m-d H:i:s';
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = 'updatetime';
|
||||
protected $deleteTime = 'deletetime';
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user