SystemPage.php 646 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\admin\model;
  3. use support\Model;
  4. class SystemPage extends Model
  5. {
  6. /**
  7. * 小程序页面路径
  8. * The table associated with the model.
  9. *
  10. * @var string
  11. */
  12. protected $table = 'system_page';
  13. /**
  14. * The primary key associated with the table.
  15. *
  16. * @var string
  17. */
  18. protected $primaryKey = 'page_id';
  19. public $timestamps = false;
  20. /**
  21. * Notes:获取列表
  22. * @return array
  23. * User: yym
  24. * Date: 2022/10/25
  25. */
  26. public static function getPageList()
  27. {
  28. return static::select('*')
  29. ->get()
  30. ->toArray();
  31. }
  32. }