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

export default {
    list: {
        url: `${config.API_URL}/merchant/plan/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    detail: {
        url: `${config.API_URL}/merchant/plan/detail`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    close: {
        url: `${config.API_URL}/merchant/plan/close`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    save: {
        url: `${config.API_URL}/merchant/plan/save`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    goods: {
        url: `${config.API_URL}/merchant/plan/goods`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    update: {
        url: `${config.API_URL}/merchant/plan/update`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    del: {
        url: `${config.API_URL}/merchant/plan/del`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
}