import request from "@/utils/httpRequest";

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

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

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

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