dataLists(new WithdrawBankLists()); } /** * @notes 添加可提现银行 * @return \think\response\Json * @author BD * @date 2024/02/25 12:19 */ public function add() { $params = (new WithdrawBankValidate())->post()->goCheck('add'); $result = WithdrawBankLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(WithdrawBankLogic::getError()); } /** * @notes 编辑可提现银行 * @return \think\response\Json * @author BD * @date 2024/02/25 12:19 */ public function edit() { $params = (new WithdrawBankValidate())->post()->goCheck('edit'); $result = WithdrawBankLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(WithdrawBankLogic::getError()); } /** * @notes 删除可提现银行 * @return \think\response\Json * @author BD * @date 2024/02/25 12:19 */ public function delete() { $params = (new WithdrawBankValidate())->post()->goCheck('delete'); WithdrawBankLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取可提现银行详情 * @return \think\response\Json * @author BD * @date 2024/02/25 12:19 */ public function detail() { $params = (new WithdrawBankValidate())->goCheck('detail'); $result = WithdrawBankLogic::detail($params); return $this->data($result); } /** * @notes 获取所有银行 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author BD * @date 2024/02/25 12:19 */ public function allByLang() { $params = (new WithdrawBankValidate())->goCheck('allByLang'); $result = WithdrawBankLogic::allByLang($params); return $this->data($result); } }