setSearch(['merchant'=>222]); return $this->dataLists($lists); } /** * @notes 添加零售订单 * @return \think\response\Json * @author likeadmin * @date 2024/04/24 09:57 */ public function add() { $params = (new CashierclassValidate())->post()->goCheck('add'); $result = CashierclassLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(CashierclassLogic::getError()); } /** * @notes 编辑零售订单 * @return \think\response\Json * @author likeadmin * @date 2024/04/24 09:57 */ public function edit() { $params = (new CashierclassValidate())->post()->goCheck('edit'); $result = CashierclassLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(CashierclassLogic::getError()); } /** * @notes 删除零售订单 * @return \think\response\Json * @author likeadmin * @date 2024/04/24 09:57 */ public function delete() { $params = (new CashierclassValidate())->post()->goCheck('delete'); CashierclassLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取零售订单详情 * @return \think\response\Json * @author likeadmin * @date 2024/04/24 09:57 */ public function detail() { $params = (new CashierclassValidate())->goCheck('detail'); $result = CashierclassLogic::detail($params); return $this->data($result); } }