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

export default {
    list: {
        url: `${config.API_URL}/service/chat/list`,
        name: "-",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    msg: {
        url: `${config.API_URL}/service/chat/msg`,
        name: "-",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    msgOrder: {
        url: `${config.API_URL}/service/chat/order`,
        name: "-",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    send: {
        url: `${config.API_URL}/service/chat/send`,
        name: "-",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    price: {
        url: `${config.API_URL}/service/chat/send/price`,
        name: "-",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
}