SuccessCallback.java 643 B

12345678910111213141516171819202122232425
  1. package com.fdkankan.mvp.util.forest;
  2. import com.dtflys.forest.callback.OnSuccess;
  3. import com.dtflys.forest.http.ForestRequest;
  4. import com.dtflys.forest.http.ForestResponse;
  5. import com.fdkankan.mvp.bean.ResultData;
  6. import lombok.extern.slf4j.Slf4j;
  7. /**
  8. * <p>
  9. * TODO
  10. * </p>
  11. *
  12. * @author dengsixing
  13. * @since 2022/4/25
  14. **/
  15. @Slf4j
  16. public class SuccessCallback implements OnSuccess<ResultData> {
  17. @Override
  18. public void onSuccess(ResultData result, ForestRequest forestRequest,
  19. ForestResponse forestResponse) {
  20. log.info("请求成功,url:{},result:{}", forestRequest.getUrl(), forestResponse.getContent());
  21. }
  22. }