提供给lianlian获取token

This commit is contained in:
2023-05-26 19:25:35 +08:00
parent 9a238d6ae2
commit caae13281d
7 changed files with 1437 additions and 1256 deletions

View File

@@ -0,0 +1,24 @@
package com.jsowell.thirdparty.lianlian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QueryTokenDTO {
@JsonProperty(value = "OperatorID")
private String operatorID;
@JsonProperty(value = "Data")
private String data;
@JsonProperty(value = "TimeStamp")
private String timeStamp;
@JsonProperty(value = "Seq")
private String seq;
@JsonProperty(value = "Sig")
private String sig;
}

View File

@@ -2,9 +2,12 @@ package com.jsowell.thirdparty.lianlian.service;
import com.jsowell.pile.dto.*;
import com.jsowell.thirdparty.lianlian.domain.StationStatsInfo;
import com.jsowell.thirdparty.lianlian.dto.QueryTokenDTO;
import com.jsowell.thirdparty.lianlian.vo.*;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;
public interface LianLianService {
@@ -150,4 +153,6 @@ public interface LianLianService {
* @return
*/
String pushPileChargeStatusChange(String orderCode);
Map<String, String> generateToken(QueryTokenDTO dto) throws UnsupportedEncodingException;
}

View File

@@ -0,0 +1,44 @@
package com.jsowell.thirdparty.lianlian.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class AccessTokenVO {
/**
* 字符串 对接平台组织机构代码
*/
@JsonProperty(value = "OperatorID")
private String operatorID;
/**
* 整型
* 0:成功;
* 1:失败
*/
@JsonProperty(value = "SuccStat")
private String succStat;
/**
* 字符串 全局唯一凭证
*/
@JsonProperty(value = "AccessToken")
private String accessToken;
/**
* 整型 凭证有效期,单位秒
*/
@JsonProperty(value = "TokenAvailableTime")
private String tokenAvailableTime;
/**
* 整型
* 0:无;
* 1:无此对接平台;
* 2:密钥错误; 399:自定义
*/
@JsonProperty(value = "FailReason")
private String failReason;
}