| | |
| | | |
| | | import com.xiaopeng.api.feignClient.operation.SysLogClient; |
| | | import com.xiaopeng.api.model.operation.SysOperLog; |
| | | import com.xiaopeng.api.model.operation.XpAdminOperationLog; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | |
| | | @Override |
| | | public SysLogClient create(Throwable cause) { |
| | | return new SysLogClient(){ |
| | | |
| | | @Override |
| | | public R saveLog(SysOperLog sysOperLog) { |
| | | log.error("保存系统日志记录失败:{}", cause.getMessage()); |
| | | return R.fail("保存系统日志记录失败"); |
| | | log.error("保存系统操作日志失败:{}", cause.getMessage()); |
| | | return R.fail("保存系统操作日志失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R saveAdminOperationLog(XpAdminOperationLog adminOperationLog) { |
| | | log.error("保存管理后台操作记录失败:{}", cause.getMessage()); |
| | | return R.fail("保存管理后台操作记录失败"); |
| | | } |
| | | }; |
| | | } |