Ad.php 478 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\api\model\page;
  3. use app\common\model\page\Ad as AdModel;
  4. /**
  5. * 广告模型
  6. */
  7. class Ad extends AdModel
  8. {
  9. /**
  10. * 隐藏字段
  11. */
  12. protected $hidden = [
  13. 'app_id',
  14. 'create_time',
  15. 'update_time',
  16. 'name',
  17. 'sort',
  18. 'image_id',
  19. 'category_id'
  20. ];
  21. public function getIndex($where,$limit){
  22. return parent::getLists($where,$limit);
  23. }
  24. }