58 lines
1.9 KiB
Dart
58 lines
1.9 KiB
Dart
import '../../flavors.dart';
|
|
|
|
class XSConstantMacro {
|
|
// 网页的宏定义网址
|
|
static String baseWebURL = F.apiPrefix; //base地址
|
|
static String introduceURL = '$baseWebURL/app/introduce'; //介绍页
|
|
static String userAgreementURL = '$baseWebURL/app/userAgreement'; //用户协议
|
|
static String privacyPolicyURL = '$baseWebURL/app/privacy'; //隐私政策
|
|
static String collectionListURL =
|
|
'$baseWebURL/app/personalInformationCollectionList'; //个人信息收集清单
|
|
static String thirdPartyInfShareListURL =
|
|
'$baseWebURL/app/thirdPartyInformationSharingList'; //第三方信息共享清单
|
|
static String appPermissionDescURL =
|
|
'$baseWebURL/app/applicationPermissionDescription'; //应用权限说明
|
|
|
|
// 钥匙类型 keyType 1-永久 2-限期 3-单次 4-循环
|
|
static int keyTypeLong = 1;
|
|
static int keyTypeTime = 2;
|
|
static int keyTypeOnce = 3;
|
|
static int keyTypeLoop = 4;
|
|
|
|
// "110401" 正常使用
|
|
// "110402" 待接收
|
|
// "110403" 待生效
|
|
// "110405" 已冻结
|
|
// "110412" 已过期
|
|
// "110408" 已删除
|
|
// "110410" 已重置
|
|
static int keyStatusNormalUse = 110401; // 正常使用
|
|
static int keyStatusWaitReceive = 110402; // 待接收
|
|
static int keyStatusWaitIneffective = 110403; // 待生效
|
|
static int keyStatusFrozen = 110405; // 已冻结
|
|
static int keyStatusExpired = 110412; // 已过期
|
|
static int keyStatusDeleted = 110408; // 已删除
|
|
static int keyStatusReset = 110410; // 已重置
|
|
|
|
static String getKeyStatusStr(int keyStatus){
|
|
switch(keyStatus){
|
|
case 110401:
|
|
return "正常使用";
|
|
case 110402:
|
|
return "待接收";
|
|
case 110403:
|
|
return "未生效";
|
|
case 110405:
|
|
return "已冻结";
|
|
case 110408:
|
|
return "已删除";
|
|
// case 110410:
|
|
// return "已重置";
|
|
case 110412:
|
|
return "已过期";
|
|
default:
|
|
return "未知";
|
|
}
|
|
}
|
|
}
|