123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- package utils
- 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"
- FormatDateTimeMinute = "2006-01-02 15:04"
- FormatDateTimeUnSpace = "20060102150405"
- FormatDateTimeUnSpaceV2 = "20060102 15:04:05"
- FormatMonthDateUnSpace = "200601"
- PageSize15 = 15
- PageSize5 = 5
- PageSize10 = 10
- PageSize20 = 20
- PageSize30 = 30
- )
- 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 (
- 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
- DATA_SOURCE_STOCK_PLANT
- DATA_SOURCE_CALCULATE_CORRELATION
- DATA_SOURCE_NATIONAL_STATISTICS
- DATA_SOURCE_CALCULATE_LJZZJ
- DATA_SOURCE_CALCULATE_LJZ
- DATA_SOURCE_CALCULATE_LJZNCZJ
- DATA_SOURCE_PREDICT_CALCULATE_LJZZJ
- DATA_SOURCE_PREDICT_CALCULATE_LJZ
- DATA_SOURCE_PREDICT_CALCULATE_LJZNCZJ
- DATA_SOURCE_CALCULATE_STANDARD_DEVIATION
- DATA_SOURCE_CALCULATE_PERCENTILE
- DATA_SOURCE_PREDICT_CALCULATE_STANDARD_DEVIATION
- DATA_SOURCE_PREDICT_CALCULATE_PERCENTILE
- DATA_SOURCE_FUBAO
- DATA_SOURCE_CALCULATE_ZSXY
- DATA_SOURCE_PREDICT_CALCULATE_ZSXY
- DATA_SOURCE_CALCULATE_ZDYFX
- DATA_SOURCE_CALCULATE_RJZ
- DATA_SOURCE_YONYI = 76
- DATA_SOURCE_FENWEI = 77
- DATA_SOURCE_GFEX = 78
- DATA_SOURCE_ICPI = 79
- DATA_SOURCE_MTJH = 80
- DATA_SOURCE_BLOOMBERG = 83
- DATA_SOURCE_BUSINESS = 84
- DATA_SOURCE_SCI99 = 85
- DATA_SOURCE_CCF = 86
- DATA_SOURCE_CALCULATE_RANGEANLYSIS = 87
- DATA_SOURCE_SCI_HQ = 88
- DATA_SOURCE_OILCHEM = 89
- DATA_SOURCE_PREDICT_CALCULATE_RANGEANLYSIS = 90
- DATA_SOURCE_LY = 91
- DATA_SOURCE_TRADE_ANALYSIS = 92
- DATA_SOURCE_HISUGAR = 93
- DATA_SOURCE_USDA_FAS = 96
- DATA_SOURCE_RZD = 97
- DATA_SOURCE_CALCULATE_STL = 98
- DATA_SOURCE_AI_PREDICT_MODEL = 103
- DATA_SOURCE_GPR_RISK = 102
- )
- const (
- DATA_REFRESH = 7
- DATA_END_DATE_LIMIT = 4
- )
- const (
- SendTemplateMsgAuthorization = "dc855fce962a639faa779cbdd4cd332f"
- )
- const (
- TEMPLATE_MSG_YB_VOICE_BROADCAST = 20
- )
- var (
- REPORT_TYPE_DAY = "day"
- REPORT_TYPE_WEEK = "week"
- REPORT_TYPE_TWO_WEEK = "two_week"
- REPORT_TYPE_MONTH = "month"
- REPORT_TYPE_OTHER = "other"
- )
- const (
- TEMPLATE_MSG_REPORT = iota + 1
- )
- const (
- CACHE_CREATE_REPORT_IMGPDF_QUEUE = "eta_report:report_img_pdf_queue"
- )
- const (
- BusinessCodeSandbox = "E2023080700"
- BusinessCodeRelease = "E2023080900"
- BusinessCodeDebug = "E2023080901"
- BusinessCodeJiaYue = "E2023092201"
- BusinessCodeZhongJi = "E2023110300"
- )
- const (
- DATA_SUB_SOURCE_EDB = iota
- DATA_SUB_SOURCE_DATE
- DATA_SUB_SOURCE_HIGH_FREQUENCY
- )
- const CACHE_EDB_UPDATE_LOG_ID = "eta:edb_update_log:id"
- const (
- EDB_RELATION_CHART = 1
- EDB_RELATION_SANDBOX = 2
- EDB_RELATION_CALENDAR = 3
- EDB_RELATION_TABLE = 4
- EDB_RELATION_PREDICT_EDB = 5
- )
- const (
- CHART_SOURCE_DEFAULT = 1
- CHART_SOURCE_FUTURE_GOOD = 2
- CHART_SOURCE_CORRELATION = 3
- CHART_SOURCE_ROLLING_CORRELATION = 4
- CHART_SOURCE_FUTURE_GOOD_PROFIT = 5
- CHART_SOURCE_LINE_EQUATION = 6
- CHART_SOURCE_LINE_FEATURE_STANDARD_DEVIATION = 7
- CHART_SOURCE_LINE_FEATURE_PERCENTILE = 8
- CHART_SOURCE_LINE_FEATURE_FREQUENCY = 9
- CHART_SOURCE_CROSS_HEDGING = 10
- CHART_SOURCE_BALANCE_EXCEL = 11
- )
- const (
- EXCEL_DEFAULT = 1
- TIME_TABLE = 2
- MIXED_TABLE = 3
- CUSTOM_ANALYSIS_TABLE = 4
- BALANCE_TABLE = 5
- TRADE_ANALYSIS_TABLE = 6
- TRADE_ANALYSIS_CORRELATION_TABLE = 7
- )
|