package types

const QueryCacheKey = "query:%d:%s"
const AgentVipCacheKey = "agentVip:%d:%s"

// UserDisableCacheKey 用户封禁状态缓存，value 为 "0" 或 "1"，TTL 5 分钟，避免每次请求查库
const UserDisableCacheKey = "user:disable:%d"
const UserDisableCacheTTL = 300 // 秒

type QueryCache struct {
	Name    string `json:"name"`
	IDCard  string `json:"id_card"`
	Mobile  string `json:"mobile"`
	Product string `json:"product_id"`
}
type QueryCacheLoad struct {
	Product         string `json:"product_en"`
	Params          string `json:"params"`
	AgentIdentifier string `json:"agent_dentifier"`
}

type AgentVipCache struct {
	Type string `json:"type"`
}
