dataLists(new MerchantWithdrawLists()); } /** * @notes 添加商户供应商提现表 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function add() { $params = (new MerchantWithdrawValidate())->post()->goCheck('add'); $result = MerchantWithdrawLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(MerchantWithdrawLogic::getError()); } /** * @notes 审核 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function check() { $params = (new MerchantWithdrawValidate())->post()->goCheck('check'); $result = MerchantWithdrawLogic::check($params,$this->adminId); if (true === $result) { return $this->success('审核成功', [], 1, 1); } return $this->fail(MerchantWithdrawLogic::getError()); } /** * @notes 设置到账 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function arrival() { $params = (new MerchantWithdrawValidate())->post()->goCheck('arrival'); $result = MerchantWithdrawLogic::arrival($params,$this->adminId); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(MerchantWithdrawLogic::getError()); } /** * @notes 编辑商户供应商提现表 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function edit() { $params = (new MerchantWithdrawValidate())->post()->goCheck('edit'); $result = MerchantWithdrawLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(MerchantWithdrawLogic::getError()); } /** * @notes 删除商户供应商提现表 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function delete() { $params = (new MerchantWithdrawValidate())->post()->goCheck('delete'); MerchantWithdrawLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取商户供应商提现表详情 * @return \think\response\Json * @author likeadmin * @date 2024/05/14 11:21 */ public function detail() { $params = (new MerchantWithdrawValidate())->goCheck('detail'); $result = MerchantWithdrawLogic::detail($params); return $this->data($result); } }