协程版仓库后端项目
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2025-07-08 14:59:47 +08:00
commit 0b2299c427
134 changed files with 19277 additions and 0 deletions

View 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;
}
}

View 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',
];
}
}