mirror of https://github.com/halo-dev/halo
modify AttachOrigin enum
parent
337c474a5c
commit
e81b0b2088
|
@ -7,10 +7,28 @@ package cc.ryanc.halo.model.entity.enums;
|
||||||
* @date : 2019-03-12
|
* @date : 2019-03-12
|
||||||
*/
|
*/
|
||||||
public enum AttachOrigin implements ValueEnum<Integer> {
|
public enum AttachOrigin implements ValueEnum<Integer> {
|
||||||
;
|
|
||||||
|
/**
|
||||||
|
* 服务器
|
||||||
|
*/
|
||||||
|
SERVER(0),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 又拍云
|
||||||
|
*/
|
||||||
|
UPYUN(1),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 七牛云
|
||||||
|
*/
|
||||||
|
QINIUYUN(2);
|
||||||
|
|
||||||
private Integer value;
|
private Integer value;
|
||||||
|
|
||||||
|
AttachOrigin(Integer value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get enum value.
|
* Get enum value.
|
||||||
*
|
*
|
||||||
|
@ -18,6 +36,6 @@ public enum AttachOrigin implements ValueEnum<Integer> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Integer getValue() {
|
public Integer getValue() {
|
||||||
return null;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue