import request from "@/utils/httpRequest";

export default {
	list: function (params) {
		return request({
			url: "/wdt/merchantCompany/list",
			method: "get",
			params: params,
		});
	},
	queryById: function (id) {
		return request({
			url: "/wdt/merchantCompany/queryById",
			method: "get",
			params: { id: id },
		});
	},
	save: function (inputForm) {
		return request({
			url: "/wdt/merchantCompany/save",
			method: "post",
			data: inputForm,
		});
	},
	delete: function (ids) {
		return request({
			url: "/wdt/merchantCompany/delete",
			method: "delete",
			params: { ids: ids },
		});
	},

	exportTemplate: function () {
		return request({
			url: "/wdt/merchantCompany/import/template",
			method: "get",
			responseType: "blob",
		});
	},

	exportExcel: function (params) {
		return request({
			url: "/wdt/merchantCompany/export",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},

	importExcel: function (data) {
		return request({
			url: "/wdt/merchantCompany/import",
			method: "post",
			data: data,
		});
	},
};
