Files
anmo/server/app/api/controller/ShopController.php
2025-08-19 14:16:51 +08:00

65 lines
1.4 KiB
PHP
Executable File

<?php
namespace app\api\controller;
use app\api\lists\ShopCommentGoodsLists;
use app\api\lists\ShopLists;
use app\api\logic\ShopLogic;
/**
* 门店控制器类
* Class ShopController
* @package app\api\controller
*/
class ShopController extends BaseApiController
{
public array $notNeedLogin = ['lists','detail','commentCategory','commentLists'];
/**
* @notes 商家列表
* @return \think\response\Json
* @author cjhao
* @date 2024/11/20 20:40
*/
public function lists()
{
return $this->dataLists((new ShopLists()));
}
/**
* @notes 门店详情
* @return \think\response\Json
* @author cjhao
* @date 2024/10/18 01:54
*/
public function detail(){
$params = $this->request->get();
$detail = (new ShopLogic())->detail($params,$this->userInfo);
return $this->success('',$detail);
}
/**
* @notes 分类列表
* @return \think\response\Json
* @author cjhao
* @date 2024/10/28 15:26
*/
public function commentCategory()
{
$shopId = $this->request->get('shop_id');
$lists = (new ShopLogic())->commentCategory($shopId);
return $this->success('',$lists);
}
/**
* @notes 分类列表
* @return \think\response\Json
* @author cjhao
* @date 2024/10/28 16:06
*/
public function commentLists()
{
return $this->dataLists((new ShopCommentGoodsLists()));
}
}