constants.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. FormatDateTimeMinute2 = "2006-01-02 15:04" //时间格式 年-月-日 时:分
  11. HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
  12. FormatDateTimeNoSecond = "2006-01-02 15:04" //完整时间格式
  13. FormatDateTimeUnSpace = "20060102150405" //完整时间格式
  14. FormatDateTimeInit = "0000-00-00 00:00:00" //为空的初始化时间格式
  15. FormatYearDate = "2006" //日期格式
  16. PageSize15 = 15 //列表页每页数据量
  17. PageSize5 = 5
  18. PageSize10 = 10
  19. PageSize20 = 20
  20. PageSize30 = 30
  21. )
  22. const (
  23. APPNAME = "弘则-策略平台网页版"
  24. EmailSendToUsers = "cxzhang@hzinsights.com"
  25. ApiAuthorization = "bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkiLCJwaG9uZV9udW1iZXIiOiIxMjM0NTY3ODkiLCJuYW1lIjoi5YW25LuWIiwiZW50cmFuY2UiOiJwYXNzd3dvcmQiLCJpYXQiOjE2MzQ4NzA1OTQsImV4cCI6MTYzNDg3NDE5NH0.tho2L9jsbDPn8ltEGUVDve_nHsh0Kzf6ZrSz0RcZ0ag"
  26. ApiUrl = "https://vmp.hzinsights.com/v2api/"
  27. CHART_INFO_HTTP_URL = "https://vmp.hzinsights.com/v2/charts/"
  28. DISCLAIMERS = "本文为用户投稿,用户在平台中发表的所有资料、言论等仅代表个人观点,与本平台立场无关,不对您构成任何投资建议。本平台对文中陈述、观点判断保持中立,不对所包含内容及数据的真实性、准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。"
  29. DISCLAIMERS_PRODUCT_INTERIOR string = "<pstyle=\"text-align: center;\">免责声明</p><p>本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</p><p><br/></p>" // 产品内测免责声明
  30. REGISTER_PLATFORM = 2 // 来源 1小程序,2:网页
  31. )
  32. // 手机号,电子邮箱正则
  33. const (
  34. 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}$" //手机号码
  35. RegularFixedTelephone = "^(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{7,14}$" //手机号码
  36. RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
  37. RegularUrl = `(http|ftp|https):\/\/([\w\-_]+(?:(?:\.[\w\-_]+)+))([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?` //匹配网址链接
  38. )
  39. // 聚合短信
  40. var (
  41. JhGnTplId = "65692" //聚合国内模板编码
  42. JhGjTplId = "10054" //聚合国内模板编码
  43. JhGnAppKey = "4c8504c49dd335e99cfd7b6a3a9e2415" //聚合国内AppKey
  44. JhGjAppKey = "3326ad2c1047a4cd92ace153e6044ca3"
  45. )
  46. // OSS
  47. var (
  48. Endpoint string = "oss-cn-shanghai.aliyuncs.com"
  49. Bucketname string = "hongze"
  50. Imghost string = "https://hongze.oss-cn-shanghai.aliyuncs.com/"
  51. Upload_dir string = "static/images/"
  52. Upload_Audio_Dir string = "static/audio/"
  53. Upload_Pdf_Dir string = "static/pdf/"
  54. AccessKeyId string = "LTAIFMZYQhS2BTvW"
  55. AccessKeySecret string = "12kk1ptCHoGWedhBnKRVW5hRJzq9Fq"
  56. )
  57. // 缓存key
  58. const (
  59. CACHE_KEY_USER_VIEW = "user_view_record" //用户阅读数据
  60. CACHE_KEY_ARTICLE_ID_TEMPLATE = "ce_lue_article_id_template" //策略平台同步过来的文章ID,做微信模板消息推送,同一篇报告12小时只推送一次
  61. )
  62. const (
  63. ZHOU_QI_NAME string = "周期"
  64. CE_LUE_NAME string = "策略"
  65. CE_LUE_ID int = 23
  66. CHART_PERMISSION_NAME_YANXUAN string = "研选"
  67. MAI_FANG_YAN_XUAN_NAME string = "买方研选"
  68. CHART_PERMISSION_NAME_MF_YANXUAN string = "研选订阅"
  69. CHART_PERMISSION_ID_YANXUAN int = 31 //权限研选订阅id
  70. YAN_XUAN_KOU_DIAN_BAO_ID int = 52 //研选扣点包ID
  71. YAN_XUAN_KOU_DIAN_BAO_NAME string = "研选扣点包" //研选扣点包ID
  72. YI_YAO_NAME string = "医药"
  73. YI_YAO_OTHER_IMG string = "https://hzstatic.hzinsights.com/static/temp/20221118202211/20221118/qzPm61bVf40Je7c5iL1s4CbrDcpv.png" //医药其它图片
  74. YI_YAO_ID int = 22
  75. XIAO_FEI_NAME string = "消费"
  76. XIAO_FEI_OTHER_IMG string = "https://hzstatic.hzinsights.com/static/temp/20221118202211/20221118/BxOfzECjhqjipJCWwAa9Ep99OTMA.png" //消费其它图片
  77. XIAO_FEI_ID int = 21
  78. KE_JI_NAME string = "科技"
  79. KE_JI_OTHER_IMG string = "https://hzstatic.hzinsights.com/static/temp/20221118202211/20221118/vr7eTXIrl6YjJ80DDTVbdnFRQ9mJ.png" //科技其它图片
  80. KE_JI_ID int = 20
  81. ZHI_ZAO_NAME string = "智造"
  82. ZHI_ZAO_OTHER_IMG string = "https://hzstatic.hzinsights.com/static/temp/20221118202211/20221118/SSaQcWzMk5slN3FkCwZifK3qcAWd.png" //智造其它图片
  83. ZHI_ZAO_ID int = 19
  84. SummaryArticleId int = 1000000
  85. StrategyPlatform string = "https://vmp.hzinsights.com/v2/articles/"
  86. DefaultHeadimgurl string = "https://hzstatic.hzinsights.com/static/temp/20220426202204/20220426/P5qLR2zzfBdKItp3eX2Du1tvq9Ba.jpg"
  87. OPEN_TOKEN_KEY string = "CLPT_OPEN_TOKEN_KEY" //策略品台开放平台的token key
  88. OnlineTime string = "2021-06-01 00:00:01" //上线时间
  89. HONG_GUAN_ID int = 1
  90. HZ_COMPANY_ID int = 16
  91. YAN_XUAN_ARTICLE_TYPE_IDS string = "1,2,12" // 属于研选的报告类型ID
  92. REOURCE_YX string = "Yx"
  93. REOURCE_HZ string = "Hz"
  94. GU_SHOU_NAME string = "固收"
  95. GU_SHOU_ID int = 100000 // 自定义权限类型ID ,十万起步
  96. GU_SHOU_ID_CHART int = 53 // chart_permission 表 固收ID
  97. HONG_GUAN_NAME string = "宏观"
  98. CYGX_TACTICS_TIME_LINE_STATUS string = "cygx_tactics_time_line_status" // 策略时间线是否对外开放
  99. TIME_LINE_ID int = 99999 // 策略时间线的值
  100. TIME_LINE_NAME string = "时间线" // 策略时间线的名称
  101. ACTEGORY_ID_AI_QY int = 61 // AI前沿自定义ID
  102. )
  103. // 模板消息推送类型
  104. const (
  105. TEMPLATE_MSG_CYGX_ACTIVITY_ADD = 12 //查研观向小程序活动更新推送 12
  106. TEMPLATE_MSG_CYGX_ARTICLE_ADD = 13 //查研观向报告更新推送 13
  107. TEMPLATE_MSG_CYGX_APPLY = 14 //查研观向审批通知
  108. TEMPLATE_MSG_CYGX_COMMENT = 15 //查研观向留言通知
  109. )
  110. const (
  111. COMPANY_PRODUCT_FICC_ID = 1
  112. COMPANY_PRODUCT_FICC_NAME = "ficc"
  113. COMPANY_PRODUCT_RAI_ID = 2
  114. COMPANY_PRODUCT_RAI_NAME = "权益"
  115. ROLE_TYPE_RAI_PRODUCT = "权益产品"
  116. )
  117. const (
  118. TIME_CATEGORYID = 99999 //时间线的分类ID
  119. )
  120. // 活动相关
  121. const (
  122. C_CLASS_ACTIVITY_TYPE_ID int = 7 //C类电话会会议ID
  123. ANALYST_TELL_ACTIVITY_TYPE_ID int = 2 //分析师电话会ID
  124. )
  125. const (
  126. YI_YAO_QI_TA = "https://hzstatic.hzinsights.com/static/temp/20220922202209/20220922/2OQMBFplQE1R3bX1y3obX7JSwSuA.png"
  127. YAN_XUAN_IMG = "https://hzstatic.hzinsights.com/static/temp/20221027202210/20221027/Dd8TrsMh8tNx2tGd5VeaQDyJVQfV.png"
  128. )
  129. var YAN_XUAN_ARTICLE_TYPE_ID = []int{1, 2, 12}
  130. var ACTIVITY_SPECIAL_TRIP_PERMISSION_NAME_OTHER = []string{"策略", "固收", "周期"} //专项调研活动带扣点的行业
  131. const (
  132. YAN_XUAN_TAB_KEY = "yanxuan_header_tab"
  133. )
  134. const (
  135. YD_TOKEN = "yidong_token"
  136. CYGX_USER_KEY_LABEL = "CYGX_USER_KEY_LABEL" //查研观向用户标签
  137. CYGX_YANXUAN_POINTS_KEY = "CYGX_YANXUAN_POINTS_KEY" //查研观向研选活动扣点KEY
  138. )
  139. // 邀请机构标识
  140. const (
  141. LUODING_CODE = "LUODING" //络町
  142. )
  143. const (
  144. //专项调研背景图片
  145. //ACTIVITY_ZXDY_ImgUrl1 = "https://hzstatic.hzinsights.com/static/temp/20220427202204/20220427/b2Bj3fGakP16iJRFKisQohCWnCNl.png"
  146. //ACTIVITY_ZXDY_ImgUrl2 = "https://hzstatic.hzinsights.com/static/temp/20220427202204/20220427/OkunjfKEgo5KRLifzwwLX8cDZnnN.png"
  147. //ACTIVITY_ZXDY_ImgUrl3 = "https://hzstatic.hzinsights.com/static/temp/20220426202204/20220426/XDLLsjC9XAAy8LIzQr7GsjrBbtX6.png"
  148. ACTIVITY_ZXDY_ImgUrl1 = "https://hzstatic.hzinsights.com/static/temp/20220707202207/20220707/0H4md6VgZMuIttggMUnJxgrlayxC.png"
  149. ACTIVITY_ZXDY_ImgUrl2 = "https://hzstatic.hzinsights.com/static/temp/20220707202207/20220707/rFwAM1c4fIMJM0EGoUkUYl25XH9L.png"
  150. ACTIVITY_ZXDY_ImgUrl3 = "https://hzstatic.hzinsights.com/cygx/special_list_bg.png"
  151. )
  152. // 模板消息地址路由
  153. const (
  154. ACtIVITY_SPECIAL_EXPLAIN = "此类调研具体行程尚未确定,待预报名人数满10人后弘则会确定行程并推送给您活动日期,只有在确定行程中再次报名才完成占位。" //专项调研说明
  155. ACtIVITY_SPECIAL_TRIP_EXPLAIN = "此类调研时间安排已经确定,点击报名后按人次扣除对应机构的服务点数。由于每场活动人数有限,如果不能参加请提前48小时取消,未及时取消导致影响其他客户报名将会维持扣点。" //专项调研说明
  156. )
  157. // 模板消息地址路由
  158. const (
  159. WX_MSG_PATH_ARTICLE_DETAIL = "pageMy/reportDetail/reportDetail?id=" //文章详情模板消息地址
  160. WX_MSG_PATH_ACTIVITY_SPECIAL_DETAIL = "activityPages/specialDetail/specialDetail?id=" //专项调研活动模板消息地址
  161. WX_MSG_PATH_ACTIVITY_INDUSTRYR_EPORT = "reportPages/IndustryReport/IndustryReport?id=" //产业文章列表模板消息地址
  162. WX_MSG_PATH_ACTIVITY_DETAIL = "activityPages/activityDetail/activityDetail?id=" //活动模板消息地址
  163. WX_MSG_PATH_APPLY_DETAIL = "pages-message/applyFor/applyFor?id=" //潜在用户试用权限申请
  164. WX_MSG_PATH_YX_SURVEY_DETAIL = "pages-purchaser/survey/surveyDetail?surveyId=" //用户提交研选调研需求
  165. WX_MSG_PATH_APPLY_COLLECTION_DETAIL = "reportPages/bulletinDetail/bulletinDetail?id=" //精选看板申请详情页
  166. WX_MSG_PATH_YX_SPECIAL_DETAIL = "pages-purchaser/noteAndViewpoint/noteAndViewpoint?id=" //研选专栏详情
  167. WX_MSG_PATH_YX_SPECIAL_ENABLE_DETAIL = "pages-purchaser/toExamine/toExamine?isMessage=模板&id=" //研选专栏审核详情页面
  168. WX_MSG_PATH_YX_SPECIAL_CENTER = "pages-purchaser/contentAllPage/contentAllPage" //研选专栏内容中心
  169. WX_MSG_PATH_PRODUCTINTERIOR_DETAIL = "reportPages/internalDetials/internalDetials?id=" //产品内测详情模板消息地址
  170. WX_MSG_PATH_THIS_WEEK_DETAIL = "reportPages/reportSecretDetail/reportSecretDetail?type=2&id=" //本周研究汇总详情模板消息地址
  171. WX_MSG_PATH_LAST_WEEK_DETAIL = "reportPages/reportSecretDetail/reportSecretDetail?type=3&id=" //上周纪要汇总详情模板消息地址
  172. WX_MSG_PATH_FICC_REPORT_DETAIL = "pages-ficc/reportDetail/reportDetail?id=" //FICC研报详情
  173. )
  174. // 研选公账号跳转地址
  175. const (
  176. WX_MSG_PATH_YX_COMMENT_DETAIL = "pages-activity/generationAsk/generationAsk?id=" //研选报告留言详情
  177. WX_MSG_PATH_YX_ACTIVITY_DETAIL = "pages-activity/activityDetail/activityDetail?IsSendWx=1&id=" //研选活动详情
  178. WX_MSG_PATH_YX_ARTICLE_DETAIL = "pages-user/reportDetail/reportDetail?id=" //研选纪要详情
  179. )
  180. // 微信模板消息推送公共接口的秘钥
  181. const (
  182. SendTemplateMsgAuthorization = "dc855fce962a639faa779cbdd4cd332f"
  183. )
  184. // 时间线路由
  185. const (
  186. TIME_LINE_ROUTE = "/api/report/industry/ArticleList?PageSize=10&CurrentIndex=1&CategoryId=99999&IndustrialManagementId="
  187. )
  188. const (
  189. //ABOUT_US_URL = "https://hzstatic.hzinsights.com/static/yb/video/8617330c2a76e0c35999f6466b4470c4.mp4"
  190. ABOUT_US_URL = "https://hzstatic.hzinsights.com/cygx_web/config/about.mp4"
  191. ABOUT_US_TITLE = "关于我们--三分钟了解弘则研究体系和方法论"
  192. )
  193. const (
  194. GAO_YI_ZI_CHAN_COMPANY_ID = 5285 // 高毅资产ID
  195. )
  196. // 模板消息地址路由2
  197. const (
  198. WX_MSG_PATH_TEMPLATE_MSG = "/pages-message/templateMsg/templateMsg?" //留言带问模版消息地址详情
  199. )
  200. const (
  201. TPL_MSG_WANG_YANG = "tpl_msg_wang_yang" //汪洋手机号地址参数
  202. TPL_MSG_WANG_FANG_WANG_YANG = "tpl_msg_wang_fang_wang_yang" //权限模板消息接收人,王芳,汪洋
  203. TPL_MSG_YAN_XUAN_SPECIAL_APPROVAL = "tpl_msg_yan_xuan_special_approval" //研选专栏修改之后给这些手机号推送审核模版消息
  204. TPL_MSG = "tpl_msg" //王芳手机号地址参数
  205. TPL_MSG_NEI_RONG_ZU = "tpl_msg_nei_rong_zu" //内容组四人
  206. CYGX_TAG_HOT_ACTIVITY_ID string = "cygx_tag_hot_activity_id" //标签管理自定义的热门活动ID
  207. )
  208. const (
  209. MobileShenTao = "18767183922" //沈涛手机号
  210. MobileZhangChuanXin = "15557270714" // 张传星手机号
  211. MobileWangFang = "18621268829" // 王芳手机号
  212. MobileWuAngDi = "18701809782" // 吴昂迪手机号
  213. )
  214. const (
  215. COLLECTIONS_INFO_HTTP_URL = "https://vmp.hzinsights.com/v2/collections" // 上海策略平台精选看板路由
  216. )
  217. const (
  218. CYGX_OBJ_ARTICLE string = "article" // 对象类型:文章
  219. CYGX_OBJ_ACTIVITY string = "activity" // 对象类型:活动
  220. CYGX_OBJ_ACTIVITYVIDEO string = "activityvideo" // 对象类型:活动视频
  221. CYGX_OBJ_ACTIVITYVOICE string = "activityvoice" // 对象类型:活动音频
  222. CYGX_OBJ_ACTIVITYSPECIAL string = "activityspecial" // 对象类型:专项调研活动
  223. CYGX_OBJ_MEETINGREVIEWCHAPT string = "meetingreviewchapt" // 对象类型:晨会精华
  224. CYGX_OBJ_ROADSHOW string = "roadshow" // 对象类型:路演
  225. CYGX_OBJ_REPORTSELECTION string = "reportselection" // 对象类型:报告精选(重点公司)
  226. CYGX_OBJ_PRODUCTINTERIOR string = "productinterior" // 对象类型:产品内测
  227. CYGX_OBJ_RESEARCHSUMMARY string = "researchsummary" // 对象类型:本周研究汇总
  228. CYGX_OBJ_MINUTESSUMMARY string = "minutessummary" // 对象类型:本周研究汇总
  229. CYGX_OBJ_YANXUANSPECIAL string = "yanxuanspecial" // 对象类型:研选专栏
  230. CYGX_OBJ_ASKSERIEVIDEO string = "askserievideo" // 对象类型:问答系列视频
  231. CYGX_OBJ_FICC_REPORT string = "ficcreport" // 对象类型:FICC研报
  232. CYGX_OBJ_FICC_REPORT_XCX string = "ficcreportxcx" // 对象类型:FICC研报小程序
  233. )
  234. const (
  235. CYGX_YANXUAN_SPECIAL = "研选专栏" //用户阅读数据
  236. CYGX_VIDEO_HISTORY_KEY = "CYGX_VIDEO_HISTORY_WEB" //路演播放Key 小程序、web端
  237. CYGX_YANXUAN_SPECIAL_IMG_PC string = "https://hzstatic.hzinsights.com/cygx/yanxuan_special/special_img_pc.png"
  238. )
  239. const (
  240. ACTIVITY_ZJDHH_V1_MSG string = "该活动为非公开活动,如有专家访谈需求请联系对口销售" // 限制人数为1的专家电话会用户C端报名,提示消息内容
  241. FULLSTARFFED_MSG string = "FullStarffed" // 报名的时候人数已满的状态
  242. )
  243. // 客户状态
  244. const (
  245. COMPANY_STATUS_TRY_OUT = "试用"
  246. COMPANY_STATUS_FOREVER = "永续"
  247. COMPANY_STATUS_FREEZE = "冻结"
  248. COMPANY_STATUS_LOSE = "流失"
  249. COMPANY_STATUS_LOSE_FLAG = "loss"
  250. COMPANY_STATUS_FORMAL = "正式"
  251. COMPANY_STATUS_POTENTIAL = "潜在"
  252. COMPANY_STATUS_CLOSE = "关闭"
  253. )
  254. const (
  255. PRODUCT_INTERIOR_SHARE_IMG string = "https://hzstatic.hzinsights.com/static/images/202402/20240205/wlSvE6xyT1L9ly4doDhxLO14RMwz.png" //产品内测分享图片
  256. YANXUAN_SPECIAL_SHARE_IMG string = "https://hzstatic.hzinsights.com/static/images/202402/20240205/JNxgV260CgccDfKWFFRnip37ulUA.png" //研选专栏分享图片
  257. YANXUAN_ARTICLE_SHARE_IMG string = "https://hzstatic.hzinsights.com/static/images/202402/20240205/Ns2nqEx1piNGB7YthA6AfQOeiJMh.png" //研选报告分享图片
  258. )
  259. // FICC报告
  260. const (
  261. DEFAULT_REPORT_SHARE_BG_IMG = "https://hzstatic.hzinsights.com/static/icon/hzyb/rddp-share-bg.png" // 分享默认背景图
  262. ALIYUN_YBIMG_HOST = "https://hzstatic.hzinsights.com/static/yb_wx/"
  263. )