/**
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
*
|
* https://www.renren.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package com.zt.modules.oss.enums;
|
|
import com.zt.common.annotation.Dictionary;
|
import com.zt.common.constant.IDictionary;
|
|
/**
|
* 文件状态
|
*
|
* @author hehz
|
* @since 1.0.0
|
*/
|
@Dictionary(type = "oss_status", name = "文件状态")
|
public enum OssStatus implements IDictionary {
|
|
TEMPORARY(1, "临时"), PERMANENT(2, "永久");
|
|
private Integer value;
|
private String name;
|
|
OssStatus(int value, String name) {
|
this.value = value;
|
this.name = name;
|
}
|
|
@Override
|
public Integer getValue() {
|
return value;
|
}
|
|
@Override
|
public String getName() {
|
return name;
|
}
|
}
|