1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
| package com.yeshi.fanli.entity.system;
|
| import org.springframework.data.mongodb.core.mapping.Document;
| import org.springframework.data.mongodb.core.mapping.Field;
|
| /**
| * 设置分类
| *
| * @author Administrator
| *
| */
| @Document(collection = "config_category")
| public class ConfigCategory {
|
| public enum ConfigCategoryEnum {
| versionDiff("标签栏引导提示"),
| msgNotify("大图通知"),
| tbGoods("淘宝商品"),
| jdGoods("京东商品"),
| pddGoods("拼多多商品"),
| goldCoin("金币设置"),
| freeCoupon("免单券设置"),
| rebateCoupon("返利奖励券设置"),
| pageText("页面文本设置"),
| protocol("协议相关"),
| rule("规则相关"),
| helpStrategy("帮助攻略相关"),
| orderCart("订单购物车相关"),
| maskControl("遮罩控制"),
| extract("提现相关");
|
| private final String desc;
|
| private ConfigCategoryEnum(String desc) {
| this.desc = desc;
| }
|
| public String getDesc() {
| return desc;
| }
| }
|
| @Field("_id")
| private String id;
| // 类型
| @Field("type")
| private ConfigCategoryEnum type;
| // 关键词枚举
| @Field("KeyEnum")
| private ConfigKeyEnum KeyEnum;
| // 类型
| @Field("order")
| private int order;
|
| public String getId() {
| return id;
| }
|
| public void setId(String id) {
| this.id = id;
| }
|
| public ConfigCategoryEnum getType() {
| return type;
| }
|
| public void setType(ConfigCategoryEnum type) {
| this.type = type;
| }
|
| public ConfigKeyEnum getKeyEnum() {
| return KeyEnum;
| }
|
| public void setKeyEnum(ConfigKeyEnum keyEnum) {
| KeyEnum = keyEnum;
| }
|
| public int getOrder() {
| return order;
| }
|
| public void setOrder(int order) {
| this.order = order;
| }
|
| }
|
|