Commit f7ee118d authored by shiyu's avatar shiyu

消息格式变化

parent 52647ad2
......@@ -70,7 +70,7 @@ public class MessageEnum {
}
public enum contentIdTypeEnum {
public enum ContentIdTypeEnum {
ITEM(0, "商品"),
COLLECTION_BOOK(1, "收藏册"),
HOMEPAGE(2, "主页"),
......@@ -79,13 +79,13 @@ public class MessageEnum {
private int code;
private String des;
contentIdTypeEnum(int code, String des) {
ContentIdTypeEnum(int code, String des) {
this.code = code;
this.des = des;
}
public static String getNameByCode(int code) {
for (contentIdTypeEnum contentIdTypeEnum : contentIdTypeEnum.values()) {
for (ContentIdTypeEnum contentIdTypeEnum : ContentIdTypeEnum.values()) {
if (code == contentIdTypeEnum.getCode()) {
return contentIdTypeEnum.getDes();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment