| | |
| | | package com.yeshi.fanli.entity; |
| | | |
| | | import java.util.HashSet; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * 系统枚举 |
| | | */ |
| | | public enum SystemEnum { |
| | | blks("com.yeshi.ec.rebate", "com.xyj.ec.fanli-ios", new String[]{}, new SystemFunction[]{SystemFunction.share, |
| | | SystemFunction.bindPhone, SystemFunction.threeSale, SystemFunction.cloudOrder, SystemFunction.godenCorn, SystemFunction.redPack, SystemFunction.faQuan, SystemFunction.fanli, SystemFunction.vip, SystemFunction.inviteCode |
| | | }, 1, "板栗快省", "板栗快省", false), |
| | | flq("com.fanliunion.android", "com.xyj.ec.flq-ios", new String[]{}, new SystemFunction[]{SystemFunction.share, SystemFunction.faQuan, SystemFunction.fanli}, 11, "返利联盟", "淘拼团", false), |
| | | yhqjx("com.youhuiquan.android", "com.youhuiquanjx.ios", new String[]{}, new SystemFunction[]{SystemFunction.fanli, SystemFunction.bindPhone}, 12, "特价", "特价App", true), |
| | | hsb("com.hsb.shop", "com.hsb.shop.ios", new String[]{}, new SystemFunction[]{SystemFunction.fanli, SystemFunction.lijinSub, SystemFunction.bindPhone}, 12, "好省呗", "好省呗App", true), |
| | | |
| | | blks("com.yeshi.ec.rebate", "com.xyj.ec.fanli-ios", new String[]{}, 1, "板栗快省"), |
| | | flq("com.yeshi.ec.flq", "com.xyj.ec.flq-ios", new String[]{}, 2, "返利券"); |
| | | ; |
| | | private String packageName; |
| | | private String bundleId; |
| | | private int systemId; |
| | | private String name; |
| | | private String[] wxxcxAppIds; |
| | | private Set<SystemFunction> functionSet; |
| | | private String smsAlias; |
| | | //新版推送 |
| | | private boolean newPush; |
| | | |
| | | public String getSmsAlias() { |
| | | return smsAlias; |
| | | } |
| | | |
| | | private SystemEnum(String packageName, String bundleId, String[] wxxcxAppIds, int systemId, String name) { |
| | | private SystemEnum(String packageName, String bundleId, String[] wxxcxAppIds, SystemFunction[] functions, int systemId, String name, String smsAlias, boolean newPush) { |
| | | this.bundleId = bundleId; |
| | | this.name = name; |
| | | this.packageName = packageName; |
| | | this.systemId = systemId; |
| | | this.wxxcxAppIds=wxxcxAppIds; |
| | | this.wxxcxAppIds = wxxcxAppIds; |
| | | this.newPush = newPush; |
| | | Set<SystemFunction> set = new HashSet<>(); |
| | | if (functions != null) |
| | | for (SystemFunction f : functions) |
| | | set.add(f); |
| | | this.functionSet = set; |
| | | this.smsAlias = smsAlias; |
| | | } |
| | | |
| | | public Set<SystemFunction> getFunctionSet() { |
| | | return functionSet; |
| | | } |
| | | |
| | | public String getPackageName() { |
| | | return packageName; |
| | |
| | | public String[] getWxxcxAppIds() { |
| | | return wxxcxAppIds; |
| | | } |
| | | |
| | | public boolean isNewPush() { |
| | | return newPush; |
| | | } |
| | | } |