This commit is contained in:
2024-01-20 11:39:42 +08:00
parent 78e6696039
commit 0e778e77c2
2 changed files with 83 additions and 21 deletions

View File

@@ -0,0 +1,47 @@
package com.jsowell.thirdparty.platform;
import com.jsowell.pile.dto.QueryStationInfoDTO;
import com.jsowell.pile.service.PileBillingTemplateService;
import com.jsowell.pile.service.PileStationInfoService;
import com.jsowell.pile.service.ThirdPartyPlatformConfigService;
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Map;
/**
* 对接第三方平台抽象类
*/
public abstract class AbsInterfaceWithPlatformService {
@Autowired
protected PileStationInfoService pileStationInfoService;
@Autowired
protected ThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
@Autowired
protected PileBillingTemplateService pileBillingTemplateService;
@Autowired
protected ZDLService zdlService;
/**
* 6.2 查询充电站信息
*/
public abstract Map<String, String> queryStationsInfo(QueryStationInfoDTO dto);
/**
* 6.3 设备状态变化推送
*/
public abstract String notificationStationStatus(String pileConnectorCode, String status);
/**
* 6.4 充电订单推送
*/
public abstract String pushChargeOrderInfo(String orderCode);
/**
* 6.5 设备接口状态查询
*/
public abstract Map<String, String> queryStationStatus(QueryStationInfoDTO dto);
}