diff --git a/app/src/main/java/com/xh/android/MiBaseUrlProvider.kt b/app/src/main/java/com/xh/android/MiBaseUrlProvider.kt new file mode 100644 index 0000000..90b2dc4 --- /dev/null +++ b/app/src/main/java/com/xh/android/MiBaseUrlProvider.kt @@ -0,0 +1,11 @@ +package com.xh.android + +import com.h.android.http.UrlProvider + +/** + *2021/1/22 + *@author zhangxiaohui + *@describe + */ +interface MiBaseUrlProvider : UrlProvider { +} \ No newline at end of file diff --git a/app/src/main/java/com/xh/android/TestApiService.kt b/app/src/main/java/com/xh/android/TestApiService.kt new file mode 100644 index 0000000..16f26ff --- /dev/null +++ b/app/src/main/java/com/xh/android/TestApiService.kt @@ -0,0 +1,12 @@ +package com.xh.android + +import com.h.android.http.interceptor.BaseUrlProvider + +/** + *2021/1/22 + *@author zhangxiaohui + *@describe + */ +@BaseUrlProvider(MiBaseUrlProvider::class) +interface TestApiService { +} \ No newline at end of file diff --git a/handroid/src/main/java/com/h/android/http/BaseUrlProvider.java b/handroid/src/main/java/com/h/android/http/BaseUrlProvider.java deleted file mode 100644 index 18d4eb9..0000000 --- a/handroid/src/main/java/com/h/android/http/BaseUrlProvider.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.h.android.http; - -import java.lang.annotation.ElementType; - -/** - * 2020/11/20 - * - * @author zhangxiaohui - * @describe - */ -@java.lang.annotation.Target({ElementType.TYPE}) -@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) -@java.lang.annotation.Documented -@java.lang.annotation.Inherited -public @interface BaseUrlProvider { - - Class value(); -}