| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Http\Controllers\Api\v1;
- use App\Http\Controllers\Api\webApp;
- use App\Services\Common\NoticeService;
- /**
- * 公告
- * Class NoticeController
- * @package App\Http\Controllers\Api
- */
- class NoticeController extends webApp
- {
- /**
- * 构造函数
- * @author laravel开发员
- * @since 2020/11/11
- * NoticeController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new NoticeService();
- }
- /**
- * 详情
- */
- public function info()
- {
- $id = request()->post('id', 0);
- $info = $this->service->getInfo($id);
- return message(1010, true, $info);
- }
- }
|