优化代码结构
This commit is contained in:
@@ -10,7 +10,7 @@ export function getaccountList(data: object) {
|
||||
}
|
||||
|
||||
//添加客服账号
|
||||
export function getaccountAdd(data: object) {
|
||||
export function addAccount(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/customer/service/account/add',
|
||||
method: 'post',
|
||||
@@ -28,7 +28,7 @@ export function updatestate(data: object) {
|
||||
}
|
||||
|
||||
//更新账号
|
||||
export function updateaccount(data: object) {
|
||||
export function updateAccount(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/customer/service/account/update',
|
||||
method: 'post',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request, { newService } from '/@/utils/request';
|
||||
|
||||
//添加产品
|
||||
export function getproductAdd(data: object) {
|
||||
export function addProduct(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/product/add',
|
||||
method: 'post',
|
||||
|
||||
@@ -9,8 +9,8 @@ export function getDataList(data: object) {
|
||||
});
|
||||
}
|
||||
|
||||
// 导出数据
|
||||
export function exportProduct(data: object) {
|
||||
// 导出报表
|
||||
export function exportReport(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/data/statistics/export',
|
||||
responseType: 'blob',
|
||||
|
||||
@@ -9,8 +9,8 @@ export function getscriptList(data: object) {
|
||||
});
|
||||
}
|
||||
|
||||
//获取话术列表
|
||||
export function getscriptAdd(data: object) {
|
||||
//增加话术
|
||||
export function addScript(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/speechcraft/add',
|
||||
method: 'post',
|
||||
@@ -19,7 +19,7 @@ export function getscriptAdd(data: object) {
|
||||
}
|
||||
|
||||
//删除话术列表
|
||||
export function deletescript(data: object) {
|
||||
export function deleteScript(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/speechcraft/delete',
|
||||
method: 'post',
|
||||
@@ -28,7 +28,7 @@ export function deletescript(data: object) {
|
||||
}
|
||||
|
||||
//更新话术列表
|
||||
export function updatescript(data: object) {
|
||||
export function updateScript(data: object) {
|
||||
return newService({
|
||||
url: '/customerService/speechcraft/update',
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user