12345678910111213141516171819202122232425262728293031323334 |
- package com.qxgmat.data.constants.enums;
- public enum ServiceKey {
- VIP("vip", "VIP", 0, 0), // 收藏和错题处的组卷、导出;笔记导出功能;部分解析只有VIP可以看;下载模考报告; 解锁完整版模考报告;“提问开放”期间有提问权限
- TEXTBOOK("textbook", "千行机经", 180, 30),
- QX_CAT("qx_cat", "千行-CAT模考(6套)", 180, 180), // 可以考2次
- ;
- public String key;
- // 天数
- public Integer expireDay;
- // 天数
- public Integer useExpireDay;
- public String title;
- private ServiceKey(String key, String title, Integer expireDay, Integer useExpireDay){
- this.key = key;
- this.expireDay = expireDay;
- this.useExpireDay = useExpireDay;
- this.title = title;
- }
- public static ServiceKey ValueOf(String name){
- if (name == null || name.isEmpty()) return null;
- try{
- return ServiceKey.valueOf(name.toUpperCase());
- }catch (Exception e){
- return null;
- }
- }
- }
|