import {
	request
} from "@/utils/request";

export default {
	list(data) {
		return request({
			url: "/admin/goods/goodsList",
			method: "POST",
			data,
		});
	},

	goodsEditAttribute(data) {
		return request({
			url: "/admin/goods/goodsEditAttribute",
			method: "POST",
			data,
		});
	},

	classify: {
		list(data) {
			return request({
				url: "/admin/classify/list",
				method: "POST",
				data,
			});
		},

		createItem(data) {
			return request({
				url: "/admin/classify/createItem",
				method: "POST",
				data,
			});
		},

	},

	freightRules(data) {
		return request({
			url: "/admin/freightRules/list",
			method: "POST",
			data,
		});
	},

	goodsItem(data) {
		return request({
			url: "/admin/goods/goodsItem",
			method: "POST",
			data,
		});
	},

	goodsEdit(data) {
		return request({
			url: "/admin/goods/goodsEdit",
			method: "POST",
			data,
		});
	},




};