mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update 新增中电联相关实体
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.jsowell.thirdparty.zhongdianlian.service;
|
||||
|
||||
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
||||
|
||||
/**
|
||||
* 中电联 Service
|
||||
*
|
||||
@@ -8,4 +10,5 @@ package com.jsowell.thirdparty.zhongdianlian.service;
|
||||
*/
|
||||
public interface ZDLService {
|
||||
|
||||
public String ZDLGetToken(ZDLGetTokenDTO dto);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.jsowell.thirdparty.zhongdianlian.service.impl;
|
||||
|
||||
import com.jsowell.thirdparty.lianlian.service.LianLianService;
|
||||
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
||||
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -12,4 +15,22 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ZDLServiceImpl implements ZDLService {
|
||||
|
||||
@Autowired
|
||||
private LianLianService lianLianService;
|
||||
|
||||
/**
|
||||
* 获取令牌
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String ZDLGetToken(ZDLGetTokenDTO dto) {
|
||||
if (dto == null) {
|
||||
return null;
|
||||
}
|
||||
return lianLianService.getToken(dto.getUrlAddress(), dto.getOperatorId(),
|
||||
dto.getOperatorSecret(), dto.getDataSecretIv(), dto.getSignSecret(), dto.getDataSecret());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user