import { RedisGroup } from '@/common/enum'; declare global { interface QueryListResult { page: number; pageSize: number; count: number; list: any[]; } interface IRedisGetOptions { group?: RedisGroup; key: string; } interface IRedisSetOptions { group?: RedisGroup; key: string; value: unknown; ttl?: number; } interface IRedisDelOptions { group?: RedisGroup; key: string; } interface IRedisMgetOptions { group?: RedisGroup; keys: string[]; } interface IRedisKeysOptions { group?: RedisGroup; pattern: string; } interface IRedisMsetOptions { group?: RedisGroup; data: { key: string; value: string }[]; ttl?: number; } interface IRedisMdelOptions { group?: RedisGroup; keys: string[]; } interface IRedisService { get(args: IRedisGetOptions): Promise; set(args: IRedisSetOptions): Promise; del(args: IRedisDelOptions): Promise; mget(args: IRedisMgetOptions): Promise; keys(args: IRedisKeysOptions): Promise; mset(args: IRedisMsetOptions): Promise; mdel(args: IRedisMdelOptions): Promise; } }