| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\ArticleService;
- use App\Services\Common\ComplaintService;
- /**
- * 意见反馈
- * Class ComplaintController
- * @package App\Http\Controllers\Admin
- */
- class ComplaintController extends Backend
- {
- /**
- * 构造函数
- * @author laravel开发员
- * @since 2020/11/11
- * ComplaintController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new ComplaintService();
- }
- /**
- * 列表
- * @return array
- */
- public function index()
- {
- $pageSize = request()->get('limit', 15);
- $list = $this->service->getDataList(request()->all(), $pageSize);
- $message = array(
- "msg" => '操作成功',
- "code" => 0,
- "data" => isset($list['list'])? $list['list']:[],
- "count" => isset($list['total'])? $list['total']:0,
- );
- return $message;
- }
- }
|