|
@@ -1,69 +1,49 @@
|
|
|
package com.edufound.base.bean;
|
|
|
|
|
|
-public enum ChannelCodeEnum {
|
|
|
- YIFANG {
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3006";
|
|
|
- }
|
|
|
- },
|
|
|
- BAIDU {
|
|
|
- //百度
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3003";
|
|
|
- }
|
|
|
- },
|
|
|
- TMALL {
|
|
|
- //天猫
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3002";
|
|
|
- }
|
|
|
- },
|
|
|
- MISOUND {
|
|
|
- //小米
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "2016";
|
|
|
- }
|
|
|
- },
|
|
|
|
|
|
- LENOVO_PAD {
|
|
|
- //联想
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3004";
|
|
|
- }
|
|
|
- },
|
|
|
- JINGDONGFANG {
|
|
|
- //京东方
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3007";
|
|
|
- }
|
|
|
- },
|
|
|
- HUAWEI_LIANYUN {
|
|
|
- //华为联运
|
|
|
- public String getChannelCode() {//枚举对象实现抽象方法
|
|
|
- return "3008";
|
|
|
- }
|
|
|
- },
|
|
|
- BUBUGAO {
|
|
|
- //步步高
|
|
|
- public String getChannelCode() {
|
|
|
- return "3009";
|
|
|
- }
|
|
|
- },
|
|
|
+import androidx.annotation.StringDef;
|
|
|
|
|
|
+import java.lang.annotation.Retention;
|
|
|
+import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
|
- XUNFEI {
|
|
|
- //讯飞
|
|
|
- public String getChannelCode() {
|
|
|
- return "3010";
|
|
|
- }
|
|
|
- },
|
|
|
- BAIDU_XUEXIJI {
|
|
|
- //百度学习机
|
|
|
- public String getChannelCode() {
|
|
|
- return "3011";
|
|
|
- }
|
|
|
- };
|
|
|
+@Retention(RetentionPolicy.SOURCE)
|
|
|
+@StringDef(
|
|
|
+ {
|
|
|
+ ChannelCodeEnum.YIFANG,
|
|
|
+ ChannelCodeEnum.BAIDU,
|
|
|
+ ChannelCodeEnum.TMALL,
|
|
|
+ ChannelCodeEnum.MISOUND,
|
|
|
+ ChannelCodeEnum.LENOVO_PAD,
|
|
|
+ ChannelCodeEnum.JINGDONGFANG,
|
|
|
+ ChannelCodeEnum.HUAWEI_LIANYUN,
|
|
|
+ ChannelCodeEnum.BUBUGAO,
|
|
|
+ ChannelCodeEnum.XUNFEI,
|
|
|
+ ChannelCodeEnum.BAIDU_XUEXIJI,
|
|
|
+ ChannelCodeEnum.YYB_PAD,
|
|
|
+ }
|
|
|
+)
|
|
|
+public @interface ChannelCodeEnum {
|
|
|
+ String YIFANG = "3006";
|
|
|
+
|
|
|
+ String BAIDU = "3003";
|
|
|
+
|
|
|
+ String TMALL = "3002";
|
|
|
+
|
|
|
+ String MISOUND = "2016";
|
|
|
+
|
|
|
+ String LENOVO_PAD = "3004";
|
|
|
+
|
|
|
+ String JINGDONGFANG = "3007";
|
|
|
+
|
|
|
+ String HUAWEI_LIANYUN = "3008";
|
|
|
+
|
|
|
+ String BUBUGAO = "3009";
|
|
|
+
|
|
|
+ String XUNFEI = "3010";
|
|
|
+
|
|
|
+ String BAIDU_XUEXIJI = "3011";
|
|
|
+
|
|
|
+ String YYB_PAD = "3012";
|
|
|
|
|
|
|
|
|
- public abstract String getChannelCode();//定义抽象方法
|
|
|
}
|