12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package utils
- import "io/fs"
- const (
- UserLoginSalt = "MiQM9YUdf89T2uIH"
- DesKeySalt = "MxuqSoUrTAmyRd9fb0TtlrPk"
- )
- const (
- CACHE_ACCESS_TOKEN_LOGIN = "pc_eta_min_crm_ht:login:"
- CACHE_ACCESS_TOKEN_LOGIN_NO_TRUST = "pc_eta_min_crm:login_ht:no_trust:"
- )
- 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 (
- FormatTime = "15:04:05"
- FormatTimeHm = "15:04"
- FormatDate = "2006-01-02"
- FormatDateUnSpace = "20060102"
- FormatDateTime = "2006-01-02 15:04:05"
- HlbFormatDateTime = "2006-01-02_15:04:05.999"
- FormatDateTimeUnSpace = "20060102150405"
- FormatShortDateTimeUnSpace = "060102150405"
- EmptyDateTimeStr = "0000-00-00 00:00:00"
- EmptyDateStr = "0000-00-00"
- FormatMonthDayUnSpace = "0102"
- FormatMonthDay = "01-02"
- FormatYearMonthDate = "2006-01"
- FormatYearDate = "2006"
- PageSize15 = 15
- PageSize5 = 5
- PageSize10 = 10
- PageSize20 = 20
- PageSize30 = 30
- PageSize50 = 50
- PageSize100 = 100
- MaxDepartmentLevel = 3
- )
- const DIR_MOD fs.FileMode = 0766
- const (
- UserStatusNo = 0
- UserStatusPotential = 1
- UserStatusFormal = 2
- )
- const (
- ReportStatusUp = 1
- ReportStatusDown = 2
- )
- const (
- STORAGESOURCE_OSS_NAME = "oss"
- STORAGESOURCE_MINIO_NAME = "minio"
- )
- var NoAuthApiMap = map[string]bool{
- "/role/menu/buttons": true,
- "/role/menu/list": true,
- "/department/list": true,
- "/sys_user/reset_my_pass": true,
- "/chart_permission/list": true,
- "/user/change_list": true,
- "/classify/list": true,
- "/seller/list": true,
- "/user/readMessage": true,
- "/user/readMessages": true,
- "/user/message": true,
- "/sys/config": true,
- "/user/optional": true,
- }
- var APPNAME string = "海通CRM"
|