123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- package utils
- const (
- Md5Key = ""
- )
- // 常量定义
- const (
- FormatTime = "15:04:05" //时间格式
- FormatDate = "2006-01-02" //日期格式
- FormatDateTime = "2006-01-02 15:04:05" //完整时间格式
- HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
- FormatDateTimeUnSpace = "20060102150405" //完整时间格式
- FormatMonthDate = "0102" //月日格式
- PageSize15 = 15 //列表页每页数据量
- PageSize5 = 5
- PageSize10 = 10
- PageSize20 = 20
- PageSize30 = 30
- PageMaxSize = 100 //每页最大数据数
- )
- const (
- APPNAME = "弘则开放API"
- EmailSendToUsers = "glji@hzinsights.com;pyan@hzinsights.com;cxzhang@hzinsights.com"
- )
- // 手机号,电子邮箱正则
- const (
- RegularMobile = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0-9])|(17[0-9])|(16[0-9])|(19[0-9]))\\d{8}$" //手机号码
- RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
- )
- // 客户状态
- const (
- COMPANY_STATUS_TRY_OUT = "试用"
- COMPANY_STATUS_FOREVER = "永续"
- COMPANY_STATUS_FREEZE = "冻结"
- COMPANY_STATUS_LOSE = "流失"
- COMPANY_STATUS_FORMAL = "正式"
- COMPANY_STATUS_POTENTIAL = "潜在"
- COMPANY_STATUS_TRY_OUT_COUNT = 30
- COMPANY_APPROVE_STATUS = "待审批"
- )
- // 管理员,ficc管理员,ficc销售,权益管理员,权益销售。
- // 角色类型/类型编码
- const (
- ROLE_TYPE_ADMIN = "管理员"
- ROLE_TYPE_FICC_ADMIN = "ficc管理员"
- ROLE_TYPE_FICC_SELLER = "ficc销售"
- ROLE_TYPE_RAI_ADMIN = "权益管理员"
- ROLE_TYPE_RAI_SELLER = "权益销售"
- ROLE_TYPE_FICC_GROUP = "ficc组长"
- ROLE_TYPE_RAI_GROUP = "权益组长"
- ROLE_TYPE_FICC_DEPARTMENT = "ficc部门经理"
- ROLE_TYPE_RAI_DEPARTMENT = "权益部门经理"
- ROLE_TYPE_FICC_RESEARCHR = "ficc研究员"
- ROLE_TYPE_RAI_RESEARCHR = "权益研究员"
- ROLE_TYPE_CODE_ADMIN = "admin" //管理员
- ROLE_TYPE_CODE_FICC_ADMIN = "ficc_admin" //ficc管理员
- ROLE_TYPE_CODE_FICC_SELLER = "ficc_seller" //ficc销售
- ROLE_TYPE_CODE_RAI_ADMIN = "rai_admin" //权益管理员
- ROLE_TYPE_CODE_RAI_SELLER = "rai_seller" //权益销售
- ROLE_TYPE_CODE_FICC_GROUP = "ficc_group" //ficc组长
- ROLE_TYPE_CODE_RAI_GROUP = "rai_group" //ficc组长
- ROLE_TYPE_CODE_FICC_DEPARTMENT = "ficc_department" //ficc部门经理
- ROLE_TYPE_CODE_RAI_DEPARTMENT = "rai_department" //权益部门经理
- ROLE_TYPE_CODE_FICC_RESEARCHR = "ficc_researcher" //ficc研究员
- ROLE_TYPE_CODE_RAI_RESEARCHR = "rai_researcher" //权益研究员
- ROLE_TYPE_CODE_COMPLIANCE = "compliance" //合规角色
- ROLE_TYPE_SELLERS = "'ficc_admin','ficc_seller','rai_admin','rai_seller','ficc_group','rai_group','ficc_department','rai_department','compliance'"
- )
- // 客户类型
- const (
- COMPANY_CLASSIFY_FICC = "ficc"
- COMPANY_CLASSIFY_RAI = "权益"
- COMPANY_CLASSIFY_PARTNER = "合作伙伴"
- )
- const (
- COMPANY_PRODUCT_FICC_ID = 1
- COMPANY_PRODUCT_FICC_NAME = "ficc"
- COMPANY_PRODUCT_RAI_ID = 2
- COMPANY_PRODUCT_RAI_NAME = "权益"
- )
- var PermissionFiccClassifyArr = [...]string{"宏观经济", "化工产业", "黑色产业", "有色产业"}
- var PermissionAllClassifyArr = [...]string{"宏观经济", "化工产业", "黑色产业", "有色产业", "权益"}
- const (
- key = "zDeESsxsXuionhqSLZYHWcDJ" //全局加密KEY
- REPORT_KEY = "Zdhuef3ajCLTpfGLn10cOJLJ" //报告加密Key
- )
- // 缓存key
- const (
- CACHE_KEY_ADMIN = "calendar:admin:list" //系统用户列表缓存key
- CACHE_KEY_DAYNEW_REFRESH = "admin:day_new:refresh" //每日资讯拉取企业微信聊天记录
- CACHE_KEY_DAYNEW_TRANSLATE = "admin:day_new:translate" //每日资讯中翻英
- )
- // 查研缓存key
- const (
- CYGX_ARTICLE_UPDATE_KEY = "CYGX_ARTICLE_UPDATE_KEY" //策略平台更新文章key
- )
- const ALIYUN_YBIMG_HOST = "https://hzstatic.hzinsights.com/static/yb_wx/"
- const HZ_DEFAULT_AVATAR = "https://hzstatic.hzinsights.com/static/yb_wx/hz_default_avatar.png"
- const HZPHONE = "057187186319" //弘则电话
- const (
- CLPT_APPID = "XVuGlcyEEVNYVWx5" //策略平台APPID
- CLPT_CRM_URL = "https://crm.hzinsights.com/" //策略平台老的CRM接口访问地址
- )
- // EDB_LIB
- var (
- APP_EDB_LIB_NAME_EN = "hongze_edb_lib"
- EDB_LIB_Md5_KEY = "GuRaB6dY1bXOJcwG"
- )
|