mapper里面常用的全局参数

全局参数作为平台内置参数,作为动态sql的参数,减少外围传递以及安全问题

当前权限过滤信息


_primaryIdV 雪花主键

 /// <summary>
        /// 当前用户 id  常用
        /// </summary>
        public const string CURRENT_USER_ID = "_userId";

        /// <summary>
        /// 当前用户显示的名称 id  常用
        /// </summary>
        public const string CURRENT_USER_PUSH_NAME = "_userPushName";

        /// <summary>
        /// 平台默认密码 md加密的结果
        /// </summary>
        public const string CURRENT_DEF_PWSD = "_defaultPwsd";

        /// <summary>
        /// 当前用户手机号  常用
        /// </summary>
        public const string CURRENT_TELEPHONE = "_telephone";

        /// <summary>
        /// 当前 登录账号名
        /// </summary>
        public const string CURRENT_USER_NAME = "_userName";

         /// <summary>
        /// 平台内置的特殊账号
        /// </summary>
        public const string  _filterUser= "_filterUser";





        public const string DEFAULT_ROLE_ID = "_defaultRoleId";
        public const string DEFALUE_AREA_CODE = "_defaultAreaCode";
        public const string DEFAULT_DEP_ID = "_defaultDepId";
        public const string DEFAULT_JOB_ID = "_defaultJobId";
        public const string DEFAULT_SYS_ID = "_defaultSysId";




        /// <summary>
        /// 开发者
        /// </summary>
        public const string CURRENT_USER_DEVELOPER = "_developer";

        /// <summary>
        ///当前系统ID
        /// </summary>
        public const string CURRENT_SYS_ID = "_sysId";


        /// <summary>
        ///当前所属部门 depId  数组
        /// </summary>
        public const string CURRENT_DEP_ID = "_depId";



        /// <summary>
        ///当前用户拥有的其它用户id
        /// </summary>
        public const string CURRENT_MERGE_USER_ID = "_mergeUserId";


        /// <summary>
        ///当前职位 depId  数组
        /// </summary>
        public const string CURRENT_JOB_ID = "_jobId";

        /// <summary>
        ///当前用户拥有查看的行政区划  数组
        /// </summary>
        public const string CURRENT_AREA_CODE = "_areaCode";



        /// <summary>
        ///当前过滤的行政区
        /// </summary>
        public const string CURRENT_FILTER_AREA_CODE = "_filterAreaCode";


        /// <summary>
        /// 特殊权限的用户ID
        /// </summary>
        public const string FILTER_USER_ID = "_filterUser";


        /// <summary>
        ///当前角色 roleId  存储数组
        /// </summary>
        public const string CURRENT_ROLE_ID = "_roleId";


        /// <summary>
        ///当前系统 参数全部信息   _sysParam
        ///RG3.PF  缓存里面需要设置
        /// </summary>
        public const string CURRENT_SYS_PARAM = "_sysParam";

当前和历史范围参数

/// <summary>
        /// 存储token KEY accessToken
        /// </summary>
        public const string TOKEN_KEY = "Authorization";

        #region  系统参数
         /// <summary>
        /// 星期几
        /// </summary>
        public const string CURRENT_DAY_WEEK = "_currentDayWeek";



        /// <summary>
        /// 当日 开始时间
        /// </summary>
        public const string CURRENT_DAY_S = "_currentDayS";
        /// <summary>
        /// 
        /// </summary>
        public const string CURRENT_DAY_E = "_currentDayE";
        /// <summary>
        /// 近7日、近1周 开始时间
        /// </summary>
        public const string CURRENT_DAY7_S = "_currentDay7S";
        /// <summary>
        /// 近7日、近1周 接收时间
        /// </summary>
        public const string CURRENT_DAY7_E = "_currentDay7E";

        /// <summary>
        /// 当周 开始时间
        /// </summary>
        public const string CURRENT_WEEK_S = "_currentWeekS";
        /// <summary>
        /// 当周 结束时间
        /// </summary>
        public const string CURRENT_WEEK_E = "_currentWeekE";

        /// <summary>
        /// 当月 开始时间
        /// </summary>
        public const string CURRENT_MONTH_S = "_currentMonthS";
        /// <summary>
        /// 当月 结束时间
        /// </summary>
        public const string CURRENT_MONTH_E = "_currentMonthE";
        /// <summary>
        /// 当年 开始时间
        /// </summary>
        public const string CURRENT_YEAR_S = "_currentYearS";
        /// <summary>
        /// 当年 结束时间
        /// </summary>
        public const string CURRENT_YEAR_E = "_currentYearE";
        /// <summary>
        ///当前 小时 开始时间
        /// </summary>
        public const string CURRENT_HOUR_S = "_currentHourS";
        /// <summary>
        /// 当前 小时 结束时间
        /// </summary>
        public const string CURRENT_HOUR_E = "_currentHourE";
        /// <summary>
        /// 最近5分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE5_S = "_currentMinute5S";
        /// <summary>
        /// 最近5分钟 结束时间
        /// </summary>
        public const string CURRENT_MINUTE5_E = "_currentMinute5E";
        /// <summary>
        /// 最近10分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE10_S = "_currentMinute10S";
        /// <summary>
        /// 最近10分钟 结束时间
        /// </summary>
        public const string CURRENT_MINUTE10_E = "_currentMinute10E";
        /// <summary>
        /// 最近15分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE15_S = "_currentMinute15S";
        /// <summary>
        /// 最近15分钟 结束时间
        /// </summary>
        public const string CURRENT_MINUTE15_E = "_currentMinute15E";
        /// <summary>
        /// 最近30分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE30_S = "_currentMinute30S";
        /// <summary> 结束时间
        /// 最近30分钟
        /// </summary>
        public const string CURRENT_MINUTE30_E = "_currentMinute30E";
        /// <summary>
        /// 最近45分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE45_S = "_currentMinute45S";
        /// <summary>
        /// 最近45分钟 结束时间
        /// </summary>
        public const string CURRENT_MINUTE45_E = "_currentMinute45E";
        /// <summary>
        /// 最近60分钟 开始时间
        /// </summary>
        public const string CURRENT_MINUTE60_S = "_currentMinute60S";
        /// <summary>
        /// 最近60分钟 结束时间
        /// </summary>
        public const string CURRENT_MINUTE60_E = "_currentMinute60E";


        /// <summary>
        /// 上周 开始时间
        /// </summary>
        public const string CURRENT_PREV_WEEK_S = "_currentPrevWeekS";
        /// <summary>
        /// 上周 结束时间
        /// </summary>
        public const string CURRENT_PREV_WEEK_E = "_currentPrevWeekE";
        /// <summary>
        /// 上个月 开始时间
        /// </summary>
        public const string CURRENT_PREV_MONTH_S = "_currentPrevMonthS";
        /// <summary>
        /// 上个月 结束时间
        /// summary
        /// </summary>
        public const string CURRENT_PREV_MONTH_E = "_currentPrevMonthE";
        /// <summary>
        /// 去年 开始时间
        /// </summary>
        public const string CURRENT_PREV_YEAR_S = "_currentPrevYearS";
        /// <summary>
        /// 去年 结束时间
        /// </summary>
        public const string CURRENT_PREV_YEAR_E = "_currentPrevYearE";
        /// <summary>
        /// 昨日 开始时间
        /// </summary>
        public const string CURRENT_PREV_DAY_S = "_currentPrevDayS";
        /// <summary>
        /// 昨日 结束时间
        /// </summary>
        public const string CURRENT_PREV_DAY_E = "_currentPrevDayE";


        #endregion

未来实际参数


        #region 未来参数
        /// <summary>
        /// 当前月份
        /// </summary>
        public const string CURRENT_MONTH = "_currentMonth";
        /// <summary>
        /// 当前年
        /// </summary>
        public const string CURRENT_YEAR = "_currentYear";

        /// <summary>
        /// 未来近1周 
        /// </summary>
        public const string FUTURE_WEEK01_S = "_futureWeek01S";
        /// <summary>
        /// 未来近1周
        /// </summary>
        public const string FUTURE_WEEK01_E = "_futureWeek01E";

        /// <summary>
        /// 未来近1个月份 
        /// </summary>
        public const string FUTURE_MONTH01_S = "_futureMonth01S";
        /// <summary>
        /// 未来近1个月份
        /// </summary>
        public const string FUTURE_MONTH01_E = "_futureMonth01E";
        /// <summary>
        /// 未来近3个月份 
        /// </summary>
        public const string FUTURE_MONTH03_S = "_futureMonth03S";
        /// <summary>
        /// 未来近3个月份
        /// </summary>
        public const string FUTURE_MONTH03_E = "_futureMonth03E";
        /// <summary>
        /// 未来近6个月份 
        /// </summary>
        public const string FUTURE_MONTH06_S = "_futureMonth06S";
        /// <summary>
        /// 未来近6个月份
        /// </summary>
        public const string FUTURE_MONTH06_E = "_futureMonth06E";

        /// <summary>
        /// 未来近12个月份 
        /// </summary>
        public const string FUTURE_MONTH12_S = "_futureMonth12S";
        /// <summary>
        /// 未来近12个月份
        /// </summary>
        public const string FUTURE_MONTH012_E = "_futureMonth12E";
        #endregion

        #region  当前公共参数  存储到缓存

        /// <summary>
        ///当前时间   常用  开始时间结尾   00:00:00
        /// </summary>
        public const string FILTER_DATE_S = "_filterDateS";

        /// <summary>
        ///当前时间   常用  开始时间结尾   23:59:59
        /// </summary>
        public const string FILTER_DATE_E = "_filterDateE";

        /// <summary>
        ///当前时间   常用
        /// </summary>
        public const string CURRENT_DATE = "_currentDate";

        /// <summary>
        /// 当前年月份
        /// </summary>
        public const string CURRENT_YEAR_MONTH = "_currentYearMonth";

        /// <summary>
        /// 当前年月份  yyyy-MM-01
        /// </summary>
        public const string CURRENT_YEAR_MONTH_01 = "_currentYearMonth01";



        #endregion

头部参数


 #region 头部参数
        /// <summary>
        ///  API有效性验证  值存储在 header里面  _verifyApi
        /// </summary>
        public const string VERIFY_API = "_verifyApi";

        /// <summary>
        ///  短信验证  验证码等 存储表示key的名称
        /// </summary>
        public const string VERIFY_GUID = "verifyGuid";
        /// <summary>
        ///  短信验证  验证码等 存储表示值的名称
        /// </summary>
        public const string VERIFY_CODE = "verifyCode";

        /// <summary>
        ///  //当前经度  GC102  _userLng
        /// </summary>
        public const string USER_LNG = "_userLng";

        /// <summary>
        ///  当前纬度  GC102  _userLat
        /// </summary>
        public const string USER_LAT = "_userLat";

        /// <summary>
        ///  当前 行政编码
        /// </summary>
        public const string USER_AREA_CODE = "_userAreaCode";

        /// <summary>
        ///  来源应用 
        /// </summary>
        public const string FROM_APP_ID = "_fromAppId";

        /// <summary>
        ///  项目
        /// </summary>
        public const string OWNER_ID = "_ownerId";

        /// <summary>
        ///  项目 URL 传递
        /// </summary>
        public const string PARAM_OWNER_ID = "ownerId";

        /// <summary>
        ///  头前缀
        /// </summary>
        public const string HEADER_BEFORE_SUFFIX = "X";

        /// <summary>
        /// 来至用户分享的id
        /// </summary>
        public const string USER_FROM_FIRST_SHARE_ID = "_userFromFirstShareId";
        /// <summary>
        /// 来至用户分享的二级ID
        /// </summary>
        public const string USER_FROM_SECOND_SHARE_ID = "_userFromSecondShareId";
        #endregion
文档更新时间: 2023-01-31 12:43   作者:admin