cxgj/modules/api/controllers/LevelController.php
2023-11-27 09:45:13 +08:00

57 lines
1.2 KiB
PHP

<?php
/**
* @author Any
* @description KISS
* @date 2021年6月30日
* @version 1.0.0
*
* _____LOG_____
*
*/
namespace app\modules\api\controllers;
use app\modules\api\behaviors\LoginBehavior;
use app\components\SiteHelper;
use app\components\SysConst;
use app\models\common\CommonFaqActionForm;
use app\models\common\CommonFaqListForm;
use app\models\common\CommonFaqTreeListForm;
use app\models\Faq;
use app\models\FaqMeta;
use app\components\SysErrCode;
use app\modules\api\models\LevelActionForm;
use yii\web\NotFoundHttpException;
class LevelController extends Controller
{
public function behaviors() {
return array_merge(parent::behaviors(),[
'login' => [
'class' => LoginBehavior::className(),
'ignore' => [
]
]
]);
}
/**
* showdoc
* @catalog 会员中心
* @title 会员中心
* @description 会员中心
* @method get
* @url /api/level/lists
* @return
* @return_param
* @remark
*/
public function actionLists()
{
$form = new LevelActionForm();
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->lists();
return $this->responseHandler($data);
}
}