初始版本
This commit is contained in:
65
server/app/api/controller/ShopController.php
Executable file
65
server/app/api/controller/ShopController.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?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()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user