mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 11:49:19 +08:00
最近一丢丢
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import type { OrderDTO, OrderVO, BatchImportResultVO, OrderStatusDTO, OrderStatusVO } from './types';
|
||||
import type { OrderDTO, OrderVO, BatchImportResultVO, OrderStatusDTO, OrderStatusVO, PromotionFeeTypeDTO, PromotionFeeTypeVO } from './types';
|
||||
|
||||
/**
|
||||
* 订单管理API
|
||||
@@ -95,3 +95,49 @@ export async function getAllOrderStatusListApi() {
|
||||
return requestClient.get<OrderStatusVO.OrderStatusInfoVO[]>('/ec/order-status/all');
|
||||
}
|
||||
|
||||
/**
|
||||
* 推广费类型管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建推广费类型
|
||||
*/
|
||||
export async function createPromotionFeeTypeApi(data: PromotionFeeTypeDTO.CreatePromotionFeeTypeDTO) {
|
||||
return requestClient.post<number>('/ec/promotion-fee-type', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新推广费类型
|
||||
*/
|
||||
export async function updatePromotionFeeTypeApi(data: PromotionFeeTypeDTO.UpdatePromotionFeeTypeDTO) {
|
||||
return requestClient.put<void>('/ec/promotion-fee-type', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除推广费类型
|
||||
*/
|
||||
export async function deletePromotionFeeTypeApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/promotion-fee-type/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取推广费类型详情
|
||||
*/
|
||||
export async function getPromotionFeeTypeByIdApi(id: number) {
|
||||
return requestClient.get<PromotionFeeTypeVO.PromotionFeeTypeInfoVO>(`/ec/promotion-fee-type/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的推广费类型列表
|
||||
*/
|
||||
export async function getActivePromotionFeeTypeListApi() {
|
||||
return requestClient.get<PromotionFeeTypeVO.PromotionFeeTypeInfoVO[]>('/ec/promotion-fee-type/active');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有推广费类型列表
|
||||
*/
|
||||
export async function getAllPromotionFeeTypeListApi() {
|
||||
return requestClient.get<PromotionFeeTypeVO.PromotionFeeTypeInfoVO[]>('/ec/promotion-fee-type/all');
|
||||
}
|
||||
|
||||
|
||||
@@ -88,4 +88,40 @@ export namespace OrderStatusDTO {
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PromotionFeeTypeDTO {
|
||||
/** 创建推广费类型参数 */
|
||||
export interface CreatePromotionFeeTypeDTO {
|
||||
/** 类型编码 */
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
/** 类型描述 */
|
||||
description?: string;
|
||||
/** 计算方式 1固定金额 2按比例 3按点击 4按展示 */
|
||||
calculationMethod?: number;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
|
||||
/** 更新推广费类型参数 */
|
||||
export interface UpdatePromotionFeeTypeDTO {
|
||||
/** 推广费类型ID */
|
||||
id: number;
|
||||
/** 类型编码 */
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
/** 类型描述 */
|
||||
description?: string;
|
||||
/** 计算方式 1固定金额 2按比例 3按点击 4按展示 */
|
||||
calculationMethod?: number;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
}
|
||||
@@ -108,4 +108,36 @@ export namespace OrderStatusVO {
|
||||
/** 更新人ID */
|
||||
updateBy?: number;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PromotionFeeTypeVO {
|
||||
/** 推广费类型信息 */
|
||||
export interface PromotionFeeTypeInfoVO {
|
||||
/** 推广费类型ID */
|
||||
id: number;
|
||||
/** 公司ID */
|
||||
companyId: number;
|
||||
/** 类型编码 */
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
/** 类型描述 */
|
||||
description?: string;
|
||||
/** 计算方式 1固定金额 2按比例 3按点击 4按展示 */
|
||||
calculationMethod?: number;
|
||||
/** 计算方式描述 */
|
||||
calculationMethodDesc?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建人ID */
|
||||
createBy?: number;
|
||||
/** 更新人ID */
|
||||
updateBy?: number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user