动态管理使用枚举类
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* 动态栏目枚举类
|
||||
*/
|
||||
public enum ContentSubjectEnum {
|
||||
HY_CULTURE("沪姨文化"),
|
||||
PARTNER_SAYS("加盟商说"),
|
||||
BRAND_NEWS("品牌动态")
|
||||
;
|
||||
|
||||
private String subjectName;
|
||||
|
||||
ContentSubjectEnum(String subjectName) {
|
||||
this.subjectName = subjectName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* 动态类型(图文/视频)
|
||||
*/
|
||||
public enum ContentTypeEnum {
|
||||
VIDEO("视频"),
|
||||
IMAGE("图文")
|
||||
;
|
||||
|
||||
private String type;
|
||||
|
||||
ContentTypeEnum(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user