From 62adc27a09abe8f0be1b765e3d0b177345b6f075 Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 24 Feb 2023 20:30:48 +0800 Subject: [PATCH] =?UTF-8?q?uts-tencentgeolocation=20=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20interface.uts=20=E5=AE=9A=E4=B9=89=20type?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E8=A7=84=E9=81=BF=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utssdk/app-ios/index.uts | 19 +------------------ .../utssdk/interface.uts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 uni_modules/uts-tencentgeolocation/utssdk/interface.uts diff --git a/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts b/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts index 312ea7c..c7566dd 100644 --- a/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts +++ b/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts @@ -1,6 +1,7 @@ import { CLLocationManager, CLAuthorizationStatus } from "CoreLocation" import { TencentLBSLocationManager, TencentLBSLocation, TencentLBSRequestLevel, TencentLBSLocationManagerDelegate } from "TencentLBS" import { NSError, Bundle } from "Foundation" +import { LocationOptions, LocationResponse } from "../interface.uts" /** * 判断当前是否是自定义基座 @@ -10,24 +11,6 @@ export function checkHasIntegration():boolean{ return true } -/** - * 定位请求参数封装 - */ -type LocationOptions = { - geocode: boolean, - success: (response: LocationResponse) => void, - fail: (msg: string) => void -}; - -/** - * 定位返回结果封装 - */ -type LocationResponse = { - name: string, - address: string, - latitude: number, - longitude: number -} /** * 定位 LBSLocation 类,封装定位相关方法 diff --git a/uni_modules/uts-tencentgeolocation/utssdk/interface.uts b/uni_modules/uts-tencentgeolocation/utssdk/interface.uts new file mode 100644 index 0000000..b56f66f --- /dev/null +++ b/uni_modules/uts-tencentgeolocation/utssdk/interface.uts @@ -0,0 +1,18 @@ +/** + * 定位请求参数封装 + */ +export type LocationOptions = { + geocode: boolean, + success: (response: LocationResponse) => void, + fail: (msg: string) => void +}; + +/** + * 定位返回结果封装 + */ +export type LocationResponse = { + name: string, + address: string, + latitude: number, + longitude: number +} -- GitLab