1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-20 11:03:01 +08:00
koogua 0336a54911 1.源文件增加版权信息
2.群组状态和课程协同
2021-06-13 15:49:47 +08:00

47 lines
995 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Http\Home\Controllers;
use App\Services\Logic\Report\ReasonList as ReasonListService;
use App\Services\Logic\Report\ReportCreate as ReportCreateService;
use Phalcon\Mvc\View;
/**
* @RoutePrefix("/report")
*/
class ReportController extends Controller
{
/**
* @Get("/add", name="home.report.add")
*/
public function addAction()
{
$this->view->setRenderLevel(View::LEVEL_ACTION_VIEW);
$service = new ReasonListService();
$reasons = $service->handle();
$this->view->setVar('reasons', $reasons);
}
/**
* @Post("/create", name="home.report.create")
*/
public function createAction()
{
$service = new ReportCreateService();
$service->handle();
return $this->jsonSuccess(['msg' => '举报成功']);
}
}