This commit is contained in:
38
app/Dao/Company/CompanyDao.php
Normal file
38
app/Dao/Company/CompanyDao.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Author: ykxiao
|
||||
* Date: 2025/6/5
|
||||
* Time: 下午5:59
|
||||
* Description:
|
||||
*
|
||||
* (c) ykxiao <yk_9001@hotmail.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Dao\Company;
|
||||
|
||||
use App\Dao\AbstractDao;
|
||||
use App\Model\Company;
|
||||
|
||||
/**
|
||||
* Author: ykxiao
|
||||
* Date: 2025/6/5
|
||||
* Time: 下午6:00
|
||||
* Description: CompanyDao类用于提供公司相关的数据访问和操作。它继承自AbstractDao类,并实现了CompanyDao接口。
|
||||
*
|
||||
* (c) ykxiao <yk_9001@hotmail.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
class CompanyDao extends AbstractDao
|
||||
{
|
||||
public function getModel(): string
|
||||
{
|
||||
return Company::class;
|
||||
}
|
||||
}
|
60
app/Dao/Company/FirstCompanyDao.php
Normal file
60
app/Dao/Company/FirstCompanyDao.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* Author: ykxiao
|
||||
* Date: 2025/6/5
|
||||
* Time: 下午9:24
|
||||
* Description:
|
||||
*
|
||||
* (c) ykxiao <yk_9001@hotmail.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Dao\Company;
|
||||
|
||||
use App\Dao\AbstractDao;
|
||||
use App\Model\FirstCompany;
|
||||
|
||||
/**
|
||||
* Author: ykxiao
|
||||
* Date: 2025/6/5
|
||||
* Time: 下午9:25
|
||||
* Description: 平台公司数据访问层.
|
||||
*
|
||||
* (c) ykxiao <yk_9001@hotmail.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
class FirstCompanyDao extends AbstractDao
|
||||
{
|
||||
public function getModel(): string
|
||||
{
|
||||
return FirstCompany::class;
|
||||
}
|
||||
|
||||
public function getFields(): array
|
||||
{
|
||||
return [
|
||||
'id',
|
||||
'domain',
|
||||
'name',
|
||||
'full_name',
|
||||
'company_type',
|
||||
'address',
|
||||
'logo',
|
||||
'owner', // 公司负责人
|
||||
'id_card', // 法人身份证
|
||||
'mobile',
|
||||
'org_code',
|
||||
'remark',
|
||||
'active_status',
|
||||
'activation_date',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user