优化
This commit is contained in:
@ -11,9 +11,9 @@ import java.util.List;
|
||||
public enum AuditStatus
|
||||
{
|
||||
UNREAD("0","未读"),
|
||||
AUDIT("1", "审核中"),
|
||||
PASS("2", "已审核"),
|
||||
REFUSE("3", "未通过"),
|
||||
AUDIT("1", "待审核"),
|
||||
PASS("2", "已同意"),
|
||||
REFUSE("3", "已拒绝"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
@ -36,7 +36,14 @@ public enum AuditStatus
|
||||
}
|
||||
|
||||
|
||||
// 获取审核状态列表
|
||||
public static List<String> getAudit(){
|
||||
// 将PASS和REFUSE的code值转换为List<String>类型
|
||||
return Arrays.asList(PASS.getCode(),REFUSE.getCode());
|
||||
}
|
||||
// 获取待审核的列表
|
||||
public static List<String> getToAudit(){
|
||||
// 将UNREAD和AUDIT的code值转换为List<String>类型
|
||||
return Arrays.asList(UNREAD.getCode(),AUDIT.getCode());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user