feat: 添加代理商分页/导出/企业规模列表接口
This commit is contained in:
34
app/common/model/AgentBaseModel.php
Normal file
34
app/common/model/AgentBaseModel.php
Normal 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'
|
||||
];
|
||||
}
|
||||
28
app/common/model/AgentBusinessTypeBaseModel.php
Normal file
28
app/common/model/AgentBusinessTypeBaseModel.php
Normal 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',
|
||||
];
|
||||
}
|
||||
28
app/common/model/AgentEnterpriseSizeTypeBaseModel.php
Normal file
28
app/common/model/AgentEnterpriseSizeTypeBaseModel.php
Normal 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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user