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);
        },
    },
    log: {
        url: `${config.API_URL}/merchant/order/log`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    export: {
        url: `${config.API_URL}/merchant/order/export`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    batchState: {
        url: `${config.API_URL}/merchant/order/batch`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    agree: {
        url: `${config.API_URL}/merchant/order/agree`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    refuse: {
        url: `${config.API_URL}/merchant/order/refuse`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    end: {
        url: `${config.API_URL}/merchant/order/end`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    express: {
        url: `${config.API_URL}/merchant/order/express`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
}