Quellcode durchsuchen

1、文本管理调整

master
huminghao vor 1 Monat
Ursprung
Commit
83cac43435

+ 50
- 0
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ats/ali/AliServiceCmd.java Datei anzeigen

@@ -0,0 +1,50 @@
package cn.com.taiji.core.model.comm.protocol.ats.ali;

import cn.com.taiji.core.model.comm.protocol.AbstractSignTypeRequest;
import cn.com.taiji.core.model.comm.protocol.SignServiceCommand;
import cn.com.taiji.core.model.comm.protocol.SignServiceType;
import cn.com.taiji.core.model.comm.protocol.ats.AtsServiceType;

public enum AliServiceCmd implements SignServiceCommand {
ORDERAPPLY("支付宝支付订单申请","OrderApply", AtsAliOrderApplyRequest.class),
;


private final String value;
private final String transCode;
private final Class<? extends AbstractSignTypeRequest<?>> reqClass;

AliServiceCmd(String value, String transCode, Class<? extends AbstractSignTypeRequest<?>> reqClass) {
this.value = value;
this.transCode = transCode;
this.reqClass = reqClass;
}

@Override
public SignServiceType getServiceType() {
return AtsServiceType.ALI;
}

public static AliServiceCmd fromIfCode(String ifCode) {
return SignServiceCommand.fromName(AliServiceCmd.class, SignServiceCommand.getCmdStr(ifCode));
}

@Override
public boolean isMyCommand(String ifCode) {
return this == fromIfCode(ifCode);
}

@Override
public String getValue() {
return value;
}
public String getTransCode() {
return transCode;
}

@Override
public Class<? extends AbstractSignTypeRequest<?>> getProtocolClass() {
return reqClass;
}

}

Laden…
Abbrechen
Speichern