using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Pcb.Common.Attributes; using Pcb.Common.Enum; namespace Pcb.Common.Config { /// /// 缓存KEY配置类 /// public class CacheKeyConfig { /// /// 字典类型缓存KEY /// [NoteAttribute("字典类型缓存KEY")] public const string CACHE_KEY_PARAMETER_TYPE = "CACHE_KEY_PARAMETER_TYPE"; /// /// 字典缓存KEY /// [NoteAttribute("字典缓存KEY")] public const string CACHE_KEY_PARAMETER = "CACHE_KEY_PARAMETER"; /// /// 地区参数 /// [NoteAttribute("地区参数")] public const string CACHE_KEY_BASEAREA = "CACHE_KEY_BASEAREA"; /// /// 部门 /// [NoteAttribute("部门")] public const string CACHE_KEY_DEPARTMENT = "CACHE_KEY_DEPARTMENT"; /// /// 档案部门 /// [NoteAttribute("档案部门")] public const string CACHE_KEY_POSITIONDEPARTMENT = "CACHE_KEY_POSITIONDEPARTMENT"; /// /// 档案部门 /// [NoteAttribute("捷配学院首页列表缓存")] public const string CACHE_KEY_VIDEOINDEXLIST = "CACHE_KEY_VIDEOINDEXLIST"; /// /// 用户 /// [NoteAttribute("用户")] public const string CACHE_KEY_USER = "CACHE_KEY_USER"; /// /// 工厂 /// [NoteAttribute("工厂")] public const string CACHE_KEY_Factory = "CACHE_KEY_Factory"; /// /// 版本号 /// [NoteAttribute("版本号")] public const string CACHE_KEY_VERSION = "CACHE_KEY_VERSION"; /// /// 网站缓存: 帐号最大发送数量,常量值是KEY的前缀,具体用法: "CACHE_KEY_ACCOUNT_MAX_SEND_NUM_18258891111" /// [NoteAttribute("网站缓存: 帐号最大发送数量,常量值是KEY的前缀,具体用法: \"CACHE_KEY_ACCOUNT_MAX_SEND_NUM_18258891111\"")] public const string CACHE_KEY_ACCOUNT_MAX_SEND_MESSAGE_NUM_ = "CACHE_KEY_ACCOUNT_MAX_SEND_MESSAGE_NUM_"; /// /// 网站缓存: 短信发送每分钟限制 /// [NoteAttribute("网站缓存: 短信发送每分钟限制")] public const string CACHE_KEY_MOBILE_MESSAGE_SEND_MINITE_LIMIT_ = "CACHE_KEY_MOBILE_MESSAGE_SEND_MINITE_LIMIT_"; /// /// 网站缓存: 短信验证码存放缓存 /// [NoteAttribute("网站缓存: 短信验证码存放缓存")] public const string CACHE_KEY_MOBILE_MESSAGE_CODE_ = "CACHE_KEY_MOBILE_MESSAGE_CODE_"; [NoteAttribute("公司参数")] public const string CACHE_KEY_COMPANY = "CACHE_KEY_COMPANY"; [NoteAttribute("公司简短参数")] public const string CACHE_KEY_COMPANY_BRIEF = "CACHE_KEY_COMPANY_BRIEF"; [NoteAttribute("会员参数")] public const string CACHE_KEY_MEMBER = "CACHE_KEY_MEMBER"; [NoteAttribute("会员简短参数")] public const string CACHE_KEY_MEMBER_BRIEF = "CACHE_KEY_MEMBER_BRIEF"; [NoteAttribute("订单屏幕统计数据")] public const string CACHE_KEY_ORDERSCREEN_BRIEF = "CACHE_KEY_ORDERSCREEN_BRIEF"; [NoteAttribute("截止时间列表数据")] public const string CACHE_KEY_DEADLINETIME = "CACHE_KEY_DEADLINETIME"; [NoteAttribute("交期调整公告顶部第一条")] public const string DELIVERY_NOTICE_TOP_FIRST = "DELIVERY_NOTICE_TOP_FIRST"; [NoteAttribute("站点列表")] public const string CACHE_KEY_SITECITYLIST = "CACHE_KEY_SITECITYLIST"; [NoteAttribute("校园最新订单")] public const string CACHE_KEY_COLLEGENEWORDER = "CACHE_KEY_COLLEGENEWORDER"; [NoteAttribute("会员申请发票不限额申请时间段")] public const string MEMBER_INVOICE_APPLY_TIME_SLOT = "MEMBER_INVOICE_APPLY_TIME_SLOT"; [NoteAttribute("大学基础库列表")] public const string CACHE_KEY_COLLEGELIST = "CACHE_KEY_COLLEGELIST"; /// /// 行情相关阅读 /// [NoteAttribute("资讯行情相关阅读")] public const string CACHE_KEY_News_RelateRead_JSONDATA = "CACHE_KEY_News_RelateRead_JSONDATA"; //----------------------------后台相关缓存----------------------------------------- [NoteAttribute("后台首页KPI统计")] public const string CACHE_KEY_ADMIN_KPI = "CACHE_KEY_ADMIN_KPI"; [NoteAttribute("后台首页本月延期统计")] public const string CACHE_KEY_ADMIN_CURMONDELAY = "CACHE_KEY_ADMIN_CURMONDELAY"; [NoteAttribute("后台首上月延期统计")] public const string CACHE_KEY_ADMIN_LSTMONDELAY = "CACHE_KEY_ADMIN_LSTMONDELAY"; [NoteAttribute("业务员目标金额今日业绩")] [CacheKeyNote("业务员目标金额今日业绩")] public const string CACHE_KEY_STAFFAIMTODAYDATA = "CACHE_KEY_STAFFAIMTODAYDATA"; [NoteAttribute("业务员目标统计")] [CacheKeyNote("业务员目标统计")] public const string CACHE_KEY_STAFFAIMDATA = "CACHE_KEY_STAFFAIMDATA"; [NoteAttribute("跟单员月份目标")] [CacheKeyNote("跟单员月份目标")] public const string CACHE_KEY_FOLLOWAIMTODAYDATA = "CACHE_KEY_FOLLOWAIMTODAYDATA"; [NoteAttribute("审单情况统计")] [CacheKeyNote("审单情况统计")] public const string CACHE_KEY_CHECKADMINDATA = "CACHE_KEY_CHECKADMINDATA"; [NoteAttribute("审单今年情况统计")] [CacheKeyNote("审单今年情况统计")] public const string CACHE_KEY_CHECKADMINYEARDATA = "CACHE_KEY_CHECKADMINYEARDATA"; [NoteAttribute("审单本季度情况统计")] [CacheKeyNote("审单本季度情况统计")] public const string CACHE_KEY_CHECKADMINQUARTERDATA = "CACHE_KEY_CHECKADMINQUARTERDATA"; [NoteAttribute("业务员数据魔方今日统计")] [CacheKeyNote("业务员数据魔方今日统计")] public const string CACHE_KEY_SALESMANDATA = "CACHE_KEY_SALESMANDATA"; [NoteAttribute("跟单客服数据魔方今日统计")] [CacheKeyNote("跟单客服数据魔方今日统计")] public const string CACHE_KEY_FOLLOWADMINDATA = "CACHE_KEY_FOLLOWADMINDATA"; [NoteAttribute("审单客服数据魔方最近30统天数据")] [CacheKeyNote("审单客服数据魔方最近30统天数据")] public const string CACHE_KEY_FCHECKADMINNEAR30DDATA = "CACHE_KEY_FCHECKADMINNEAR30DDATA"; [NoteAttribute("审单客服数据魔方本月数据")] [CacheKeyNote("审单客服数据魔方本月数据")] public const string CACHE_KEY_FCHECKADMINMONTHDATA = "CACHE_KEY_FCHECKADMINMONTHDATA"; [NoteAttribute("业务员数据魔方今日综合统计其他数据")] public const string CACHE_KEY_SALESMANOTHERTOTALDATA = "CACHE_KEY_SALESMANOTHERTOTALDATA"; [NoteAttribute("业务员数据魔方昨日客户第一次下单并按时发货订单")] public const string CACHE_KEY_SALESMANONTIMEDELIVERY = "CACHE_KEY_SALESMANONTIMEDELIVERY"; [NoteAttribute("业务员数据魔方客户昨日延期发货订单")] public const string CACHE_KEY_SALESMANLATEDELIVERY = "CACHE_KEY_SALESMANLATEDELIVERY"; [NoteAttribute("业务员数据魔方客户退款订单")] public const string CACHE_KEY_SALESMANREFUNDORDER = "CACHE_KEY_SALESMANREFUNDORDER"; [NoteAttribute("业务员数据魔方审核延迟订单")] public const string CACHE_KEY_SALESMANLATECHECKORDER = "CACHE_KEY_SALESMANLATECHECKORDER"; [NoteAttribute("业务员当周历史数据排名")] public const string CACHE_KEY_SALESMANWEEKHISTORYSUMDATA = "CACHE_KEY_SALESMANWEEKHISTORYSUMDATA"; [NoteAttribute("业务员客户最近30天下单省份分布")] public const string CACHE_KEY_SALESMANNEAR30PROVICE = "CACHE_KEY_SALESMANNEAR30PROVICE"; [NoteAttribute("业务员客户最近30天下单城市分布")] public const string CACHE_KEY_SALESMANNEAR30CITY = "CACHE_KEY_SALESMANNEAR30CITY"; [NoteAttribute("业务员当周排名")] public const string CACHE_KEY_SALESMANWEEKRANk = "CACHE_KEY_SALESMANWEEKRANk"; [NoteAttribute("管理员后台首页文件数、面积、交易额等数据")] public const string CACHED_KEY_ManageDataForWelcome = "CACHED_KEY_ManageDataForWelcome"; [NoteAttribute("管理员后台首页文件数、面积、交易额等数据--按面积统计")] public const string CACHED_KEY_ManageDataForWelcomeArea = "CACHED_KEY_ManageDataForWelcomeArea"; [NoteAttribute("昨日和近七天发货情况")] public const string Cach_Key_FilesDeliverySourceForYesterday = "Cach_Key_FilesDeliverySourceForYesterday"; [NoteAttribute("昨日和近七天外贸发货情况")] public const string Cach_Key_FilesDeliverySourceForYesterdayOut = "Cach_Key_FilesDeliverySourceForYesterdayOut"; [NoteAttribute("业务电视机统计数据")] public const string CACHE_KEY_BUSINESSTVDATA_BRIEF = "CACHE_KEY_BUSINESSTVDATA_BRIEF"; [NoteAttribute("工程电视机统计数据")] public const string CACHE_KEY_GCTVDATA = "CACHE_KEY_GCTVDATA"; [NoteAttribute("生产中管制卡的总面积")] [CacheKeyNote("生产中管制卡的总面积")] public const string CACHE_KEY_PRODUCINGCARDAREADATA = "CACHE_KEY_PRODUCINGCARDAREADATA"; [NoteAttribute("工厂电机及近12个月生产面积")] [CacheKeyNote("工厂电机及近12个月生产面积")] public const string CACHE_KEY_FACTORYNEAR12MONTHPROAREADATA = "CACHE_KEY_FACTORYNEAR12MONTHPROAREADATA"; [NoteAttribute("工程电视机统计数据V2")] public const string CACHE_KEY_GCTVDATAV2 = "CACHE_KEY_GCTVDATAV2"; [NoteAttribute("工程电视机统计数据V3")] public const string CACHE_KEY_GCTVDATAV3 = "CACHE_KEY_GCTVDATAV3"; [NoteAttribute("批量交期电视机1")] public const string CACHE_KEY_PLJQTV = "CACHE_KEY_PLJQTV"; [NoteAttribute("批量交期电视机2")] public const string CACHE_KEY_PLJQTV2 = "CACHE_KEY_PLJQTV2"; [NoteAttribute("样板交期电视机1")] public const string CACHE_KEY_YBJQTV = "CACHE_KEY_YBJQTV"; [NoteAttribute("样板交期电视机2")] public const string CACHE_KEY_YBJQTV2 = "CACHE_KEY_YBJQTV2"; [NoteAttribute("外发交期电视机")] public const string CACHE_KEY_OUTJQTV = "CACHE_KEY_OUTJQTV"; [NoteAttribute("外发交期电视机2")] public const string CACHE_KEY_OUTJQTV2 = "CACHE_KEY_OUTJQTV2"; //----------------------------后台相关缓存-----结束------------------------------------ #region APP /// /// APP 字典版本号 /// public const string CACHE_KEY_APP_DIC_VERSION = "CACHE_KEY_APP_DIC_VERSION"; #endregion #region 前台资讯行情 #endregion #region SEO 相关 #endregion #region #endregion #region 后台相关缓存 #endregion #region 手机站 [NoteAttribute("手机站年会已签到人员列表")] public const string CACHE_KEY_WAP_ANNUALMEETINGSIGN = "CACHE_KEY_ANNUALMEETINGSIGN"; #endregion #region 前台首页缓存KEY public class Home { [NoteAttribute("首页新闻")] [CacheKeyNote("首页新闻", CacheType.Business)] public const string CACHE_KEY_NEWS = "HOME_NEWS"; [Note("会员中心新闻")] [CacheKeyNote("会员中心新闻",CacheType.Business)] public const string CACHE_KEY_MEMBER_NEWS = "MEMBER_NEWS"; [NoteAttribute("捷客首页新闻")] [CacheKeyNote("捷客首页新闻", CacheType.Business)] public const string CACHE_KEY_JIEKENEWS = "CACHE_KEY_JIEKENEWS"; [NoteAttribute("捷客底部链接")] [CacheKeyNote("捷客底部链接", CacheType.Business)] public const string CACHE_KEY_JIEKE_FOOTSITEPAGE = "CACHE_KEY_JIEKE_FOOTSITEPAGE"; [NoteAttribute("捷客首页订单")] [CacheKeyNote("捷客首页订单", CacheType.Business)] public const string CACHE_KEY_JIEKEORDERS = "CACHE_KEY_JIEKEORDERS"; [NoteAttribute("首页广告")] [CacheKeyNote("首页广告", CacheType.Business)] public const string CACHE_ADS = "HOME_ADS"; [NoteAttribute("首页合作伙伴V2")] [CacheKeyNote("首页合作伙伴V2", CacheType.Business)] public const string CACHE_KEY_COOPERATIVEPARTNER = "CACHE_KEY_COOPERATIVEPARTNER"; /// /// 首页资讯动态 /// [NoteAttribute("首页资讯动态")] [CacheKeyNote("首页资讯动态", CacheType.Business)] public const string CACHE_KEY_STOREDATA_RECORD = "STOREDATA_RECORD"; [NoteAttribute("首页问答")] [CacheKeyNote("首页问答", CacheType.Business)] public const string CACHE_KEY_FEEDBACK = "CACHE_KEY_FEEDBACK"; [NoteAttribute("首页晒单")] [CacheKeyNote("首页晒单", CacheType.Business)] public const string CACHE_KEY_ORDERCOMMENT = "CACHE_KEY_ORDERCOMMENT"; [NoteAttribute("首页订单列表")] [CacheKeyNote("首页订单列表", CacheType.Business)] public const string CACHE_KEY_ORDERDETAILLIST = "CACHE_KEY_ORDERDETAILLIST"; [NoteAttribute("软件库首页")] [CacheKeyNote("软件库首页", CacheType.Business)] public const string CACHE_KEY_SOFTWAREINDEX = "CACHE_KEY_SOFTWAREINDEX"; } #endregion } }