Retrofit2 使用@Multipart上传文件

一、上传单个文件 1.1定义接口git @Multipart @POST("uploadImgs") Call<HttpBaseResult<List<PicResultData>>> uploadSingleImg(@Part("description") RequestBody description, @Part MultipartBody.Part file); 1.2接口
相关文章
相关标签/搜索