@xmobitea/gn-server
Version:
GearN Server by XmobiTea (Pro)
21 lines (20 loc) • 643 B
TypeScript
interface IPDetail {
countryCode: string;
countryName: string;
regionCode: string;
regionName: string;
city: string;
zipCode: string;
latitude: number;
longitude: number;
}
type StatusCode = "Ok" | "IPInvalid" | "IPNotFound" | "CantQuery";
export interface IPDetailResponse {
detail?: IPDetail;
statusCode: StatusCode;
}
export interface ICountryIPDetailService {
getIPDetailResponse(ipAddress: string): Promise<IPDetailResponse>;
updateUserIP(userId: string, ip: string, oldCountryCode: string, oldRegionCode: string, newCountryCode: string, newRegionCode: string): Promise<void>;
}
export {};