import request from "@/utils/request"; /** * 增加打印机 * @returns */ export function tbPrintMachine(data, method = "post") { return request({ url: "/api/tbPrintMachine", method: method, data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 获取应用中心列表 * @returns */ export function appCenterGet() { return request({ url: "/api/appCenter", method: "get" }); } /** * 新增/编辑酒品 * @returns */ export function tbShopStorageGood(data, method = "post") { return request({ url: "/api/tbShopStorageGood", method: method, data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 查询酒品列表 * @returns */ export function tbShopStorageGoodlist(data) { return request({ url: "/api/tbShopStorageGood/list", method: "post", data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 新增存酒 * @returns */ export function storageWin(data) { return request({ url: "/api/storage", method: "post", data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 查询存酒列表 * @returns */ export function storageList(data) { return request({ url: "/api/storage/list", method: "post", data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 存取酒 * @returns */ export function storagePut(data) { return request({ url: "/api/storage", method: "put", data }); } /** * 查询存取酒记录 * @returns */ export function recordList(params) { return request({ url: "/api/storage/recordList", method: "get", params }); } /** * 存酒统计 * @returns */ export function countRecord(data) { return request({ url: "/api/storage/countRecord", method: "post", data: { shopId: localStorage.getItem("shopId"), ...data } }); } /** * 广告列表 * @returns */ export function adget(params) { return request({ url: "/api/ad", method: "get", params }); } /** * 广告新增单位 * @returns */ export function adpost(data) { return request({ url: `/api/ad`, method: "post", data }); } /** * 广告编辑详情 * @returns */ export function adput(data) { return request({ url: '/api/ad', method: 'put', data }) } /** * 广告删除商品 * @returns */ export function addelete(params) { return request({ url: "/api/ad/" + params, method: "DELETE", }); }