feat: 添加代理商分页/导出/企业规模列表接口

This commit is contained in:
2025-03-13 18:01:36 +08:00
parent b9d4a7b27e
commit 3705434150
11 changed files with 350 additions and 12 deletions

View File

@@ -32,14 +32,13 @@ class CreateAgent extends Migrator
->addColumn('corp_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '公司名称'])
->addColumn('email', 'string', ['limit' => 64, 'null' => false, 'comment' => '邮箱'])
->addColumn('phone', 'string', ['limit' => 64, 'null' => false, 'comment' => '电话'])
->addColumn('website_url', 'string', ['limit' => 128, 'null' => false, 'comment' => '网站地址'])
->addColumn('business_type', 'integer', ['null' => false, 'comment' => '业务类型'])
->addColumn('enterprise_size', 'integer', ['null' => false, 'comment' => '企业规模'])
->addColumn('province', 'string', ['limit' => 64, 'null' => true, 'default' => null, 'comment' => ''])
->addColumn('city', 'string', ['limit' => 64, 'null' => true, 'default' => null, 'comment' => '市'])
->addColumn('district', 'string', ['limit' => 64, 'null' => true, 'default' => null, 'comment' => '区/县'])
->addColumn('referer_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '来源URL'])
->addColumn('website_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '网站URL'])
->addColumn('business_type', 'string', ['limit' => 128, 'null' => false, 'comment' => '业务类型'])
->addColumn('enterprise_size', 'string', ['limit' => 128, 'null' => false, 'comment' => '企业规模'])
->addColumn('address', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '地址'])
->addColumn('message', 'text', ['null' => true, 'default' => null, 'comment' => '留言'])
->addColumn('ip', 'string', ['limit' => 64, 'null' => false, 'comment' => 'IP'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->create();
}

View File

@@ -28,9 +28,10 @@ class CreateAgentBusinessType extends Migrator
public function change()
{
$table = $this->table('agent_business_type', ['engine' => 'MyISAM', 'comment' => '代理商业务类型表']);
$table->addColumn('cn_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '业务类型名称'])
->addColumn('en_name', 'string', ['limit' => 128, 'null' => false, 'comment' => '英文名称'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '业务类型描述'])
$table->addColumn('language_id', 'integer', ['null' => false, 'default' => 0, 'comment' => '语言ID'])
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型名'])
->addColumn('value', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型值'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述'])
->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->create();

View File

@@ -28,9 +28,10 @@ class CreateAgentEntrypriceSizeType extends Migrator
public function change()
{
$table = $this->table('agent_entryprice_size_type', ['engine' => 'MyISAM', 'comment' => '代理商企业规模类型表']);
$table->addColumn('cn_name', 'integer', ['signed' => false, 'null' => false, 'comment' => '中文类型名'])
->addColumn('en_name', 'integer', ['signed' => false, 'null' => false, 'comment' => '英文类型名'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述信息'])
$table->addColumn('language_id', 'integer', ['null' => false, 'default' => 0, 'comment' => '语言ID'])
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型名'])
->addColumn('value', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型值'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述'])
->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->create();