| | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class XkyCommonParam { |
| | | public class XkyCommonParam<T> { |
| | | |
| | | private ApiCommonParam commonParam; |
| | | |
| | | private BodyParam body; |
| | | private T body; |
| | | |
| | | |
| | | public static XkyCommonParam GetInit() { |
| | | public static <T> XkyCommonParam<T> GetInit() { |
| | | |
| | | long currentTimeMillis = System.currentTimeMillis(); |
| | | |
| | |
| | | String sign = SignUtils.buildCurrentSign(JSON.toJSONString(apiParam), appSecret); |
| | | apiParam.setSign(sign); |
| | | |
| | | XkyCommonParam commonParam = new XkyCommonParam(); |
| | | XkyCommonParam<T> commonParam = new XkyCommonParam<>(); |
| | | commonParam.setCommonParam(apiParam); |
| | | |
| | | return commonParam; |