SitemapCate.php 458 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2021 勾股工作室
  4. * @license https://opensource.org/licenses/Apache-2.0
  5. * @link https://www.gougucms.com
  6. */
  7. namespace app\admin\model;
  8. use think\Model;
  9. class SitemapCate extends Model
  10. {
  11. /**
  12. * 关联网站地图
  13. * @param [type] $value [description]
  14. */
  15. public function sitemap()
  16. {
  17. return $this->hasMany('sitemap', 'sitemap_cate_id', 'id')->order('sort desc, id desc');
  18. }
  19. }