ListController.class.php 862 Bytes
<?php
/**
 * 【后台】获取照片墙详情接口
 * ListConTroller.class.php
 * User: caijianhua
 * Date: 2017/8/29
 * Time: 下午5:15
 */

namespace Apicp\Controller\Pic;

use Common\Service\PlanPicService;

class ListController extends \Apicp\Controller\AbstractController
{
    /** @var  PlanPicService 照片表 */
    protected $plan_pic_service;

    public function before_action($action = '')
    {
        if (!parent::before_action($action)) {
            return false;
        }
        $this->plan_pic_service = new PlanPicService();
        return true;
    }

    /**
     * 获取照片墙详情接口
     *
     * @author 蔡建华
     */
    public function Index_post()
    {
        $params = I('post.');
        //  照片墙列表
        $this->_result = $this->plan_pic_service->get_pic_list($params);

        return true;
    }
}