12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- package utils
- const (
- Md5Key = "Ks@h64WJ#tcVgG8$&WlNfqvLAtMgpxWN"
- )
- // 常量定义
- const (
- FormatTime = "15:04:05" //时间格式
- FormatDate = "2006-01-02" //日期格式
- FormatDateTime = "2006-01-02 15:04:05" //完整时间格式
- HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
- FormatDateTimeNoSecond = "2006-01-02 15:04" //完整时间格式
- FormatDateTimeUnSpace = "20060102150405" //完整时间格式
- PageSize15 = 15 //列表页每页数据量
- PageSize5 = 5
- PageSize10 = 10
- PageSize20 = 20
- PageSize30 = 30
- )
- const (
- APPNAME = "弘则-买方研选"
- EmailSendToUsers = "glji@hzinsights.com;pyan@hzinsights.com;cxzhang@hzinsights.com;zwxi@hzinsights.com"
- EmailSendToExpert = "jhwang@hzinsights.com;cxzhang@hzinsights.com"
- DefaultHeadimgurl = "https://hzstatic.hzinsights.com/static/images/202401/20240103/u6Ykx23BMTnwtvYhZnJktgD54MLp.png"
- )
- // 手机号,电子邮箱正则
- 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}$" //手机号码
- RegularFixedTelephone = "^(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{7,14}$" //手机号码
- RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
- )
- // 聚合短信
- var (
- JhGnTplId = "65692" //聚合国内模板编码
- JhGjTplId = "10054" //聚合国内模板编码
- JhGnAppKey = "4c8504c49dd335e99cfd7b6a3a9e2415" //聚合国内AppKey
- JhGjAppKey = "3326ad2c1047a4cd92ace153e6044ca3"
- )
- // OSS
- var (
- Endpoint string = "oss-cn-shanghai.aliyuncs.com"
- Bucketname string = "hongze"
- Imghost string = "https://hongze.oss-cn-shanghai.aliyuncs.com/"
- Upload_dir string = "static/images/"
- Upload_Audio_Dir string = "static/audio/"
- Upload_Pdf_Dir string = "static/pdf/"
- AccessKeyId string = "LTAIFMZYQhS2BTvW"
- AccessKeySecret string = "12kk1ptCHoGWedhBnKRVW5hRJzq9Fq"
- )
- const (
- CE_LUE_NAME string = "策略"
- CE_LUE_ID int = 23
- CHART_PERMISSION_NAME_YANXUAN string = "研选"
- CHART_PERMISSION_NAME_MF_YANXUAN string = "买方研选"
- CHART_PERMISSION_ID_YANXUAN int = 31
- YI_YAO_NAME string = "医药"
- YI_YAO_ID int = 22
- XIAO_FEI_NAME string = "消费"
- XIAO_FEI_ID int = 21
- KE_JI_NAME string = "科技"
- KE_JI_ID int = 20
- ZHI_ZAO_NAME string = "智造"
- ZHI_ZAO_ID int = 19
- GU_SHOU_ID int = 100000 //固收
- )
- const (
- CYGX_USER_KEY_LABEL = "CYGX_USER_KEY_LABEL" //查研观向用户标签
- )
|