constants.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package utils
  2. const (
  3. Md5Key = "Ks@h64WJ#tcVgG8$&WlNfqvLAtMgpxWN"
  4. )
  5. // 常量定义
  6. const (
  7. FormatTime = "15:04:05" //时间格式
  8. FormatDate = "2006-01-02" //日期格式
  9. FormatDateTime = "2006-01-02 15:04:05" //完整时间格式
  10. HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
  11. FormatDateTimeNoSecond = "2006-01-02 15:04" //完整时间格式
  12. FormatDateTimeUnSpace = "20060102150405" //完整时间格式
  13. PageSize15 = 15 //列表页每页数据量
  14. PageSize5 = 5
  15. PageSize10 = 10
  16. PageSize20 = 20
  17. PageSize30 = 30
  18. )
  19. const (
  20. APPNAME = "弘则-查研观向小助手"
  21. EmailSendToUsers = "glji@hzinsights.com;pyan@hzinsights.com;cxzhang@hzinsights.com"
  22. EmailSendToExpert = "jhwang@hzinsights.com;cxzhang@hzinsights.com"
  23. )
  24. // 手机号,电子邮箱正则
  25. const (
  26. 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}$" //手机号码
  27. RegularFixedTelephone = "^(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{7,14}$" //手机号码
  28. RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
  29. )
  30. // 聚合短信
  31. var (
  32. JhGnTplId = "65692" //聚合国内模板编码
  33. JhGjTplId = "10054" //聚合国内模板编码
  34. JhGnAppKey = "4c8504c49dd335e99cfd7b6a3a9e2415" //聚合国内AppKey
  35. JhGjAppKey = "3326ad2c1047a4cd92ace153e6044ca3"
  36. )
  37. // OSS
  38. var (
  39. Endpoint string = "oss-cn-shanghai.aliyuncs.com"
  40. Bucketname string = "hongze"
  41. Imghost string = "https://hongze.oss-cn-shanghai.aliyuncs.com/"
  42. Upload_dir string = "static/images/"
  43. Upload_Audio_Dir string = "static/audio/"
  44. Upload_Pdf_Dir string = "static/pdf/"
  45. AccessKeyId string = "LTAIFMZYQhS2BTvW"
  46. AccessKeySecret string = "12kk1ptCHoGWedhBnKRVW5hRJzq9Fq"
  47. )
  48. const (
  49. CE_LUE_NAME string = "策略"
  50. CE_LUE_ID int = 23
  51. CHART_PERMISSION_NAME_YANXUAN string = "研选"
  52. MAI_FANG_YAN_XUAN_NAME string = "买方研选"
  53. CHART_PERMISSION_NAME_MF_YANXUAN string = "研选订阅"
  54. CHART_PERMISSION_ID_YANXUAN int = 31
  55. YI_YAO_NAME string = "医药"
  56. YI_YAO_ID int = 22
  57. XIAO_FEI_NAME string = "消费"
  58. XIAO_FEI_ID int = 21
  59. KE_JI_NAME string = "科技"
  60. KE_JI_ID int = 20
  61. ZHI_ZAO_NAME string = "智造"
  62. ZHI_ZAO_ID int = 19
  63. GU_SHOU_ID int = 100000 //固收
  64. )
  65. const (
  66. CYGX_USER_KEY_LABEL = "CYGX_USER_KEY_LABEL" //查研观向用户标签
  67. )