|
@@ -61,7 +61,14 @@ public class ServiceAuthResultController {
|
|
|
@ApiImplicitParam(name = "ServiceAuthVo", value = "服务授权vo")
|
|
|
@PutMapping(value = "auth/{id}")
|
|
|
public Result updateService(@RequestBody ServiceAuthVo vo) {
|
|
|
- return Result.success();
|
|
|
+ ServiceAuthResultDTO dto = new ServiceAuthResultDTO();
|
|
|
+ BeanUtils.copyProperties(vo, dto);
|
|
|
+ ResponseDTO responseDTO = serviceAuthResultFacade.updateServiceAuthResult(dto);
|
|
|
+ if (ResponseDTO.SUCCESS_CODE.equals(responseDTO.getStatusCode())) {
|
|
|
+ return Result.success(responseDTO.getMessage());
|
|
|
+ }
|
|
|
+ return Result.fail(responseDTO.getMessage());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "服务授权保存")
|