<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\CmsJob\Api\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use Module\CmsJob\Util\CmsJobUtil; class CmsJobController extends Controller { public function paginate() { goto Gu7D9; Wvshr: $aY5Ol = array(); goto DwVSt; ohAMR: $qDx9U = $Cj1F4->getPage(); goto l1JQT; eK2kz: return Response::generateSuccessData(array('page' => $qDx9U, 'pageSize' => $JDSm5, 'total' => $aNWPu['total'], 'records' => $vKRZ2)); goto e2xjr; O1kg2: $aY5Ol['order'] = array('id', 'desc'); goto LaqMx; VeRTQ: $vKRZ2 = CmsJobUtil::buildRecords($aNWPu['records']); goto eK2kz; DwVSt: $aY5Ol['where'] = array(); goto O1kg2; LaqMx: $aNWPu = ModelUtil::paginate('cms_job', $qDx9U, $JDSm5, $aY5Ol); goto VeRTQ; Gu7D9: $Cj1F4 = InputPackage::buildFromInput(); goto ohAMR; l1JQT: $JDSm5 = $Cj1F4->getPageSize(); goto Wvshr; e2xjr: } public function get() { goto WDt56; PHl4_: $Lu5WV = CmsJobUtil::get($WXJys); goto zOocB; zOocB: $aTKlo = CmsJobUtil::buildRecord($Lu5WV); goto iDggc; WDt56: $WXJys = InputPackage::buildFromInput()->getInteger('id'); goto PHl4_; GwV2X: return Response::generateSuccessData($aTKlo); goto cYwTO; iDggc: $aTKlo['content'] = $Lu5WV['content']; goto GwV2X; cYwTO: } }