mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-14 06:50:09 +08:00
update 新增中电联相关实体
This commit is contained in:
@@ -15,6 +15,7 @@ import com.jsowell.pile.domain.MemberBasicInfo;
|
|||||||
import com.jsowell.pile.dto.*;
|
import com.jsowell.pile.dto.*;
|
||||||
import com.jsowell.pile.service.IMemberBasicInfoService;
|
import com.jsowell.pile.service.IMemberBasicInfoService;
|
||||||
import com.jsowell.pile.vo.uniapp.PayModeVO;
|
import com.jsowell.pile.vo.uniapp.PayModeVO;
|
||||||
|
import com.jsowell.service.MemberService;
|
||||||
import com.jsowell.service.OrderService;
|
import com.jsowell.service.OrderService;
|
||||||
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
|
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -44,6 +45,10 @@ public class PayController extends BaseController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMemberBasicInfoService memberBasicInfoService;
|
private IMemberBasicInfoService memberBasicInfoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MemberService memberService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充值余额支付/微信余额充值
|
* 充值余额支付/微信余额充值
|
||||||
* 提供给小程序使用
|
* 提供给小程序使用
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.jsowell.thirdparty.zhongdianlian.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备基本信息
|
||||||
|
*
|
||||||
|
* @author Lemon
|
||||||
|
* @Date 2023/9/5 15:16
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ZDLEquipmentInfo {
|
||||||
|
private String equipmentId;
|
||||||
|
|
||||||
|
private String EquipmentType;
|
||||||
|
}
|
||||||
31
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/domain/ZDLStationInfo.java
vendored
Normal file
31
jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/domain/ZDLStationInfo.java
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
package com.jsowell.thirdparty.zhongdianlian.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点基本信息
|
||||||
|
*
|
||||||
|
* @author Lemon
|
||||||
|
* @Date 2023/9/5 14:10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ZDLStationInfo {
|
||||||
|
private String stationId;
|
||||||
|
private String operatorId;
|
||||||
|
private String equipmentOwnerId;
|
||||||
|
private String stationName;
|
||||||
|
private String countryCode;
|
||||||
|
private String areaCode;
|
||||||
|
private String address;
|
||||||
|
private String serviceTel;
|
||||||
|
private Integer stationType;
|
||||||
|
private Integer stationStatus;
|
||||||
|
private Integer parkNums;
|
||||||
|
private BigDecimal stationLng;
|
||||||
|
private BigDecimal stationLat;
|
||||||
|
private Integer construction;
|
||||||
|
private List<ZDLEquipmentInfo> equipmentInfos;
|
||||||
|
}
|
||||||
@@ -1,7 +1,42 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.dto;/**
|
package com.jsowell.thirdparty.zhongdianlian.dto;
|
||||||
* TODO
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中电联获取token DTO
|
||||||
*
|
*
|
||||||
|
* @author Lemon
|
||||||
* @Date 2023/9/5 8:42
|
* @Date 2023/9/5 8:42
|
||||||
* @author Lemon
|
*/
|
||||||
*/public class ZDLGetTokenDTO {
|
@Data
|
||||||
|
public class ZDLGetTokenDTO {
|
||||||
|
/**
|
||||||
|
* 对接平台url地址 (不加api名称)
|
||||||
|
*/
|
||||||
|
private String urlAddress;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运营商ID
|
||||||
|
*/
|
||||||
|
private String operatorId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运营商密钥
|
||||||
|
*/
|
||||||
|
private String operatorSecret;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 消息Data密钥初始化向量
|
||||||
|
*/
|
||||||
|
private String dataSecretIv;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签名密钥
|
||||||
|
*/
|
||||||
|
private String signSecret;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 消息Data密钥
|
||||||
|
*/
|
||||||
|
private String dataSecret;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.service;
|
package com.jsowell.thirdparty.zhongdianlian.service;
|
||||||
|
|
||||||
|
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 中电联 Service
|
* 中电联 Service
|
||||||
*
|
*
|
||||||
@@ -8,4 +10,5 @@ package com.jsowell.thirdparty.zhongdianlian.service;
|
|||||||
*/
|
*/
|
||||||
public interface ZDLService {
|
public interface ZDLService {
|
||||||
|
|
||||||
|
public String ZDLGetToken(ZDLGetTokenDTO dto);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.service.impl;
|
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 com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -12,4 +15,22 @@ import org.springframework.stereotype.Service;
|
|||||||
@Service
|
@Service
|
||||||
public class ZDLServiceImpl implements ZDLService {
|
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