export type HttpUsedSummary = { todayShortPackIpUsed: number shortPackIpUsed: number } export type HttpUsedLogItem = { packType: number userIp: string ip: string port: number createTime: string } export type HttpUsedLogQuery = { page: number limit: number packType: number } export const HTTP_USE_PACK_TYPE_LABELS: Record = { 12: "储值套餐", 21: "短效包天套餐", 22: "短效包量套餐", } export const HTTP_USE_PACK_TYPE_OPTIONS = [21, 22] export function formatPackType(packType: number): string { return HTTP_USE_PACK_TYPE_LABELS[packType] ?? String(packType) }