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

export default {
    list: {
        url: `${config.API_URL}/order/life/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    refund: {
        url: `${config.API_URL}/order/life/refund`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    sms: {
        url: `${config.API_URL}/order/life/sms`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    del: {
        url: `${config.API_URL}/order/life/send`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    export: {
        url: `${config.API_URL}/order/life/export`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
}