auth to server-V46

This commit is contained in:
Eric85710 2026-05-04 06:43:49 +08:00
parent 956cf29376
commit 36aa2835df

View file

@ -1,12 +1,15 @@
package com.example.login_v3.data.api
import com.example.login_v3.data.api.api_class.*
import okhttp3.MultipartBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Multipart
import retrofit2.http.PATCH
import retrofit2.http.POST
import retrofit2.http.Part
interface TecnologiaApi {
@ -30,6 +33,12 @@ interface TecnologiaApi {
@Body request: UserProfileUpdateRequest
): Response<Unit>
@Multipart
@POST("api/me/avatar")
suspend fun uploadAvatar(
@Part avatar: MultipartBody.Part
): Response<Unit>
// 發送好友請求
@POST("api/friends/request")
suspend fun sendFriendRequest(