123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace Themes\Pro\modunawa\app\Http\Controllers;
- use App\Http\Controllers\Controller;
- use App\Services\CallApiService;
- class IndexController extends Controller
- {
- private $callApiService;
- public function __construct(CallApiService $callApiService)
- {
- $this->callApiService = $callApiService;
- }
- public function index()
- {
- $listType1Book = $this->callApiService->callApi([
- 'url' => 'list-type1-book',
- 'data' => [
- 'Book' => [
- [
- 'QueryVars' => [
- 'QueryName' => 'pro/widget-taxo',
- 'SimpleFilter' => "mx.taxo_code='ma-main-slider'",
- 'IsntPagination' => true,
- ],
- 'PageVars' => [
- 'Limit' => 10
- ]
- ],
- [
- 'QueryVars' => [
- 'QueryName' => 'pro:shop/item-taxo',
- 'SimpleFilter' => "mx.item_taxo_no='best'",
- 'SubSimpleFilter' => "image_type = 'thumb'",
- 'IsntPagination' => true,
- ],
- 'PageVars' => [
- 'Limit' => 10
- ]
- ],
- [
- 'QueryVars' => [
- 'QueryName' => 'pro:shop/item-taxo',
- 'SimpleFilter' => "mx.item_taxo_no='weekly-best'",
- 'SubSimpleFilter' => "image_type = 'thumb'",
- 'IsntPagination' => true,
- ],
- 'PageVars' => [
- 'Limit' => 10
- ]
- ],
- [
- 'QueryVars' => [
- 'QueryName' => 'pro:shop/item-taxo',
- 'SimpleFilter' => "mx.item_taxo_no='with-coin'",
- 'SubSimpleFilter' => "image_type = 'middle'",
- 'IsntPagination' => true,
- ],
- 'PageVars' => [
- 'Limit' => 10
- ]
- ],
- [
- 'QueryVars' => [
- 'QueryName' => 'pro:shop/item-taxo',
- 'SimpleFilter' => "mx.item_taxo_no='gift-coupon'",
- 'SubSimpleFilter' => "image_type = 'middle'",
- 'IsntPagination' => true,
- ],
- 'PageVars' => [
- 'Limit' => 10
- ]
- ],
- ]
- ]
- ]);
- // dump($listType1Book);
- return view('views.index', compact('listType1Book'));
- }
- }
|