45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace app\api\controller\AboutUs;
|
|
|
|
use app\BaseController;
|
|
use app\common\model\AboutUs\CompanyProfile as ModelCompanyProfile;
|
|
use app\Request;
|
|
use think\Validate;
|
|
use think\exception\ValidateException;
|
|
use think\facade\Filesystem;
|
|
use app\common\arw\adjfut\src\Excel;
|
|
use app\common\arw\adjfut\src\UploadFile;
|
|
use app\common\exception\Tool;
|
|
use think\facade\Db;
|
|
use think\facade\Env;
|
|
|
|
|
|
class CompanyProfile extends BaseController
|
|
{
|
|
/**
|
|
* 获取公司简介列表接口
|
|
*
|
|
* @param Request request
|
|
* @return array
|
|
* @date 2023-04-25
|
|
* @author xjh
|
|
* @since 1.0.0
|
|
*/
|
|
public function getCompanyProfileList(Request $request): array
|
|
{
|
|
$select = ModelCompanyProfile::field([
|
|
'company_profile_img',
|
|
'company_profile_content',
|
|
'company_profile_order'
|
|
])
|
|
->order('company_profile_order', 'asc')
|
|
->select();
|
|
|
|
return msg(0, "获取公司简介列表成功!", [
|
|
'count' => count($select),
|
|
'data' => $select,
|
|
]);
|
|
}
|
|
}
|