import request from "@/utils/httpRequest";
import { PSI_MANAGEMANT as prefix } from "../AppPath";

export default class DishLibraryService {
	list(param) {
		return request({
			url: prefix + "/psi/dish/list",
			method: "get",
			params: param,
		});
	}
	save(param) {
		return request({
			url: prefix + "/psi/dish/save",
			method: "post",
			data: param,
		});
	}
	findById(id) {
		return request({
			url: prefix + "/psi/dish/findById",
			method: "get",
			params: { id: id },
		});
	}
	delete(ids) {
		return request({
			url: prefix + "/psi/dish/delete",
			method: "delete",
			params: { ids: ids },
		});
	}
	changeStatus(id, status) {
		return request({
			url: prefix + "/psi/dish/changeStatus",
			method: "get",
			params: { id: id, status: status },
		});
	}
}
