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

export default {
    list: {
        url: `${config.API_URL}/merchant/order/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    detail: {
        url: `${config.API_URL}/merchant/order/detail`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    city: {
        url: `${config.API_URL}/merchant/order/city`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    done: {
        url: `${config.API_URL}/merchant/order/done`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    address: {
        url: `${config.API_URL}/merchant/order/address`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    save: {
        url: `${config.API_URL}/merchant/order/save`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
}