package com.newyetai.sdk.common.dto; import java.io.Serializable; import org.springframework.core.ParameterizedTypeReference; import com.fasterxml.jackson.annotation.JsonIgnore; /** * 请求对象 * @author sr on 2021-03-18 */ public interface ISdkRequest extends Serializable{ /** * 方法名 * @return * @author sr on 2021-12-27 */ @JsonIgnore default String getMethodName() { return this.getClass().getSimpleName(); } /** * 调用uri * @return * @author sr on 2021-12-27 */ @JsonIgnore default String getUri() { return null; } /** * 结果集普通类型 * @return * @author sr on 2021-12-20 */ @JsonIgnore default Class getResponseClass() { return null; } /** * 结果集带范性类型 * @return * @author sr on 2021-12-20 */ @JsonIgnore default ParameterizedTypeReference getResponseType() { return null; } }