userId; $data = $this->request->post(); $result = OrderLogic::orderStoreList($data,$userId); return $this->success('查询成功', $result, 1, 1); } /** * @notes 续单列表 * @return \think\response\Json * @author 胥聪 * @date 2025/11/25 18:03 * @data id */ public function orderRenewList(){ $data = $this->request->post(); $result = OrderLogic::orderRenewList($data); return $this->success('查询成功', $result, 1, 1); } /** * @notes 茶室订单搜索历史 * @return \think\response\Json * @author 胥聪 * @date 2025/12/18 16:16 */ public function orderStoreSearchHistory(){ $userId = $this->userId; $result = OrderLogic::getOrderStoreSearchHistory($userId); return $this->success('查询成功', $result, 1, 1); } /** * @notes 一键清空茶室搜索历史 * @return \think\response\Json * @author 胥聪 * @date 2025/12/18 16:16 */ public function delOrderStoreSearchHistory(){ $userId = $this->userId; $result = OrderLogic::delOrderStoreSearchHistory($userId); return $this->success('操作成功', [], 1, 1); } /** * @notes 包间订单详情 * @return \think\response\Json * @author 胥聪 * @date 2025/12/18 16:16 * @data */ public function orderStoreDetails(){ $data = $this->request->post(); $result = OrderLogic::orderStoreDetails($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 取消包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function cancelOrderStore(){ $data = $this->request->post(); $result = OrderLogic::cancelOrderStore($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 删除包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function delOrderStore(){ $data = $this->request->post(); // $result = OrderLogic::delOrderStore($data); return $this->success('目前删除', [], 0, 0); } /** * @notes 释放包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function releaseOrderStore(){ $data = $this->request->post(); $result = OrderLogic::releaseOrderStore($data); if ($result === false) { return $this->fail(OrderLogic::getError()); } return $this->success('操作成功', [], 1, 1); } /** * 管理员预定 */ public function addOrder(){ $userId = $this->userId; $data = $this->request->post(); $result = OrderLogic::addOrder($data,$userId); if ($result === false) { return $this->fail(OrderLogic::getError()); } return $this->success('操作成功', [], 1, 1); } /** * 管理员续订 */ public function renewOrder(){ $userId = $this->userId; $data = $this->request->post(); $result = OrderLogic::renewOrder($data,$userId); if ($result === false) { return $this->fail(OrderLogic::getError()); } return $this->success('操作成功', [], 1, 1); } }