feat: 添加批量采购询盘分页/导出接口

This commit is contained in:
2025-03-13 16:23:37 +08:00
parent 6f27fed578
commit b9d4a7b27e
5 changed files with 202 additions and 5 deletions

View File

@@ -34,11 +34,13 @@ class CreateBulkPurchaseInquiry extends Migrator
->addColumn('last_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '名'])
->addColumn('email', 'string', ['limit' => 128, 'null' => false, 'comment' => '邮箱'])
->addColumn('phone', 'string', ['limit' => 32, 'null' => false, 'comment' => '电话'])
->addColumn('province', 'string', ['limit' => 64, 'null' => false, 'comment' => '省'])
->addColumn('city', 'string', ['limit' => 64, 'null' => false, 'comment' => '市'])
->addColumn('district', 'string', ['limit' => 64, 'null' => false, 'comment' => '区'])
->addColumn('address', 'string', ['limit' => 255, 'null' => false, 'comment' => '地址'])
->addColumn('interest', 'string', ['limit' => 255, 'null' => false, 'comment' => '兴趣(感兴趣的产品品类)'])
->addColumn('province', 'string', ['limit' => 64, 'null' => true, 'comment' => '省'])
->addColumn('city', 'string', ['limit' => 64, 'null' => true, 'comment' => '市'])
->addColumn('district', 'string', ['limit' => 64, 'null' => true, 'comment' => '区'])
->addColumn('address', 'string', ['limit' => 255, 'null' => true, 'comment' => '地址'])
->addColumn('interested', 'string', ['limit' => 255, 'null' => false, 'comment' => '兴趣(感兴趣的产品品类)'])
->addColumn('url', 'string', ['limit' => 255, 'null' => true, 'comment' => '感兴趣产品所在官网URL'])
->addColumn('referer_url', 'string', ['limit' => 255, 'null' => true, 'comment' => '来源URL'])
->addColumn('message', 'text', ['null' => false, 'comment' => '留言内容'])
->addColumn('ip', 'string', ['limit' => 64, 'null' => false, 'comment' => 'IP'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])