| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Http\Controllers\api;
- use App\Models\Cao;
- use App\Services\IssueService;
- class Issue extends BaseController
- {
- public function index()
- {
- $page = request()->input('page', 1);
- $limit = request()->input('limit', 10);
- $params = [
- 'page' => $page,
- 'limit' => $limit
- // 'status'=>3
- ];
- $res = IssueService::paginate($params);
- return $this->success($res);
- }
- public function cao()
- {
- $type = [1, 2, 3, 4];
- $list = [];
- $list[] = Cao::whereIn('id', $type)->get();
- $type = [5,6,7,8];
- $list[] = Cao::whereIn('id', $type)->get();
- return $this->success($list);
- }
- }
|