ArticleIntro.php 403 B

123456789101112131415
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. // 图文
  5. class ArticleIntro extends Model
  6. {
  7. public function itemList(){
  8. return $this->hasMany('ArticleItem','article_id')
  9. ->where('is_deleted',0)
  10. ->field('id,article_id,cover,is_vip,sort,transmit_num,read_num,title,images,content,video_id,video_item,datum_id,datum_item')
  11. ->order('sort desc');
  12. }
  13. }