geoip: use context.service

This commit is contained in:
undefined committed 2022-10-04 23:54:25 +08:00
1 parent 63c9c00d1d
commit d94e3e650a
6 files changed
+65 -64

No files matched your search

+11 -12
View File
@@ -671,18 +671,17 @@ export interface ProblemSearchOptions {
export type ProblemSearch = (domainId: string, q: string, options?: ProblemSearchOptions) => Promise<ProblemSearchResponse>;
export interface Lib extends Record<string, any> {
difficulty: typeof import('./lib/difficulty'),
buildContent: typeof import('./lib/content').buildContent,
i18n: typeof import('./lib/i18n'),
mail: typeof import('./lib/mail'),
paginate: typeof import('./lib/paginate'),
rank: typeof import('./lib/rank'),
rating: typeof import('./lib/rating'),
testdataConfig: typeof import('./lib/testdataConfig'),
useragent: typeof import('./lib/useragent'),
validator: typeof import('./lib/validator'),
template?: any,
geoip?: GeoIP,
difficulty: typeof import('./lib/difficulty');
buildContent: typeof import('./lib/content').buildContent;
i18n: typeof import('./lib/i18n');
mail: typeof import('./lib/mail');
paginate: typeof import('./lib/paginate');
rank: typeof import('./lib/rank');
rating: typeof import('./lib/rating');
testdataConfig: typeof import('./lib/testdataConfig');
useragent: typeof import('./lib/useragent');
validator: typeof import('./lib/validator');
template?: any;
problemSearch: ProblemSearch;
}