import config from "@/config";
import http from "@/utils/request";

export default {
    list: {
        url: `${config.API_URL}/mer/prints/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    save: {
        url: `${config.API_URL}/mer/prints/save`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    single: {
        url: `${config.API_URL}/mer/prints/single`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    qrcode: {
        url: `${config.API_URL}/mer/prints/qrcode`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    price: {
        url: `${config.API_URL}/mer/prints/price`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
}