首页列表、广场、我的发布

This commit is contained in:
2025-11-26 11:40:41 +08:00
parent f82e912526
commit 56d637ba8b
6 changed files with 73 additions and 18 deletions
+8
View File
@@ -30,6 +30,14 @@ class BannerService
return new $this->validator;
}
public function getBanner($params){
$where = [];
if(isset($params['module'])){
$where['module'] = $params['module'];
}
return Banner::where('status','1')->where($where)->get();
}
public function getBannerModule(){
return BannerModule::where('status','1')->get();
}