mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 09:09:19 +08:00
feat: 新增拼多多店铺日推广费和开放接口
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PddGoodsAdFeeDTO, PddGoodsAdFeeVO } from './types';
|
||||
|
||||
export async function getPddGoodsAdFeePageApi(
|
||||
params: PageQueryDTO<PddGoodsAdFeeDTO.Filters>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<PddGoodsAdFeeVO.Info>>(
|
||||
'/channel/pdd/goods/adfee/list',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
export async function getPddGoodsAdFeeDetailApi(id: number) {
|
||||
return requestClient.get<PddGoodsAdFeeVO.Info>(
|
||||
`/channel/pdd/goods/adfee/detail/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function createPddGoodsAdFeeApi(data: PddGoodsAdFeeDTO.Create) {
|
||||
return requestClient.post<PddGoodsAdFeeVO.Info>(
|
||||
'/channel/pdd/goods/adfee/create',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
export async function updatePddGoodsAdFeeApi(
|
||||
id: number,
|
||||
data: PddGoodsAdFeeDTO.Update,
|
||||
) {
|
||||
return requestClient.put<PddGoodsAdFeeVO.Info>(
|
||||
`/channel/pdd/goods/adfee/update/${id}`,
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
export async function deletePddGoodsAdFeeApi(id: number) {
|
||||
return requestClient.delete<void>(`/channel/pdd/goods/adfee/delete/${id}`);
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './apis';
|
||||
export type { PddGoodsAdFeeDTO, PddGoodsAdFeeVO } from './types';
|
||||
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* 拼多多商品广告费 DTO / VO
|
||||
*/
|
||||
export namespace PddGoodsAdFeeDTO {
|
||||
export interface Filters {
|
||||
channelShopId?: number;
|
||||
goodsId?: string;
|
||||
feeDateStart?: string;
|
||||
feeDateEnd?: string;
|
||||
}
|
||||
|
||||
export interface Create {
|
||||
channelShopId: number;
|
||||
goodsId: string;
|
||||
feeDate: string;
|
||||
feeAmount: number;
|
||||
}
|
||||
|
||||
export interface Update {
|
||||
channelShopId: number;
|
||||
goodsId: string;
|
||||
feeDate: string;
|
||||
feeAmount: number;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PddGoodsAdFeeVO {
|
||||
export interface Info {
|
||||
id: number;
|
||||
companyId?: number;
|
||||
channelShopId: number;
|
||||
channelShopName?: string;
|
||||
mallId?: number;
|
||||
goodsId: string;
|
||||
goodsName?: string;
|
||||
feeDate: string;
|
||||
feeAmount: number;
|
||||
lastSyncTime?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user