dataLists(new GoodsCommentLists()); } /** * @notes 商家回复 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/8/12 5:26 下午 */ public function reply() { $params = (new GoodsCommentValidate())->post()->goCheck('reply'); (new GoodsCommentLogic())->reply($params); return $this->success('操作成功',[],1,1); } /** * @notes 删除评价 * @return \think\response\Json * @author ljj * @date 2021/9/9 11:20 上午 */ public function del() { $params = (new GoodsCommentValidate())->post()->goCheck('del'); (new GoodsCommentLogic())->del($params); return $this->success('删除成功',[],1,1); } /** * @notes 修改评价审核状态 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/9/9 2:41 下午 */ public function status() { $params = (new GoodsCommentValidate())->post()->goCheck('status'); (new GoodsCommentLogic())->status($params); return $this->success('操作成功',[],1,1); } }