MapPathService.class.php 591 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: zhonglei
 * Date: 18/4/25
 * Time: 17:30
 */
namespace Common\Service;

use Common\Model\MapPathModel;

class MapPathService extends AbstractService
{
    // 构造方法
    public function __construct()
    {
        parent::__construct();
        $this->_d = new MapPathModel();
    }

    /**
     * 根据地图ID获取路径数量
     * @author liyifei
     * @param int $map_ids 地图ID
     * @return array
     */
    public function getPathCountByMapIds($map_ids)
    {
        return $this->_d->getPathCountByMapIds($map_ids);
    }
}