From f980c833f832c42094cf78005aab5d0eb014c8ec Mon Sep 17 00:00:00 2001
From: zhujie <leon.zhu@cloudroam.com.cn>
Date: 星期五, 18 四月 2025 15:23:58 +0800
Subject: [PATCH] 邀请有礼
---
app/src/main/java/com/example/firstapp/database/service/ApiService.kt | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/com/example/firstapp/database/service/ApiService.kt b/app/src/main/java/com/example/firstapp/database/service/ApiService.kt
index 989348b..68a299b 100644
--- a/app/src/main/java/com/example/firstapp/database/service/ApiService.kt
+++ b/app/src/main/java/com/example/firstapp/database/service/ApiService.kt
@@ -14,6 +14,8 @@
import com.example.firstapp.database.response.LoginResponse
import com.example.firstapp.database.response.SecurityResponse
import com.example.firstapp.database.response.UserInfo
+import com.example.firstapp.entity.InvitationRecord
+import com.example.firstapp.entity.InvitationRecords
import com.example.firstapp.model.CategoryConfig
import com.example.firstapp.model.CategoryConfigSync
import com.example.firstapp.network.AuthInterceptor
@@ -81,13 +83,16 @@
@POST("api/categoryConfig/saveOrUpdate/")
suspend fun saveUserCategories(@Body categoryConfigSync: CategoryConfigSync)
+ @GET("api/customer/center/invitereward")
+ suspend fun getInvitereward(): ApiResponse<InvitationRecords>
+
}
// 创建Retrofit实例(单例)
object RetrofitClient{
- // private const val BASE_URL ="http://192.168.1.213:8080/flower/"
- private const val BASE_URL ="http://14.103.144.28:8080/flower/"
+ private const val BASE_URL ="http://192.168.1.127:8080/flower/"
+ //private const val BASE_URL ="http://14.103.144.28:8080/flower/"
private lateinit var appContext: Context
--
Gitblit v1.9.3