2021-09-28 11:47:19 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
// Redis
|
|
|
|
|
|
|
|
const (
|
|
|
|
RedisKeyForTaskQueue string = "task_queue"
|
|
|
|
RedisKeyForTaskQueueBody string = "task_queue_body"
|
|
|
|
|
2022-01-05 11:29:27 +08:00
|
|
|
RedisKeyForAccountAdmin string = "account:admin"
|
2022-01-04 11:59:58 +08:00
|
|
|
RedisKeyForAccountEnterprise string = "account:enterprise"
|
2022-01-05 16:09:55 +08:00
|
|
|
RedisKeyForTenant string = "tenant"
|
2022-01-04 11:59:58 +08:00
|
|
|
RedisKeyForTenantKeys string = "tenant:keys"
|
2021-09-28 11:47:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
TokenForUID string = "uid"
|
|
|
|
TokenForSession string = "session"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
APIRequestToken string = "x-token"
|
|
|
|
)
|
|
|
|
|
2021-10-13 14:35:24 +08:00
|
|
|
const (
|
2022-01-05 11:29:27 +08:00
|
|
|
ContentForTenantID string = "tenant_id"
|
2021-10-13 14:35:24 +08:00
|
|
|
)
|
|
|
|
|
2021-09-28 11:47:19 +08:00
|
|
|
const (
|
|
|
|
EventForRedisHashProduce string = "redis_hash_produce"
|
|
|
|
EventForRedisHashDestroy string = "redis_hash_destroy"
|
|
|
|
|
|
|
|
EventForRedisListProduce string = "redis_list_produce"
|
|
|
|
EventForRedisListDestroy string = "redis_list_destroy"
|
|
|
|
|
|
|
|
EventForAccountLoginProduce string = "account_login_produce"
|
|
|
|
EventForSysLogProduce string = "sys_log_produce"
|
2021-12-01 11:31:55 +08:00
|
|
|
EventForConsumeProduce string = "consume_produce"
|
2021-12-16 15:07:53 +08:00
|
|
|
EventForActivityJoinProduce string = "activity_join_produce"
|
2022-01-20 18:25:31 +08:00
|
|
|
EventForVisitProduce string = "visit_produce"
|
2021-09-28 11:47:19 +08:00
|
|
|
)
|
2021-10-13 14:35:24 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
DefaultChinaAreaCode string = "86"
|
|
|
|
)
|