package com.sinata.common.enums;
|
|
/**
|
* APP设置ID
|
*/
|
public enum EnumAppSetKey {
|
|
REGISTER_AGREEMENT_H5(1, "商务合作"),
|
USER_AGREEMENT_H5(2, "关于我们"),
|
TEAM_US_H5(3, "服务协议"),
|
DAILY_TASK_H5(4, "隐私政策"),
|
ABOUT_US_H5(5, "购买须知协议"),
|
SERVICE_TEL_NUMBER(6, "套餐权益说明书"),
|
MEMBER_GRADE_H5(7, "套餐实物消费券"),
|
RICE_GRAINS_H5(8, "用户注销协议"),
|
CONTRIBUTION_SCORE_H5(9, "实物消费券使用说明书"),
|
EXCHANGE_AGREEMENT_H5(10, "有价优惠券须知"),
|
SERVICE_H5(201, "有价优惠券使用说明"),
|
MERCHANT_H5(202, "公司介绍"),
|
HELP_H5(203, "注册协议"),
|
USER_INFO_HANDLE_RULE_H5(204, "个人信息处理规则"),
|
JOIN_COMPANY_AGREEMENT_H5(205, "入司须知协议书"),
|
;
|
|
public final int index;
|
public final String mark;
|
|
EnumAppSetKey (int index, String mark) {
|
this.index = index;
|
this.mark = mark;
|
}
|
|
public int getIndex() {
|
return index;
|
}
|
|
public String getMark() {
|
return mark;
|
}
|
|
/**
|
* 通过index查询说明
|
*/
|
public static String getMarkByIndex(Integer index) {
|
if (index != null) {
|
for (EnumAppSetKey obj : values()) {
|
if (obj.getIndex() == index) {
|
return obj.getMark();
|
}
|
}
|
}
|
return null;
|
}
|
}
|