1.审计日志处理
This commit is contained in:
@@ -131,4 +131,7 @@ public interface UserFeignClient {
|
||||
@GetMapping("/getColleaguesIdByUserId")
|
||||
HttpResult<List<String>> getColleaguesIdByUserId(@RequestParam("id") String id);
|
||||
|
||||
|
||||
@GetMapping("/userRoleList")
|
||||
HttpResult<Boolean> userRoleList();
|
||||
}
|
||||
|
||||
@@ -123,6 +123,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> userRoleList() {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取所有用户角色",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.user.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/8/29
|
||||
*/
|
||||
@Data
|
||||
public class UserRoleLogsDTO {
|
||||
private String loginName;
|
||||
|
||||
private Integer roleType;
|
||||
}
|
||||
Reference in New Issue
Block a user