添加菜品采集
This commit is contained in:
@@ -8,10 +8,15 @@ import com.sw.dualscreen.model.response.EquipmentInfo
|
||||
import com.sw.dualscreen.model.response.FoodInfo
|
||||
import com.sw.dualscreen.model.response.UserFaceInfo
|
||||
import com.sw.dualscreen.model.response.UserNutritionData
|
||||
import okhttp3.MultipartBody
|
||||
import okhttp3.RequestBody
|
||||
import retrofit2.http.Body
|
||||
import retrofit2.http.GET
|
||||
import retrofit2.http.Header
|
||||
import retrofit2.http.Multipart
|
||||
import retrofit2.http.POST
|
||||
import retrofit2.http.Part
|
||||
import retrofit2.http.PartMap
|
||||
import retrofit2.http.Query
|
||||
import retrofit2.http.Url
|
||||
|
||||
@@ -109,4 +114,17 @@ interface ApiService {
|
||||
@Query("restId") restId: String,
|
||||
@Query("foodNames") foodName: String,
|
||||
): ApiResponse<List<FoodInfo>>
|
||||
|
||||
|
||||
/**
|
||||
* 提交采集图片数据
|
||||
*/
|
||||
@Multipart
|
||||
@POST
|
||||
suspend fun postImageData(
|
||||
@Url url: String = "http://192.168.1.201:14801/terminal/neglect/dishCollectionVectorData/add",
|
||||
@PartMap params: Map<String, @JvmSuppressWildcards RequestBody>,
|
||||
@Part image: MultipartBody.Part?
|
||||
): ApiResponse<String>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user