feat: 添加留言记录(联系我们)分页/导出接口

This commit is contained in:
2025-03-13 11:54:42 +08:00
parent 54740b7566
commit d67e19df00
5 changed files with 147 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 留言记录(联系我们)模型
* @mixin \think\Model
*/
class LeaveMessageBaseModel extends BaseModel
{
// 表名
protected $name = 'leave_message';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'name' => 'string',
'email' => 'string',
'content' => 'string',
'ip' => 'string',
'user_agent' => 'string',
'created_at' => 'datetime',
];
}