package com.zhaohaoting.framework.requset;

/**
 * author：Created by zhaohaoting on 2018/11/21
 * email：526309416@qq.com
 * desc：图片上传
 */
//public class UpLoadPictureAsyncTask1 extends RxDataAsyncTask<String, ResultEntity<String>> {
//    private String path;
//
//    public UpLoadPictureAsyncTask1(String path) {
//        this.path = path;
//    }
//
//    @Override
//    protected Flowable<ResultEntity<String>> loadDataAsyncTask() {
//        MultipartBody.Builder builder = new MultipartBody.Builder();
//        RequestBody imageBody = RequestBody.create(MediaType.parse(MimeUtils.getFileMimeType(new File(path))), new File(path));
//        builder.addFormDataPart("file", new File(path).getName(), imageBody);
//        builder.addFormDataPart("uid", AppConfig.getUserId());
//        return RetrofitHelper.api().uploadPic(builder.build().parts());
//    }
//}
