using Nest; using Org.BouncyCastle.Asn1.Mozilla; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using ZeroD.Util; namespace LifePayment.Domain.Shared { public static class LifePaymentConstant { public const string 区域信息缓存key = "AreaCacheKey"; public const string 区域信息缓存key2 = "AreaCacheKey2"; public const string 扫码登录二维码路径 = "HumanResourcesServices/Account/LoginQrcode/"; public const string 用户默认密码 = "81812333"; public const string 小程序Token缓存key = "WxAccessTokenCacheKey"; public const string 微信公众号Token缓存key = "WxCgiAccessTokenCacheKey"; public const string WeChatHttpClientName = "WeChatHttpClientName"; public static string 微信小程序获取Token = "/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}"; public const string 微信小程序创建二维码 = "/wxa/getwxacodeunlimit?access_token={0}"; public const string 微信接口获取公众号文章 = "/cgi-bin/freepublish/batchget?access_token={0}"; public const string 微信小程序身份会话信息 = "/sns/jscode2session?grant_type=authorization_code&appid={0}&secret={1}&js_code={2}"; public const string PhoneMessageName = "PhoneMessage"; public const string SMStemplate404 = "未找到该短信模板"; public const string SendFailed = "短信发送失败"; public const int 登录验证码失效 = -10000; public const string WxPayHttpClientName = "WxPayHttpClientName"; public const string WxPayCertificates = "/v3/certificates"; public const string PayTransactionsNative = "/v3/pay/transactions/native"; public const string PayTransactions = "/v3/pay/transactions"; public const string WxRechargeNotifySectionUrl = "/api/WxPayNotify/WxRechargeNotify"; public const string AliRechargeNotifySectionUrl = "/api/AliPayNotify/AliRechargeNotify"; public const string SystemName = "系统"; public const string OrderContactSaveUrl = "/Resource/OrderContact/"; public const string DateFormate = "yyyy-MM-dd"; public static class CategoryType { public const int 行业配套 = 1; public const int 行业服务 = 0; public const int 甲方需求 = 2; public const int 行业资讯 = 3; } public static class UserType { public const int 企业用户 = 1; public const int 个人用户 = 2; } public static class AuthType { public const int 人资公司 = 10; public const int 行业配套服务公司 = 20; public const int 用工单位 = 30; public const int 行业机构 = 40; } public static class AreaLayerType { public static int 省 = 1; public static int 市 = 2; public static int 区县 = 3; public static int 镇 = 4; } public static class NamingType { public static int 其他 = 0; public static int 省级 = 1; public static int 市级 = 2; public static int 区县级 = 3; } public static class UserAttestationStatus { public static int 未提交 = -20; public static int 驳回 = -10; public static int 待审核 = 0; public static int 完善中 = 1; public static int 已完善 = 2; public static int 提交待审核 = 9; public static int 通过 = 10; } public static class ImplementAreaType { public static int 全国 = 0; public static int 省份 = 1; } public static class PeriodType { public static int 天 = 1; public static int 周 = 7; public static int 月 = 30; public static int 季 = 90; public static int 年 = 365; } public static class WxMiniAppLoginStatus { public static int 登录过期 = -10; public static int 登录初始 = 0; public static int 登录确认 = 10; } public static class AmountTransferOIType { public static int 支出 = -1; public static int 收入 = 1; } public static class Squence { /// /// 第一个 /// public const int TheFirst = 1; public const int TheSecond = 2; public const int TheThird = 3; } /// /// 更新时间 10 最近一天 20 最近一周 30 最近一月 /// public static class DateType { public static int LatestDay = 10; public static int LatestWeek = 20; public static int LatestMonth = 30; } public static class TableType { public const int User = 10; public const int UserCertification = 11; public const int UserCertificationAudit = 12; public const int ParkOrHR = 20; public const int ParkOrHRAudit = 21; public const int ResourceEntity = 30; // public const int ResourceAudit = 31; public const int Order = 40; public const int HeadHunter = 50; public const int Training = 60; public const int Consult = 70; public const int Information = 80; public const int AdvertiseBoard = 90; public const int AdvertiseOnShow = 100; public const int PlatformServicePay = 110; public const int SystemNotice = 120; public const int WalletAccountOpen = 130; public const int WalletSingleTransfer = 131; public const int WalletRecharge = 132; public const int WalletMain = 133; public const int WalletBarchTransfer = 134; public const int FirstPartyCompany = 135; public const int FirstPartyCompanyAudit = 136; public const int IndustryBody = 137; public const int IndustryMating = 138; public const int WalletBatchTransfer = 141; public const int GigWorkerRecharge = 150; public const int ParkReward = 142; public const int UserServiceStaff = 143; public const int EnterpriseMaterial = 144; public const int IncentivePayments = 145; public const int LgGigWorkerCustomerTemplate = 146; public const int LgGigWorkerSignFreeSetting = 151; } public static class LogsSpecies { public static string Create = "创建"; public static string Update = "编辑"; public static string Modify = "修改"; public static string Audit = "审核"; public static string AuditPass = "通过"; public static string AuditDown = "驳回"; public static string Delete = "删除"; public static string Disable = "禁用"; public static string Enable = "启用"; public static string Up = "系统上架"; public static string Down = "系统下架"; public static string OnShelf = "上架"; public static string OffShelf = "下架"; public static string Recommended = "推荐"; public static string CancelRecommended = "取消推荐"; public static string Certification = "实名认证"; public static string CertificationPass = "审核通过"; public static string CertificationDown = "审核驳回"; public static string CertificationSubmit = "提交"; public static string MandatoryInvalidation = "强制失效"; public static string CertificationCreate = "提交实名认证"; public static string CertificationSuccess = "实名认证成功"; public static string CertificationFail = "实名认证失败"; public static string Login = "登录"; public static string Invoicing = "上传发票"; public static string Crediting = "入账"; public static string Credited = "已入账"; public static string NotCredited = "未支付"; public static string Resubmit = "重新提交"; public static string ResetPassword = "重置密码"; public static string AccountUpdate = "账户编辑"; public static string ChangeUserPhoneNumberForUser = "用户更换手机号"; public static string UserChangePassword = "用户修改密码"; public static string UserForgotPassword = "用户忘记密码"; public static string Expired = "过期"; public static string SetDisable = "设置禁用"; public static string SetEnable = "设置启用"; public static string UserRegister = "注册"; public static string Setting = "配置"; } public static class SearchType { public static int HotSearchWords = 10; public static int ServiceType = 20; public static int TypeOfWork = 30; public static int ParkType = 40; public static int InformationActivityType = 50; public static int PolicyIssuingAgency = 60; public static int RegionalManagement = 70; public static int ProductType = 80; public static int DemandType = 90; public static int DemandRange = 100; public static int EmployeeBenefits = 110; public static int LingGongService = 120; public static int InstitutionalFeatures = 130; public static int IndustryType = 160; public static int SocialIdentity = 170; public static int EducationalLevel = 180; } public static class ClientId { public const string Front = "frontend-admin-app-client"; public const string Back = "backend-admin-app-client"; } /// /// 正则表达式 /// public static class RegularExpression { /// /// 登录密码正则表达式 /// public const string LoginPasswordRegEx = @"^(?![\d]+$)(?![a-z]+$)(?![A-Z]+$)[a-zA-Z\d]{6,16}$"; /// /// 手机号码正则表达式 /// public const string PhoneNumberRegEx = @"^1[3-9]\d{9}$"; /// /// 手机号码+座机正则表达式 /// public const string PhoneNumberTelRegEx = @"(^(0[0-9]{2,3})?[-\s]?([2-9][0-9]{6,7})+([0-9]{1,4})?$)|(^((\(\d{3}\))|(\d{3}[-\s]))?(1[3-9]\d{9})$)|(^(400)[-\s](\d{3})[-\s](\d{4})(.)(\d{1,4})$)|(^(400)(\d{3})(\d{4}$))"; /// /// 身份证号正则表达式 /// public const string IdNumberRegEx = @"^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$"; /// /// 统一社会信用代码正则表达式 /// public const string SocietyCreditCodeRegEx = @"^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$"; /// /// 银行卡正则表达式 /// public const string BankCardRegEx = @"^\d{14,30}$"; /// /// 邮箱正则表达式 /// public const string EmailRegEx = @"^(([^<>()\\[\]\\.,;:\s@""]+(\.[^<>()\\[\]\\.,;:\s@""]+)*)|("".+""))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$"; /// /// 用户账号正则表达式 /// public const string UserNameEx = @"^[A-Za-z0-9]{8,13}$"; } public static class ResponseCode { public static int SUCCESS = Constant.SUCCESS; public static int Failure = Constant.Failure; public static int Refresh = 10; public static int RegisterExistsPhoneNumber = 11; } public static class GenerateUserName { /// /// 生成用户名中的字符长度 /// public const int GenerateCharLenght = 2; /// /// 用于生成用户名的字符池 /// public static readonly char[] GenerateUserNameCharPool = { // 数字 // '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', // 大写字母 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', // 小写字母 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', // 特殊符号 //'~', '`', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', //'=', '+', '\\', '|', '、', '{', '}', '[', ']', ':', ';', '\'', '"', //'<', '>', '?' }; } public class NormalStatus { public static int Normal = 1; public static int Disable = 0; } public class SetNormalStatusInput { public Guid Id { get; set; } /// /// 0:禁用 1: 正常 /// public int Status { get; set; } } public static class RequestCode { /// /// 单笔代发查询 /// public const string SingleTransaction = "Sig"; /// /// 历史余额查询 /// public const string HistoryBalance = "His"; /// /// 明细查询 /// public const string TransactionDetail = "Tra"; /// /// 批量明细查询 /// public const string BatchInquiriesRegulators = "Bat"; /// /// 主账户的关系查询 /// public const string PrimaryAcctRelationship = "Par"; /// /// 货币类型 /// public const string CcyCode = "RMB"; /// /// 支付编号 /// public const string StopPayment = "Flw"; /// /// 查询银行余额 /// public const string CorAcctBalance = "CAB"; /// /// 止付代发 /// public const string SingleApplicationSuspensionPayment = "SSP"; /// /// 获取电子回单数据 /// public const string DayHistoryReceiptData = "DHP"; /// /// 根据电子回单获取File /// public const string DayHistoryReceiptFile = "DPF"; /// /// 银行联行号查询 /// public const string BankNo = "BNQ"; /// /// 充值序号 /// public const string Recharge = "CZ_"; /// /// 支付宝商户签约 /// public const string AlipayArgreementNo = "AliNo"; /// /// 转账Pc /// public const string AlipayPagePay = "AliPagePay"; /// /// 商户自身给记账本充值 /// public const string AlipayCharge = "AliCharge"; /// /// 记账本单笔代发到银行卡 /// public const string AlipayTrans = "AlipayTrans"; /// /// 记账本单笔代发到支付宝 /// public const string AlipayToAlipay = "AliPayToAlipay"; /// /// 批量付款 /// public const string BatchTransfer = "Bth"; /// /// 批量付款明细 /// public const string BatchTransferDetail = "Btd"; } /// /// 银行查询状态 /// public static class PingAnBankBatchInquiriesStatusCode { public const string Success = "0000"; } /// /// 止付操作类型 A-止付 D-解除止付 /// public static class OpType { public const string StopPayment = "A"; public const string CanPayment = "D"; } /// /// 操作状态码 /// public static class SttStatus { public const string Success = "20"; public const string Fail = "30"; public const string Process = "10"; } public static class Wallet { public const string DefaultBankName = "平安银行"; public const string SingleTransferRefundUseEx = "退款"; public const string ExpenseCanNotUseMoneyUseEx = "从不可用余额中扣除"; public const string WalletRechargeUseEx = "充值"; } public static class FreezeStatus { public const string Validate = "0"; public const string InValidate = "1"; } public static class DateTimeFormatStr { public const string yyyyMMdd = "yyyyMMdd"; public const string HHmmss = "HHmmss"; public const string yyyyMM = "yyyyMM"; public const string ShortDateFormat = "yyyy-MM-dd"; public const string ShortMonthFormat = "yyyy-MM"; public const string yyyyMMddHHmm = "yyyy-MM-dd HH:mm"; public const string yyyyMMddHHmmssfff = "yyyyMMddHHmmssfff"; } public static class BilType { public const int Day = 1; public const int Month = 2; } public static class DataRange { public const int PowerPerson = 10; public const int PowerAll = 100; } public static class DataRangePower { public const string PowerPerson = "_POWERPERSON"; public const string PowerAll = "_POWERALL"; } } }