mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
新增 微信第三方平台 获取审核状态接口
This commit is contained in:
@@ -64,6 +64,8 @@ public class Constants {
|
||||
|
||||
public static final int one = 1;
|
||||
|
||||
public static final int four = 4;
|
||||
|
||||
public static final byte zeroByte = 0x00;
|
||||
|
||||
public static final byte[] zeroByteArray = new byte[]{zeroByte};
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.jsowell.common.enums.AgentDev;
|
||||
|
||||
import com.jsowell.common.enums.uniapp.BalanceChangesEnum;
|
||||
|
||||
/**
|
||||
* 审核状态enum
|
||||
*
|
||||
* @author Lemon
|
||||
* @Date 2023/8/1 9:43
|
||||
*/
|
||||
public enum AuditStatusEnum {
|
||||
AUDIT_SUCCESS(0, "审核成功"),
|
||||
AUDIT_REFUSE(1, "审核被拒绝"),
|
||||
AUDIT_IN_PROGRESS(2, "审核中"),
|
||||
AUDIT_REVOCATION(3, "已撤回"),
|
||||
AUDIT_DELAYED(4, "审核延后"),
|
||||
|
||||
;
|
||||
|
||||
private int code;
|
||||
private String value;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
AuditStatusEnum(int value, String label) {
|
||||
this.code = value;
|
||||
this.value = label;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取value
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
public static String getValueByCode(int code) {
|
||||
for (AuditStatusEnum item : AuditStatusEnum.values()) {
|
||||
if (item.getCode() == code) {
|
||||
return item.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user