123456789101112131415 |
- <?php
- namespace app\common\model;
- use think\Model;
- // 图文
- class ArticleIntro extends Model
- {
- public function itemList(){
- return $this->hasMany('ArticleItem','article_id')
- ->where('is_deleted',0)
- ->field('id,article_id,cover,is_vip,sort,transmit_num,read_num,title,images,content,video_id,video_item,datum_id,datum_item')
- ->order('sort desc');
- }
- }
|