package cn.wisenergy.service.app;

import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.app.CustomerService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

public interface CustomerServiceService {
    /**
     * 获取专属客服
     * @return
     */
    CustomerService getServiceByRand(String userId);

    void setWeChatQRImg(String wechatId, String file);

    /**
     * 专属客服二维码图片上传
     * @param file
     * @param request
     * @param wechatId
     * @return
     */
    R uploadImage(MultipartFile file, HttpServletRequest request, String wechatId) throws IOException;
}
