package com.engine.htsc.subcompany.web;

import com.engine.common.util.ParamUtil;
import com.engine.htsc.subcompany.service.impl.LhBatchImportBankCardServiceImpl;
import java.io.InputStream;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import weaver.file.ImageFileManager;

public class LhBatchImportBankCardAction {
    LhBatchImportBankCardServiceImpl getService() {
        return new LhBatchImportBankCardServiceImpl();
    }

    @POST
    @Path("/uploadAndSave")
    @Produces({MediaType.APPLICATION_JSON})
    public Map<String, Object> importExcelAndSaveToDB(@Context HttpServletRequest request,
        @Context HttpServletResponse response) {
        return getService().importExcelAndSaveToDB(request);
    }
}
