2022-11-09 16:34:48 +08:00

38 lines
793 B
TypeScript

import { useRequest } from '@/use/useHttp'
//获取客户信息
export const mppurchaser = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "get",
})
}
//新建客户
export const mppurchaserpost = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "post",
})
}
//编辑客户
export const mppurchaserput = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "put",
})
}
//获取标签列表
export const mppurchaserlist = () => {
return useRequest({
url: `/v2/mp/purchaser/label/list`,
method: "get",
})
}
//保存标签
export const mppurchaserlabeladd = () => {
return useRequest({
url: `/v2/mp/purchaser/label/add`,
method: "post",
})
}