dataLists(new UserLists()); } /** * @notes 用户详情 * @return \think\response\Json * @author ljj * @date 2022/4/21 2:29 下午 */ public function detail() { $id = $this->request->get('id'); $result = UserLogic::detail($id); return $this->success('',$result); } /** * @notes 修改用户信息 * @return \think\response\Json * @author ljj * @date 2022/5/24 10:18 上午 */ public function editInfo() { $params = (new UserValidate())->post()->goCheck('editInfo'); (new UserLogic)->editInfo($params); return $this->success('操作成功', [], 1, 1); } /** * @notes 调整余额 * @return \think\response\Json * @author ljj * @date 2023/4/12 11:59 上午 */ public function adjustBalance() { $params = (new UserValidate())->post()->goCheck('adjustBalance'); $result = (new UserLogic)->adjustUserWallet($params); if(true !== $result){ return $this->fail($result); } return $this->success('操作成功', [], 1, 1); } }