nk-lihaink-cn/app/admin/model/SitemapCate.php
2021-01-30 20:59:12 +08:00

17 lines
307 B
PHP

<?php
namespace app\admin\model;
use think\Model;
class SitemapCate extends Model
{
/**
* 关联网站地图
* @param [type] $value [description]
*/
public function sitemap()
{
return $this->hasMany('sitemap', 'sitemap_cate_id', 'id')->order('sort desc, id desc');
}
}