feat: 添加留言记录(联系我们)分页/导出接口
This commit is contained in:
@@ -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' => '邮箱'])
|
||||
Reference in New Issue
Block a user