45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
package config
|
|
|
|
// Redis
|
|
|
|
const (
|
|
RedisKeyForTaskQueue string = "task_queue"
|
|
RedisKeyForTaskQueueBody string = "task_queue_body"
|
|
|
|
RedisKeyForAccountAdmin string = "account:admin"
|
|
RedisKeyForAccountEnterprise string = "account:enterprise"
|
|
RedisKeyForTenant string = "tenant"
|
|
RedisKeyForTenantKeys string = "tenant:keys"
|
|
)
|
|
|
|
const (
|
|
TokenForUID string = "uid"
|
|
TokenForSession string = "session"
|
|
)
|
|
|
|
const (
|
|
APIRequestToken string = "x-token"
|
|
)
|
|
|
|
const (
|
|
ContentForTenantID string = "tenant_id"
|
|
)
|
|
|
|
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"
|
|
EventForConsumeProduce string = "consume_produce"
|
|
EventForActivityJoinProduce string = "activity_join_produce"
|
|
EventForVisitProduce string = "visit_produce"
|
|
)
|
|
|
|
const (
|
|
DefaultChinaAreaCode string = "86"
|
|
)
|