123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace App\Http\Controllers\Api\V1\Specialist;
- use App\Http\Controllers\Controller;
- use Illuminate\Http\Request;
- use App\Facades\SpecialistCloumnFacade;
- use App\Models\SpecialistCloumn;
- class IndexController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function index()
- {
- $conditions = [
- 'pid' => request('pid', SpecialistCloumn::PID_0),
- 'is_show' => SpecialistCloumn::IS_SHOW_1
- ];
- $fields = ['*'];
- $sort = '`rank` desc';
- $page = request('page', 1);
- $limit = request('limit', 20);
-
- return SpecialistCloumnFacade::getList($conditions, $fields, $sort, $page, $limit);
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request)
- {
- //
- }
- /**
- * Display the specified resource.
- *
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function show($id)
- {
- $conditions = [
- 'id' => $id
- ];
- return SpecialistCloumnFacade::findBy($conditions, ['*']);
- }
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, $id)
- {
- //
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function destroy($id)
- {
- //
- }
- }
|