初始版本
This commit is contained in:
37
server/app/shopapi/controller/GoodsCommentController.php
Executable file
37
server/app/shopapi/controller/GoodsCommentController.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
namespace app\shopapi\controller;
|
||||
|
||||
use app\shopapi\lists\CommentGoodsLists;
|
||||
use app\shopapi\logic\GoodsCommentLogic;
|
||||
|
||||
/**
|
||||
* 评论控制器类
|
||||
* Class GoodsCommentController
|
||||
* @package app\shopapi\controller
|
||||
*/
|
||||
class GoodsCommentController extends BaseShopController
|
||||
{
|
||||
|
||||
/**
|
||||
* @notes 服务评价列表
|
||||
* @return \think\response\Json
|
||||
* @author ljj
|
||||
* @date 2022/2/18 11:24 上午
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CommentGoodsLists());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 服务评价分类
|
||||
* @return \think\response\Json
|
||||
* @author ljj
|
||||
* @date 2022/2/18 2:10 下午
|
||||
*/
|
||||
public function commentCategory()
|
||||
{
|
||||
$result = (new GoodsCommentLogic())->commentCategory($this->shopId);
|
||||
return $this->success('',$result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user