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\DevelopmentHistory as ModelDevelopmentHistory;
|
|
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 DevelopmentHistory extends BaseController
|
|
{
|
|
/**
|
|
* 获取发展历程列表接口
|
|
*
|
|
* @param Request request
|
|
* @return array
|
|
* @date 2023-04-25
|
|
* @author xjh
|
|
* @since 1.0.0
|
|
*/
|
|
public function getDevelopmentHistoryList(Request $request): array
|
|
{
|
|
$select = ModelDevelopmentHistory::field([
|
|
'development_history_year',
|
|
'development_history_title',
|
|
'development_history_content'
|
|
])
|
|
->order('development_history_year', 'asc')
|
|
->select();
|
|
|
|
return msg(0, "获取发展历程列表成功!", [
|
|
'count' => count($select),
|
|
'data' => $select,
|
|
]);
|
|
}
|
|
}
|