CommentListController.class.php 716 Bytes
<?php
/**
 * CommentListController.class.php
 * 回帖评论列表
 * User: heyuelong
 * Date: 2017年4月27日14:26:19
 */

namespace Api\Controller\Replies;

use Common\Common\Constant;
use Common\Service\CircleService;

class CommentListController extends \Api\Controller\AbstractController
{

    protected $_require_login = false;

    public function Index_get()
    {
        $params = I('get.');

        // 回帖id
        if (empty($params['id'])) {

            E('_EMPTY_REPLIES_ID');
        }

        // 评论列表
        $service = new CircleService();
        $list = $service->get_comment_list($params, $this->uid, Constant::CIRCLE_COMMENT_TOPIC_TYPE);

        $this->_result = $list;
    }
}