All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.binarywang.wx.miniapp.api.WxMaShopImgService Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.api;

import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadCustomizeResult;
import me.chanjar.weixin.common.error.WxErrorException;

import java.io.File;

/**
 * 小程序交易组件-接入商品前必需接口
 *
 * @author liming1019
 */
public interface WxMaShopImgService {
  /**
   * 上传图片
   *
   * @param file
   * @return WxMinishopImageUploadCustomizeResult
   * @throws WxErrorException
   */
  WxMinishopImageUploadCustomizeResult uploadImg(File file) throws WxErrorException;

  /**
   * 上传图片,带respType参数
   *
   * @param file
   * @param respType
   * @return WxMinishopImageUploadCustomizeResult
   * @throws WxErrorException
   */
  WxMinishopImageUploadCustomizeResult uploadImg(File file, String respType) throws WxErrorException;

  /**
   * 上传图片链接,带respType参数
   *
   * @param imgUrl
   * @param respType
   * @return WxMinishopImageUploadCustomizeResult
   * @throws WxErrorException
   */
  WxMinishopImageUploadCustomizeResult uploadImg(String imgUrl, String respType) throws WxErrorException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy