dataLists(new UserBillLists()); } /** * @notes 添加资金记录 * @return \think\response\Json * @author admin * @date 2024/05/31 16:44 */ public function add() { $params = (new UserBillValidate())->post()->goCheck('add'); $result = UserBillLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(UserBillLogic::getError()); } /** * @notes 编辑资金记录 * @return \think\response\Json * @author admin * @date 2024/05/31 16:44 */ public function edit() { $params = (new UserBillValidate())->post()->goCheck('edit'); $result = UserBillLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(UserBillLogic::getError()); } /** * @notes 删除资金记录 * @return \think\response\Json * @author admin * @date 2024/05/31 16:44 */ public function delete() { $params = (new UserBillValidate())->post()->goCheck('delete'); UserBillLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取资金记录详情 * @return \think\response\Json * @author admin * @date 2024/05/31 16:44 */ public function detail() { $params = (new UserBillValidate())->goCheck('detail'); $result = UserBillLogic::detail($params); return $this->data($result); } }