SknBaseInfoRequestResponse.java
735 Bytes
package com.yoho.search.models.recall;
import com.alibaba.fastjson.JSON;
import com.yoho.search.base.utils.Transfer;
import com.yoho.search.cache.model.AbstractCacheRequestResponse;
public class SknBaseInfoRequestResponse extends AbstractCacheRequestResponse<SknBaseInfoRequest, SknBaseInfoResponse> {
public SknBaseInfoRequestResponse(SknBaseInfoRequest request) {
super(request);
}
@Override
public Transfer<String, SknBaseInfoResponse> getToResponseTransfer() {
return (v) -> JSON.parseObject(v, SknBaseInfoResponse.class);
}
@Override
public Transfer<SknBaseInfoResponse, String> getFromResponseTransfer() {
return (v) -> JSON.toJSONString(v);
}
}