123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- package utils
- const (
- Md5Key = "Ks@h64WJ#tcVgG8$&WlNfqvLAtMgpxWN"
- )
- const (
- FormatTime = "15:04:05"
- FormatDate = "2006-01-02"
- FormatDateUnSpace = "20060102"
- FormatDateTime = "2006-01-02 15:04:05"
- HlbFormatDateTime = "2006-01-02_15:04:05.999"
- FormatDateTimeUnSpace = "20060102150405"
- PageSize15 = 15
- PageSize5 = 5
- PageSize10 = 10
- PageSize20 = 20
- PageSize30 = 30
- )
- const (
- APPNAME = "弘则-task"
- EmailSendToUsers = "317699326@qq.com;984198890@qq.com;512188925@qq.com"
-
- RefreshEdbInfoEmailSendToUsers = "317699326@qq.com;984198890@qq.com;jhwang@hzinsights.com;lnyan@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 (
- REGISTER_CODE = iota + 1
- LOGIN_CODE
- )
- var (
- TplId = "65692"
- JhAppKey = "4c8504c49dd335e99cfd7b6a3a9e2415"
- )
- const (
- XfSTATUS_FIRST_FRAME = 0
- XfSTATUS_CONTINUE_FRAME = 1
- XfSTATUS_LAST_FRAME = 2
- XfAPPID = "5ed70e9d"
- XfAPIKey = "d580509ca262e9586fb65a7064d5ce77"
- XfAPISecret = "a085720dc55850c720fa5576335f847a"
- XfHostUrl = "wss://tts-api.xfyun.cn/v2/tts"
- XfOrigin = "http://tts-api.xfyun.cn/"
- XfHost = "tts-api.xfyun.cn"
- )
- const (
- EmailSendToHzUsers = "544935339@qq.com;lnyan@hzinsights.com;pdzhao@hzinsights.com;glji@hzinsights.com;tshen@hzinsights.com"
-
- )
- const (
- DATA_SOURCE_THS = iota + 1
- DATA_SOURCE_WIND
- DATA_SOURCE_PB
- DATA_SOURCE_CALCULATE
- DATA_SOURCE_CALCULATE_LJZZY
- DATA_SOURCE_CALCULATE_TBZ
- DATA_SOURCE_CALCULATE_TCZ
- DATA_SOURCE_CALCULATE_NSZYDPJJS
- DATA_SOURCE_MANUAL
- DATA_SOURCE_LZ
- DATA_SOURCE_YS
- DATA_SOURCE_CALCULATE_HBZ
- DATA_SOURCE_CALCULATE_HCZ
- DATA_SOURCE_CALCULATE_BP
- DATA_SOURCE_GL
- DATA_SOURCE_ZZ
- DATA_SOURCE_DL
- DATA_SOURCE_SH
- DATA_SOURCE_CFFEX
- DATA_SOURCE_SHFE
- DATA_SOURCE_GIE
- DATA_SOURCE_CALCULATE_TIME_SHIFT
- DATA_SOURCE_CALCULATE_ZJPJ
- DATA_SOURCE_CALCULATE_LJZTBPJ
- DATA_SOURCE_LT
- DATA_SOURCE_COAL
- DATA_SOURCE_PYTHON
- DATA_SOURCE_PB_FINANCE
- DATA_SOURCE_GOOGLE_TRAVEL
- DATA_SOURCE_PREDICT
- DATA_SOURCE_PREDICT_CALCULATE
- DATA_SOURCE_PREDICT_CALCULATE_TBZ
- DATA_SOURCE_PREDICT_CALCULATE_TCZ
- DATA_SOURCE_MYSTEEL_CHEMICAL
- DATA_SOURCE_CALCULATE_CJJX
- DATA_SOURCE_EIA_STEO
- DATA_SOURCE_CALCULATE_NHCC
- DATA_SOURCE_COM_TRADE
- DATA_SOURCE_PREDICT_CALCULATE_NSZYDPJJS
- DATA_SOURCE_CALCULATE_ADJUST
- DATA_SOURCE_SCI
- DATA_SOURCE_PREDICT_CALCULATE_LJZZY
- DATA_SOURCE_PREDICT_CALCULATE_HBZ
- DATA_SOURCE_PREDICT_CALCULATE_HCZ
- DATA_SOURCE_PREDICT_CALCULATE_BP
- DATA_SOURCE_PREDICT_CALCULATE_TIME_SHIFT
- DATA_SOURCE_PREDICT_CALCULATE_ZJPJ
- DATA_SOURCE_PREDICT_CALCULATE_LJZTBPJ
- DATA_SOURCE_PREDICT_CALCULATE_CJJX
- DATA_SOURCE_PREDICT_CALCULATE_NHCC
- DATA_SOURCE_CALCULATE_JP
- DATA_SOURCE_CALCULATE_NH
- DATA_SOURCE_CALCULATE_KSZS
- DATA_SOURCE_PREDICT_CALCULATE_JP
- DATA_SOURCE_PREDICT_CALCULATE_NH
- DATA_SOURCE_PREDICT_CALCULATE_KSZS
- DATA_SOURCE_BAIINFO
- )
- const (
- Hz_Data_Url = "http://datawind.hzinsights.com:8040/"
- Hz_Data_PB_Url = "http://datapb.hzinsights.com:8040/"
- Hz_Data_LT_Url = "http://dataek.hzinsights.com:8040/"
- )
- var Hz_Data_WIND_Url_List = []string{"http://datawind.hzinsights.com:8040/", "http://datawind2.hzinsights.com:8040/"}
- const (
- DATA_REFRESH = 7
- DATA_END_DATE_LIMIT = 4
- )
- var (
- Hz_Server_Data_Url string
- )
- var (
- APP_EDB_LIB_NAME_EN = "hongze_edb_lib"
- EDB_LIB_Md5_KEY = "GuRaB6dY1bXOJcwG"
- )
- var (
- REPORT_TYPE_DAY = "day"
- REPORT_TYPE_WEEK = "week"
- REPORT_TYPE_TWO_WEEK = "two_week"
- REPORT_TYPE_MONTH = "month"
- REPORT_TYPE_OTHER = "other"
- )
- const (
- SendTemplateMsgAuthorization = "dc855fce962a639faa779cbdd4cd332f"
- )
- const (
- TEMPLATE_MSG_YB_VOICE_BROADCAST = 20
- )
|