package com.iformall.service;

import com.amazonaws.services.s3.model.ObjectMetadata;
import com.iformall.common.ResultData;
import com.iformall.exception.MallinkException;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.Map;

@Service
public interface QrCodeService {

    void downQrCode(String tenantId,HttpServletRequest request, HttpServletResponse response, @RequestBody Map<String, Object> params) throws MallinkException;

    ResultData exportQrcode(HttpServletRequest request, HttpServletResponse response,
                            String tenantId, int type, String pageUrl, String sceneParam,
                            int withText, String text1, String text2,
                            String name);
    ResultData uploadQrcode(String tenantId, int type, String pageUrl, String sceneParam,
                            int withText, String text1, String text2,
                            String name);
    ResultData awsUpload(InputStream inputStream, ObjectMetadata metadata, String fileName, String tenantId);
}
