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

@@ -0,0 +1,34 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 代理商数据模型
* @mixin \think\Model
*/
class AgentBaseModel extends BaseModel
{
// 表名
protected $name = 'agent';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'corp_name' => 'string',
'email' => 'string',
'phone' => 'string',
'referer_url' => 'string',
'website_url' => 'string',
'business_type' => 'string',
'enterprise_size' => 'string',
'address' => 'string',
'message' => 'string',
'ip' => 'string',
'created_at' => 'datetime'
];
}

View File

@@ -0,0 +1,28 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 代理商业务类型模型
* @mixin \think\Model
*/
class AgentBusinessTypeBaseModel extends BaseModel
{
// 表名
protected $name = 'agent_business_type';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'name' => 'string',
'value' => 'string',
'desc' => 'string',
'sort' => 'int',
'created_at' => 'datetime',
];
}

View File

@@ -0,0 +1,28 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 代理商企业规模类型模型
* @mixin \think\Model
*/
class AgentEnterpriseSizeTypeBaseModel extends BaseModel
{
// 表名
protected $name = 'agent_enterprise_size_type';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'name' => 'string',
'value' => 'string',
'desc' => 'string',
'sort' => 'int',
'created_at' => 'datetime',
];
}