1.2
tj
2025-04-11 27bbd0435881e408f267c99e6a253d2e17873bcc
app/src/main/java/com/example/firstapp/database/service/ApiService.kt
@@ -6,6 +6,7 @@
import com.example.firstapp.database.request.ProductOrdersRequest
import com.example.firstapp.database.request.SmsLoginRequest
import com.example.firstapp.database.request.SmsSendRequest
import com.example.firstapp.database.response.AccountCloseResponse
import com.example.firstapp.database.response.AlipayOrderInfoResponse
import com.example.firstapp.database.response.ContentResponse
import com.example.firstapp.database.response.DictResponse
@@ -68,6 +69,8 @@
        @Part avatar: MultipartBody.Part?
    ): ApiResponse<Unit>
    @POST("api/account/close")
    suspend fun closeAccount(): AccountCloseResponse
    fun getUserCategories(currentUserId: String): List<CategoryConfig>
@@ -78,8 +81,8 @@
// 创建Retrofit实例(单例)
object RetrofitClient{
    private const val BASE_URL ="http://192.168.1.198:8080/flower/"
//    private const val BASE_URL ="http://14.103.144.28:8080/flower/"
 //   private const val BASE_URL ="http://192.168.1.213:8080/flower/"
    private const val BASE_URL ="http://14.103.144.28:8080/flower/"
    // 创建OkHttpClient,配置拦截器和超时时间