com.dingtalk.baymax.framework.sdk.mercury.constant.ApiVersion Maven / Gradle / Ivy
package com.dingtalk.baymax.framework.sdk.mercury.constant;
/**
* @Author xiaoyan
* @Date 2023-06-21 19:36:32
*/
public enum ApiVersion {
DEFAULT("default"),
MERCURY("mercury"),
;
private final String version;
ApiVersion(String version) {
this.version = version;
}
public String getVersion() {
return version;
}
public static ApiVersion of(String version) {
for (ApiVersion value : values()) {
if (value.version.equals(version)) {
return value;
}
}
return DEFAULT;
}
}