39 lines
860 B
PHP
39 lines
860 B
PHP
<?php
|
|
|
|
namespace app\api\controller\Enrol;
|
|
|
|
use app\BaseController;
|
|
use app\common\model\Enrol\SignUpIntro as ModelSignUpIntro;
|
|
use app\Request;
|
|
use think\Validate;
|
|
use think\exception\ValidateException;
|
|
use think\facade\Filesystem;
|
|
use app\common\exception\Tool;
|
|
|
|
|
|
class SignUpIntro extends BaseController
|
|
{
|
|
/**
|
|
* 获取报名简介内容
|
|
*/
|
|
public function getSignUpIntro(Request $request): array
|
|
{
|
|
$params = $request->param();
|
|
|
|
$query = ModelSignUpIntro::field([
|
|
'sign_up_intro_id',
|
|
'sign_up_intro_title',
|
|
'sign_up_intro_subtitle',
|
|
'sign_up_intro_desc',
|
|
'sign_up_intro_content',
|
|
'sign_up_intro_img'
|
|
])->where(1)->find();
|
|
|
|
return [
|
|
'code' => 0,
|
|
'data' => $query,
|
|
'msg' => 'ok'
|
|
];
|
|
}
|
|
}
|