| | |
| | | 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[]{}, 1, "板栗快省"), |
| | | flq("com.yeshi.ec.flq", "com.xyj.ec.flq-ios", new String[]{}, 2, "返利券"); |
| | | blks("com.yeshi.ec.rebate", "com.xyj.ec.fanli-ios", new String[]{}, new SystemFunction[]{ |
| | | SystemFunction.bindPhone, SystemFunction.threeSale, SystemFunction.cloudOrder, SystemFunction.godenCorn, SystemFunction.redPack,SystemFunction.faQuan |
| | | }, 1, "板栗快省"), |
| | | flq("com.fanliunion.android", "com.xyj.ec.flq-ios", new String[]{}, new SystemFunction[]{SystemFunction.faQuan}, 2, "返利联盟"); |
| | | private String packageName; |
| | | private String bundleId; |
| | | private int systemId; |
| | | private String name; |
| | | private String[] wxxcxAppIds; |
| | | private Set<SystemFunction> functionSet; |
| | | |
| | | |
| | | 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) { |
| | | this.bundleId = bundleId; |
| | | this.name = name; |
| | | this.packageName = packageName; |
| | | this.systemId = systemId; |
| | | this.wxxcxAppIds=wxxcxAppIds; |
| | | this.wxxcxAppIds = wxxcxAppIds; |
| | | Set<SystemFunction> set = new HashSet<>(); |
| | | if (functions != null) |
| | | for (SystemFunction f : functions) |
| | | set.add(f); |
| | | this.functionSet = set; |
| | | } |
| | | |
| | | public Set<SystemFunction> getFunctionSet() { |
| | | return functionSet; |
| | | } |
| | | |
| | | public String getPackageName() { |
| | | return packageName; |