modify AttachOrigin enum

pull/137/head
ruibaby 2019-03-13 09:11:25 +08:00
parent 337c474a5c
commit e81b0b2088
1 changed files with 20 additions and 2 deletions

View File

@ -7,10 +7,28 @@ package cc.ryanc.halo.model.entity.enums;
* @date : 2019-03-12
*/
public enum AttachOrigin implements ValueEnum<Integer> {
;
/**
*
*/
SERVER(0),
/**
*
*/
UPYUN(1),
/**
*
*/
QINIUYUN(2);
private Integer value;
AttachOrigin(Integer value) {
this.value = value;
}
/**
* Get enum value.
*
@ -18,6 +36,6 @@ public enum AttachOrigin implements ValueEnum<Integer> {
*/
@Override
public Integer getValue() {
return null;
return value;
}
}