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

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

View File

@@ -2,7 +2,7 @@
use think\migration\Migrator;
class CreateContactUs extends Migrator
class CreateLeaveMessage extends Migrator
{
/**
* Change Method.
@@ -27,7 +27,7 @@ class CreateContactUs extends Migrator
*/
public function change()
{
$table = $this->table('contact_us', ['engine' => 'MyISAM', 'comment' => '联系我们表']);
$table = $this->table('leave_message', ['engine' => 'MyISAM', 'comment' => '留言记录(联系我们表']);
$table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID'])
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '姓名'])
->addColumn('email', 'string', ['limit' => 128, 'null' => false, 'comment' => '邮箱'])