mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 联联平台接口
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.jsowell.common.enums;
|
||||
|
||||
/**
|
||||
* 联联平台桩状态
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2023/5/16 9:39
|
||||
*/
|
||||
public enum LianLianPileStatusEnum {
|
||||
UNKNOWN("0", "未知"),
|
||||
CONSTRUCTION("1", "建设中"),
|
||||
CLOSE_OFFLINE("5", "关闭下线"),
|
||||
UNDER_MAINTENANCE("6", "维护中"),
|
||||
NORMAL("50", "正常"),
|
||||
;
|
||||
|
||||
private String code;
|
||||
private String value;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
LianLianPileStatusEnum(String code, String value) {
|
||||
this.code = code;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.jsowell.common.enums;
|
||||
|
||||
import com.jsowell.common.enums.ykc.PileConnectorDataBaseStatusEnum;
|
||||
|
||||
/**
|
||||
* 站点 支付方式
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2023/5/16 9:17
|
||||
*/
|
||||
public enum StationPaymentEnum {
|
||||
CARD_PAYMENT("0", "刷卡"),
|
||||
ONLINE_PAYMENT("1", "线上"),
|
||||
CASH_PAYMENT("2", "现金"),
|
||||
;
|
||||
|
||||
private String code;
|
||||
private String value;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
StationPaymentEnum(String code, String value) {
|
||||
this.code = code;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
StationPaymentEnum() {
|
||||
}
|
||||
|
||||
public static String getPaymentByCode(String code) {
|
||||
for (StationPaymentEnum paymentEnum : StationPaymentEnum.values()) {
|
||||
if (paymentEnum.getValue().equals(code)) {
|
||||
return paymentEnum.getValue();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user