系统参数设置接口修改;

This commit is contained in:
yu 2025-01-15 15:00:18 +08:00
parent 827e3e954b
commit a5918d6363
3 changed files with 17 additions and 0 deletions

View File

@ -54,4 +54,14 @@ public class HomeParamSetController {
SysHomeParamSetVo sysHomeParamSetVo = homeParamSetService.update(sysHomeParamSetDto);
return R.success(sysHomeParamSetVo);
}
/** 删除系统参数设置 */
@PostMapping("/delete")
public R<Void> delete(@RequestBody SysHomeParamSetDto sysHomeParamSetDto) {
if (sysHomeParamSetDto.getId() == null) {
throw new ServiceException("id不能为空");
}
homeParamSetService.delete(sysHomeParamSetDto);
return R.success();
}
}

View File

@ -12,4 +12,6 @@ public interface HomeParamSetService {
List<SysHomeParamSetVo> getList(SysHomeParamSetDto sysHomeParamSetDto);
SysHomeParamSetVo update(SysHomeParamSetDto sysHomeParamSetDto);
void delete(SysHomeParamSetDto sysHomeParamSetDto);
}

View File

@ -66,4 +66,9 @@ public class HomeParamSetServiceImpl implements HomeParamSetService {
SysHomeParamSetVo result = BeanCopyUtils.copy(sysHomeParamSet, sysHomeParamSetVo);
return result;
}
@Override
public void delete(SysHomeParamSetDto sysHomeParamSetDto) {
sysHomeParamSetMapper.deleteById(sysHomeParamSetDto.getId());
}
}