mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 03:49:19 +08:00
refactor: 重构刷单费表名
This commit is contained in:
+7
-7
@@ -4,47 +4,47 @@ import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import type { AdFeeDTO, AdFeeVO, AdFeeFieldVO } from './types';
|
||||
|
||||
/**
|
||||
* 广告费管理API
|
||||
* 店铺广告费管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 分页获取广告费记录列表
|
||||
*/
|
||||
export async function getAdFeePageApi(params: PageQueryDTO<AdFeeDTO.Filters>) {
|
||||
return requestClient.post<PageResultVO<AdFeeVO.Info>>('/ec/ad-fee/list', params);
|
||||
return requestClient.post<PageResultVO<AdFeeVO.Info>>('/ec/shop/ad-fee/list', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建广告费记录
|
||||
*/
|
||||
export async function createAdFeeApi(data: AdFeeDTO.Create) {
|
||||
return requestClient.post<number>('/ec/ad-fee', data);
|
||||
return requestClient.post<number>('/ec/shop/ad-fee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新广告费记录
|
||||
*/
|
||||
export async function updateAdFeeApi(data: AdFeeDTO.Update) {
|
||||
return requestClient.put<void>('/ec/ad-fee', data);
|
||||
return requestClient.put<void>('/ec/shop/ad-fee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除广告费记录
|
||||
*/
|
||||
export async function deleteAdFeeApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/ad-fee/${id}`);
|
||||
return requestClient.delete<void>(`/ec/shop/ad-fee/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取广告费记录详情
|
||||
*/
|
||||
export async function getAdFeeByIdApi(id: number) {
|
||||
return requestClient.get<AdFeeVO.Info>(`/ec/ad-fee/${id}`);
|
||||
return requestClient.get<AdFeeVO.Info>(`/ec/shop/ad-fee/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取广告费导入字段定义
|
||||
*/
|
||||
export async function getAdFeeFieldsApi() {
|
||||
return requestClient.get<AdFeeFieldVO.Info[]>('/ec/ad-fee/fields');
|
||||
return requestClient.get<AdFeeFieldVO.Info[]>('/ec/shop/ad-fee/fields');
|
||||
}
|
||||
+11
-6
@@ -5,14 +5,17 @@ import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 刷单记录管理API
|
||||
* 店铺刷单费记录管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建刷单记录
|
||||
*/
|
||||
export async function createBrushOrderApi(data: BrushOrderDTO.Create) {
|
||||
return requestClient.post<BrushOrderVO.Info>('/ec/brush-order/create', data);
|
||||
return requestClient.post<BrushOrderVO.Info>(
|
||||
'/ec/shop/fake-orders-fee/create',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -23,7 +26,7 @@ export async function updateBrushOrderApi(
|
||||
data: BrushOrderDTO.Update,
|
||||
) {
|
||||
return requestClient.put<BrushOrderVO.Info>(
|
||||
`/ec/brush-order/update/${id}`,
|
||||
`/ec/shop/fake-orders-fee/update/${id}`,
|
||||
data,
|
||||
);
|
||||
}
|
||||
@@ -32,7 +35,7 @@ export async function updateBrushOrderApi(
|
||||
* 删除刷单记录
|
||||
*/
|
||||
export async function deleteBrushOrderApi(id: number) {
|
||||
return requestClient.delete(`/ec/brush-order/delete/${id}`);
|
||||
return requestClient.delete(`/ec/shop/fake-orders-fee/delete/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,7 +45,7 @@ export async function getBrushOrderPageApi(
|
||||
params: PageQueryDTO<BrushOrderDTO.Filters>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<BrushOrderVO.Info>>(
|
||||
'/ec/brush-order/list',
|
||||
'/ec/shop/fake-orders-fee/list',
|
||||
params,
|
||||
);
|
||||
}
|
||||
@@ -51,5 +54,7 @@ export async function getBrushOrderPageApi(
|
||||
* 获取刷单记录详情
|
||||
*/
|
||||
export async function getBrushOrderByIdApi(id: number) {
|
||||
return requestClient.get<BrushOrderVO.Info>(`/ec/brush-order/detail/${id}`);
|
||||
return requestClient.get<BrushOrderVO.Info>(
|
||||
`/ec/shop/fake-orders-fee/detail/${id}`,
|
||||
);
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import type { AdFeeFieldVO } from '#/api/ec/ad-fee/types';
|
||||
import type { AdFeeFieldVO } from '#/api/ec/shop/ad-fee/types';
|
||||
import type { ImportMappingVO } from '#/api/ec/import/mapping';
|
||||
import type { ImportTaskDTO } from '#/api/ec/import/task';
|
||||
import type { ShopVO } from '#/api/ec/shop/types';
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
ImportMappingType,
|
||||
updateImportMappingApi,
|
||||
} from '#/api/ec/import/mapping';
|
||||
import { getAdFeeFieldsApi } from '#/api/ec/ad-fee/apis';
|
||||
import { getAdFeeFieldsApi } from '#/api/ec/shop/ad-fee/apis';
|
||||
import { getShopPageApi } from '#/api/ec/shop';
|
||||
import { createImportTaskApi } from '#/api/ec/import/task';
|
||||
import { useImportTaskStore } from '#/store';
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
import type {
|
||||
AdFeeDTO,
|
||||
AdFeeVO,
|
||||
} from '#/api/ec/ad-fee/types';
|
||||
} from '#/api/ec/shop/ad-fee/types';
|
||||
import type { ProductVO } from '#/api/ec/product/types';
|
||||
import type { ShopVO } from '#/api/ec/shop/types';
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
import {
|
||||
createAdFeeApi,
|
||||
updateAdFeeApi,
|
||||
} from '#/api/ec/ad-fee';
|
||||
} from '#/api/ec/shop/ad-fee';
|
||||
import { getProductPageApi } from '#/api/ec/product';
|
||||
import { getShopPageApi } from '#/api/ec/shop';
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { AdFeeDTO, AdFeeVO } from '#/api/ec/ad-fee/types';
|
||||
import type { AdFeeDTO, AdFeeVO } from '#/api/ec/shop/ad-fee/types';
|
||||
import type { ShopVO } from '#/api/ec/shop/types';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteAdFeeApi, getAdFeePageApi } from '#/api/ec/ad-fee';
|
||||
import { deleteAdFeeApi, getAdFeePageApi } from '#/api/ec/shop/ad-fee';
|
||||
import EcShopColPage from '#/views/ec/components/EcShopColPage.vue';
|
||||
|
||||
import AdFeeFormModal from './components/AdFeeFormModal.vue';
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/brush-order';
|
||||
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/shop/fake-orders-fee';
|
||||
import type {
|
||||
ProductSkuDTO,
|
||||
ProductSkuVO,
|
||||
@@ -28,7 +28,7 @@ import dayjs from 'dayjs';
|
||||
import {
|
||||
createBrushOrderApi,
|
||||
updateBrushOrderApi,
|
||||
} from '#/api/ec/brush-order';
|
||||
} from '#/api/ec/shop/fake-orders-fee';
|
||||
import { getProductPageApi } from '#/api/ec/product';
|
||||
import { getProductSkuPageApi } from '#/api/ec/product/sku';
|
||||
import { getShopPageApi } from '#/api/ec/shop';
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/brush-order';
|
||||
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/shop/fake-orders-fee';
|
||||
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
|
||||
import type { ShopVO } from '#/api/ec/shop/types';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
@@ -24,7 +24,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
deleteBrushOrderApi,
|
||||
getBrushOrderPageApi,
|
||||
} from '#/api/ec/brush-order';
|
||||
} from '#/api/ec/shop/fake-orders-fee';
|
||||
import { getProductPageApi } from '#/api/ec/product';
|
||||
import EcShopColPage from '#/views/ec/components/EcShopColPage.vue';
|
||||
|
||||
Reference in New Issue
Block a user