dataLists(); } /** * @notes 详情 * @return \think\response\Json * @author cjhao * @date 2024/10/29 13:15 */ public function detail() { $params = (new GoodsValidate())->goCheck('id'); $result = (new GoodsLogic())->detail($params['id']); return $this->success('',$result); } /** * @notes 上下架 * @return \think\response\Json * @author cjhao * @date 2024/10/29 13:04 */ public function status() { $params = (new GoodsValidate())->post()->goCheck('id'); (new GoodsLogic())->status($params['id']); return $this->success('操作成功',[],1,1); } /** * @notes 审核 * @return \think\response\Json * @author cjhao * @date 2024/10/29 13:24 */ public function audit() { $params = (new GoodsValidate())->post()->goCheck(); $result = (new GoodsLogic())->audit($params); if(true === $result){ return $this->success('审核成功',[],1,1); } return $this->fail(GoodsLogic::getError(),[],1,1); } }