| 12345678910111213141516171819202122232425 |
- package com.fdkankan.mvp.util.forest;
- import com.dtflys.forest.callback.OnSuccess;
- import com.dtflys.forest.http.ForestRequest;
- import com.dtflys.forest.http.ForestResponse;
- import com.fdkankan.mvp.bean.ResultData;
- import lombok.extern.slf4j.Slf4j;
- /**
- * <p>
- * TODO
- * </p>
- *
- * @author dengsixing
- * @since 2022/4/25
- **/
- @Slf4j
- public class SuccessCallback implements OnSuccess<ResultData> {
- @Override
- public void onSuccess(ResultData result, ForestRequest forestRequest,
- ForestResponse forestResponse) {
- log.info("请求成功,url:{},result:{}", forestRequest.getUrl(), forestResponse.getContent());
- }
- }
|