CustomerCare.js 603 Bytes
Newer Older
Giang Tran committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* eslint-disable handle-callback-err */
import { PostData, GetURL } from '../../helpers'
import url from '../../url'

export const getListCusomterProcess = async (body) =>
    PostData(url.urlGetCustomerCare, body)
        .then((res) => res)
        .catch((err) => null)

export const createCustomerProcess = async (body) =>
    PostData(url.urlCreateCustomerCare, body)
        .then((res) => res)
        .catch((err) => null)

export const detailCustomerProcess = async (id, body) =>
    GetURL(`${url.urlDetailCustomerCare}/${id}`, body)
        .then((res) => res)
        .catch((err) => null)