系统参数设置接口修改;
This commit is contained in:
parent
827e3e954b
commit
a5918d6363
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -12,4 +12,6 @@ public interface HomeParamSetService {
|
||||
List<SysHomeParamSetVo> getList(SysHomeParamSetDto sysHomeParamSetDto);
|
||||
|
||||
SysHomeParamSetVo update(SysHomeParamSetDto sysHomeParamSetDto);
|
||||
|
||||
void delete(SysHomeParamSetDto sysHomeParamSetDto);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user