12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- namespace App\Http\Controllers\Api\V1\Mentality;
- use Illuminate\Http\Request;
- use App\Http\Controllers\Api\V1\BaseController;
- use App\Facades\MentalityDrillCategoryFacade;
- class DrillCategoryController extends BaseController
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function index(Request $request)
- {
- $conditions = [];
- $fields = ['*'];
- $sort = '`rank` desc';
- $page = request('page', 1);
- $limit = request('limit', 20);
- $requestUri = $request->getRequestUri();
- if ($requestUri!=null){
- if (strstr($requestUri,"mentality/drill_category")){
- $conditions["isSubject"] = true;
- }
- }
- return MentalityDrillCategoryFacade::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)
- {
- //
- }
- /**
- * 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)
- {
- //
- }
- }
|