dataLists(new TenantRegisterLists()); } /** * @notes 添加 * @return \think\response\Json * @author likeadmin * @date 2025/02/25 09:29 */ public function add() { $params = (new TenantRegisterValidate())->post()->goCheck('add'); $result = TenantRegisterLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(TenantRegisterLogic::getError()); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2025/02/25 09:29 */ public function edit() { $params = (new TenantRegisterValidate())->post()->goCheck('edit'); $result = TenantRegisterLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(TenantRegisterLogic::getError()); } /** * @notes 删除 * @return \think\response\Json * @author likeadmin * @date 2025/02/25 09:29 */ public function delete() { $params = (new TenantRegisterValidate())->post()->goCheck('delete'); TenantRegisterLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取详情 * @return \think\response\Json * @author likeadmin * @date 2025/02/25 09:29 */ public function detail() { $params = (new TenantRegisterValidate())->goCheck('detail'); $result = TenantRegisterLogic::detail($params); return $this->data($result); } }