<?php

namespace common\models;


class SpecialTopic extends Common
{
    public function rules()
    {
        return [
            ['hids','required','message'=>'楼盘ID不能为空'],
            [['hids','zt_name','pc_img','m_img','expiration_date'],'string',],
        ];
    }

    public function getList($page)
    {
        $query = self::find();
        $data['count'] = $query->count();
        if (!empty($page['page'])) {
            $query->offset = ($page['page'] - 1) * $page['limit'];
            $query->limit = $page['limit'];
        }
        $data['data'] =  $query->asArray()->all();
        return $data;
    }


}