37 lines
829 B
PHP
Executable File
37 lines
829 B
PHP
Executable File
<?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);
|
|
}
|
|
} |