import { QueryPageResult } from '@oinone/kunlun-engine'; import { SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta'; import { gql, HttpClient } from '@oinone/kunlun-request'; import type { ResourceCountry } from '../../typing'; const http = HttpClient.getInstance(); export class PhoneCodeQueryService { public static async fetchPhoneCodeList(): Promise { const queryGql = gql` { resourceCountryQuery { queryPhoneCodes { id code name phoneCode } } } `; const result = await http.query(SYSTEM_MODULE_NAME.RESOURCE, queryGql); return result.data.resourceCountryQuery.queryPhoneCodes; } }