import axios from "axios";

const baseURL = '/api/website'
export class ContactUsService{

    create(data) {
        return axios({
            baseURL:baseURL,
            url:"/contact-us",
            method:"POST",
            data:data
        })
    }
    getTotal(){
        return axios({
            baseURL:baseURL,
            url:'/contact-us-total',
        })
    }
    show(id) {
        return axios({
            baseURL:baseURL,
            url:'/contact-us/'+id,
            method:"get"
        })
    }

    update(id,data) {
        return axios({
            baseURL:baseURL,
            url:'/contact-us/'+id,
            method:"patch",
            data:data
        })
    }
}