|
@@ -40,7 +40,7 @@ public class AdminInsideAddressController {
|
|
|
|
|
|
|
|
@PostMapping("add")
|
|
@PostMapping("add")
|
|
|
@ApiOperation("新增内部地址")
|
|
@ApiOperation("新增内部地址")
|
|
|
- public Result add(@Valid InsideAddressDTO insideAddressDTO) {
|
|
|
|
|
|
|
+ public Result add(@Valid @RequestBody InsideAddressDTO insideAddressDTO) {
|
|
|
insideAddressService.addInsideAddress(insideAddressDTO);
|
|
insideAddressService.addInsideAddress(insideAddressDTO);
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|
|
@@ -48,7 +48,7 @@ public class AdminInsideAddressController {
|
|
|
|
|
|
|
|
@PostMapping("update")
|
|
@PostMapping("update")
|
|
|
@ApiOperation("更新内部地址")
|
|
@ApiOperation("更新内部地址")
|
|
|
- public Result update(@Valid InsideAddressDTO insideAddressDTO) {
|
|
|
|
|
|
|
+ public Result update(@Valid @RequestBody InsideAddressDTO insideAddressDTO) {
|
|
|
if (ObjectUtil.isNull(insideAddressDTO.getId())) {
|
|
if (ObjectUtil.isNull(insideAddressDTO.getId())) {
|
|
|
throw new SqxException("id不能为空");
|
|
throw new SqxException("id不能为空");
|
|
|
}
|
|
}
|