mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 16:29:19 +08:00
优化部分模块
This commit is contained in:
@@ -1,143 +0,0 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import type { OrderDTO, OrderVO, BatchImportResultVO, OrderStatusDTO, OrderStatusVO, PromotionFeeTypeDTO, PromotionFeeTypeVO } from './types';
|
||||
|
||||
/**
|
||||
* 订单管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 分页获取订单列表
|
||||
*/
|
||||
export async function getOrderPageApi(params: PageQueryDTO<OrderDTO.OrderFilterDTO>) {
|
||||
return requestClient.post<PageResultVO<OrderVO.OrderInfoVO>>('/ec/order/page', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建订单
|
||||
*/
|
||||
export async function createOrderApi(data: OrderDTO.CreateOrderDTO) {
|
||||
return requestClient.post<OrderVO.OrderInfoVO>('/ec/order/create', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单
|
||||
*/
|
||||
export async function updateOrderApi(id: number, data: OrderDTO.UpdateOrderDTO) {
|
||||
return requestClient.put<OrderVO.OrderInfoVO>(`/ec/order/update/${id}`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
*/
|
||||
export async function deleteOrderApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/order/delete/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
*/
|
||||
export async function getOrderByIdApi(id: number) {
|
||||
return requestClient.get<OrderVO.OrderInfoVO>(`/ec/order/detail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量导入订单
|
||||
*/
|
||||
export async function batchImportOrdersApi(data: OrderDTO.BatchImportOrderDTO) {
|
||||
return requestClient.post<BatchImportResultVO.BatchImportResultInfoVO>('/ec/order/batch-import', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建订单状态
|
||||
*/
|
||||
export async function createOrderStatusApi(data: OrderStatusDTO.CreateOrderStatusDTO) {
|
||||
return requestClient.post<number>('/ec/order-status', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单状态
|
||||
*/
|
||||
export async function updateOrderStatusApi(data: OrderStatusDTO.UpdateOrderStatusDTO) {
|
||||
return requestClient.put<void>('/ec/order-status', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单状态
|
||||
*/
|
||||
export async function deleteOrderStatusApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/order-status/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单状态详情
|
||||
*/
|
||||
export async function getOrderStatusByIdApi(id: number) {
|
||||
return requestClient.get<OrderStatusVO.OrderStatusInfoVO>(`/ec/order-status/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的订单状态列表
|
||||
*/
|
||||
export async function getActiveOrderStatusListApi() {
|
||||
return requestClient.get<OrderStatusVO.OrderStatusInfoVO[]>('/ec/order-status/active');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有订单状态列表
|
||||
*/
|
||||
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');
|
||||
}
|
||||
|
||||
@@ -2,5 +2,11 @@
|
||||
* 电商模块API导出
|
||||
*/
|
||||
|
||||
export * from './apis';
|
||||
export * from './types';
|
||||
// 订单相关API
|
||||
export * from './order.apis';
|
||||
|
||||
// 订单状态相关API
|
||||
export * from './order-status.apis';
|
||||
|
||||
// 推广费类型相关API
|
||||
export * from './promotion-fee-type.apis';
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { OrderStatusDTO, OrderStatusVO } from './types';
|
||||
|
||||
/**
|
||||
* 订单状态管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建订单状态
|
||||
*/
|
||||
export async function createOrderStatusApi(data: OrderStatusDTO.Create) {
|
||||
return requestClient.post<number>('/ec/order-status', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单状态
|
||||
*/
|
||||
export async function updateOrderStatusApi(data: OrderStatusDTO.Update) {
|
||||
return requestClient.put<void>('/ec/order-status', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单状态
|
||||
*/
|
||||
export async function deleteOrderStatusApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/order-status/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单状态详情
|
||||
*/
|
||||
export async function getOrderStatusByIdApi(id: number) {
|
||||
return requestClient.get<OrderStatusVO.Info>(`/ec/order-status/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的订单状态列表
|
||||
*/
|
||||
export async function getActiveOrderStatusListApi() {
|
||||
return requestClient.get<OrderStatusVO.Info[]>('/ec/order-status/active');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有订单状态列表
|
||||
*/
|
||||
export async function getAllOrderStatusListApi() {
|
||||
return requestClient.get<OrderStatusVO.Info[]>('/ec/order-status/all');
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import type { OrderDTO, OrderVO, BatchImportResultVO } from './types';
|
||||
|
||||
/**
|
||||
* 订单管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 分页获取订单列表
|
||||
*/
|
||||
export async function getOrderPageApi(params: PageQueryDTO<OrderDTO.Filters>) {
|
||||
return requestClient.post<PageResultVO<OrderVO.Info>>('/ec/order/page', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建订单
|
||||
*/
|
||||
export async function createOrderApi(data: OrderDTO.Create) {
|
||||
return requestClient.post<OrderVO.Info>('/ec/order/create', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单
|
||||
*/
|
||||
export async function updateOrderApi(id: number, data: OrderDTO.Update) {
|
||||
return requestClient.put<OrderVO.Info>(`/ec/order/update/${id}`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
*/
|
||||
export async function deleteOrderApi(id: number) {
|
||||
return requestClient.delete<void>(`/ec/order/delete/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
*/
|
||||
export async function getOrderByIdApi(id: number) {
|
||||
return requestClient.get<OrderVO.Info>(`/ec/order/detail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量导入订单
|
||||
*/
|
||||
export async function batchImportOrdersApi(data: OrderDTO.BatchImport) {
|
||||
return requestClient.post<BatchImportResultVO.Info>('/ec/order/batch-import', data);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PromotionFeeTypeDTO, PromotionFeeTypeVO } from './types';
|
||||
|
||||
/**
|
||||
* 推广费类型管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建推广费类型
|
||||
*/
|
||||
export async function createPromotionFeeTypeApi(data: PromotionFeeTypeDTO.Create) {
|
||||
return requestClient.post<number>('/ec/promotion-fee-type', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新推广费类型
|
||||
*/
|
||||
export async function updatePromotionFeeTypeApi(data: PromotionFeeTypeDTO.Update) {
|
||||
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.Info>(`/ec/promotion-fee-type/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的推广费类型列表
|
||||
*/
|
||||
export async function getActivePromotionFeeTypeListApi() {
|
||||
return requestClient.get<PromotionFeeTypeVO.Info[]>('/ec/promotion-fee-type/active');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有推广费类型列表
|
||||
*/
|
||||
export async function getAllPromotionFeeTypeListApi() {
|
||||
return requestClient.get<PromotionFeeTypeVO.Info[]>('/ec/promotion-fee-type/all');
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 订单状态相关DTO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderStatusDTO {
|
||||
/** 创建订单状态参数 */
|
||||
export interface Create {
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
|
||||
/** 更新订单状态参数 */
|
||||
export interface Update {
|
||||
/** 状态ID */
|
||||
id: number;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* 订单相关DTO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderDTO {
|
||||
/** 创建订单参数 */
|
||||
export interface Create {
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo?: string;
|
||||
/** 订单状态ID */
|
||||
statusId: number;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee?: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
/** 商品ID */
|
||||
productId: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId?: number;
|
||||
/** 商品名称(冗余存储) */
|
||||
productName: string;
|
||||
/** 规格名称(冗余存储) */
|
||||
specName?: string;
|
||||
/** 数量 */
|
||||
quantity: number;
|
||||
/** 销售单价 */
|
||||
unitPrice: number;
|
||||
/** 成本价(下单时快照) */
|
||||
costPrice: number;
|
||||
/** 成本小计 */
|
||||
costTotal: number;
|
||||
}
|
||||
|
||||
/** 更新订单参数 */
|
||||
export interface Update {
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo?: string;
|
||||
/** 订单状态ID */
|
||||
statusId?: number;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee?: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
/** 商品ID */
|
||||
productId?: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId?: number;
|
||||
/** 商品名称(冗余存储) */
|
||||
productName?: string;
|
||||
/** 规格名称(冗余存储) */
|
||||
specName?: string;
|
||||
/** 数量 */
|
||||
quantity?: number;
|
||||
/** 销售单价 */
|
||||
unitPrice?: number;
|
||||
/** 成本价(下单时快照) */
|
||||
costPrice?: number;
|
||||
/** 成本小计 */
|
||||
costTotal?: number;
|
||||
}
|
||||
|
||||
/** 订单过滤条件 */
|
||||
export interface Filters {
|
||||
/** 店铺ID */
|
||||
shopId?: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId?: number;
|
||||
/** 订单状态ID */
|
||||
orderStatusId?: number;
|
||||
/** 订单编号(模糊查询) */
|
||||
orderNumber?: string;
|
||||
/** 商品名称(模糊查询) */
|
||||
productName?: string;
|
||||
}
|
||||
|
||||
/** 批量导入订单参数 */
|
||||
export interface BatchImport {
|
||||
/** 订单列表 */
|
||||
orders: Create[];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* 推广费类型相关DTO类型定义
|
||||
*/
|
||||
|
||||
export namespace PromotionFeeTypeDTO {
|
||||
/** 创建推广费类型参数 */
|
||||
export interface Create {
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
/** 类型描述 */
|
||||
description?: string;
|
||||
/** 计算方式 1固定金额 2按比例 3按点击 4按展示 */
|
||||
calculationMethod?: number;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
|
||||
/** 更新推广费类型参数 */
|
||||
export interface Update {
|
||||
/** 推广费类型ID */
|
||||
id: number;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
/** 类型描述 */
|
||||
description?: string;
|
||||
/** 计算方式 1固定金额 2按比例 3按点击 4按展示 */
|
||||
calculationMethod?: number;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
}
|
||||
@@ -2,5 +2,13 @@
|
||||
* 电商模块类型定义导出
|
||||
*/
|
||||
|
||||
export * from './types.dto';
|
||||
export * from './types.vo';
|
||||
// DTO类型导出
|
||||
export * from './dto.order';
|
||||
export * from './dto.order-status';
|
||||
export * from './dto.promotion-fee-type';
|
||||
|
||||
// VO类型导出
|
||||
export * from './vo.order';
|
||||
export * from './vo.order-status';
|
||||
export * from './vo.promotion-fee-type';
|
||||
export * from './vo.batch-import-result';
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
/**
|
||||
* 电商模块DTO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderDTO {
|
||||
/** 创建订单参数 */
|
||||
export interface CreateOrderDTO {
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo?: string;
|
||||
/** 订单状态ID */
|
||||
statusId: number;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee?: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
/** 商品ID */
|
||||
productId: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId: number;
|
||||
/** 数量 */
|
||||
quantity: number;
|
||||
}
|
||||
|
||||
/** 更新订单参数 */
|
||||
export interface UpdateOrderDTO {
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo?: string;
|
||||
/** 订单状态ID */
|
||||
statusId?: number;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee?: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
}
|
||||
|
||||
/** 订单过滤条件 */
|
||||
export interface OrderFilterDTO {
|
||||
/** 店铺ID */
|
||||
shopId?: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId?: number;
|
||||
/** 订单状态ID */
|
||||
orderStatusId?: number;
|
||||
/** 订单编号(模糊查询) */
|
||||
orderNumber?: string;
|
||||
/** 商品名称(模糊查询) */
|
||||
productName?: string;
|
||||
}
|
||||
|
||||
/** 批量导入订单参数 */
|
||||
export interface BatchImportOrderDTO {
|
||||
/** 订单列表 */
|
||||
orders: CreateOrderDTO[];
|
||||
}
|
||||
}
|
||||
|
||||
export namespace OrderStatusDTO {
|
||||
/** 创建订单状态参数 */
|
||||
export interface CreateOrderStatusDTO {
|
||||
/** 状态码 */
|
||||
statusCode: number;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: number;
|
||||
}
|
||||
|
||||
/** 更新订单状态参数 */
|
||||
export interface UpdateOrderStatusDTO {
|
||||
/** 状态ID */
|
||||
id: number;
|
||||
/** 状态码 */
|
||||
statusCode: number;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive?: 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;
|
||||
}
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
/**
|
||||
* 电商模块VO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderVO {
|
||||
/** 订单信息 */
|
||||
export interface OrderInfoVO {
|
||||
/** 订单ID */
|
||||
id: number;
|
||||
/** 公司ID */
|
||||
companyId: number;
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 店铺名称 */
|
||||
shopName: string;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo: string;
|
||||
/** 订单状态ID */
|
||||
statusId: number;
|
||||
/** 订单状态名称 */
|
||||
statusName: string;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建人ID */
|
||||
createBy?: number;
|
||||
/** 更新人ID */
|
||||
updateBy?: number;
|
||||
/** 订单明细 */
|
||||
orderItem?: OrderItemVO.OrderItemInfoVO;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace OrderItemVO {
|
||||
/** 订单明细信息 */
|
||||
export interface OrderItemInfoVO {
|
||||
/** 订单明细ID */
|
||||
id: number;
|
||||
/** 订单ID */
|
||||
orderId: number;
|
||||
/** 商品ID */
|
||||
productId: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId: number;
|
||||
/** 商品名称 */
|
||||
productName: string;
|
||||
/** 规格名称 */
|
||||
specName: string;
|
||||
/** 商品主图 */
|
||||
productImage?: string;
|
||||
/** 数量 */
|
||||
quantity: number;
|
||||
/** 销售单价 */
|
||||
unitPrice: number;
|
||||
/** 成本价 */
|
||||
costPrice: number;
|
||||
/** 小计金额 */
|
||||
subtotal: number;
|
||||
/** 成本小计 */
|
||||
costTotal: number;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace BatchImportResultVO {
|
||||
/** 批量导入结果 */
|
||||
export interface BatchImportResultInfoVO {
|
||||
/** 总数量 */
|
||||
totalCount: number;
|
||||
/** 成功数量 */
|
||||
successCount: number;
|
||||
/** 失败数量 */
|
||||
failureCount: number;
|
||||
/** 失败详情 */
|
||||
failureDetails: string[];
|
||||
}
|
||||
}
|
||||
|
||||
export namespace OrderStatusVO {
|
||||
/** 订单状态信息 */
|
||||
export interface OrderStatusInfoVO {
|
||||
/** 状态ID */
|
||||
id: number;
|
||||
/** 公司ID */
|
||||
companyId: number;
|
||||
/** 状态码 */
|
||||
statusCode: number;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive: number;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建人ID */
|
||||
createBy?: number;
|
||||
/** 更新人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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 批量导入结果相关VO类型定义
|
||||
*/
|
||||
|
||||
export namespace BatchImportResultVO {
|
||||
/** 批量导入结果 */
|
||||
export interface Info {
|
||||
/** 总数量 */
|
||||
totalCount: number;
|
||||
/** 成功数量 */
|
||||
successCount: number;
|
||||
/** 失败数量 */
|
||||
failureCount: number;
|
||||
/** 失败详情 */
|
||||
failureDetails: string[];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 订单状态相关VO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderStatusVO {
|
||||
/** 订单状态信息 */
|
||||
export interface Info {
|
||||
/** 状态ID */
|
||||
id: number;
|
||||
/** 公司ID */
|
||||
companyId: number;
|
||||
/** 状态码 */
|
||||
statusCode: number;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
/** 状态描述 */
|
||||
description?: string;
|
||||
/** 排序 */
|
||||
sortOrder?: number;
|
||||
/** 是否启用 0禁用 1启用 */
|
||||
isActive: number;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建人ID */
|
||||
createBy?: number;
|
||||
/** 更新人ID */
|
||||
updateBy?: number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* 订单相关VO类型定义
|
||||
*/
|
||||
|
||||
export namespace OrderVO {
|
||||
/** 订单信息 */
|
||||
export interface Info {
|
||||
/** 订单ID */
|
||||
id: number;
|
||||
/** 公司ID */
|
||||
companyId: number;
|
||||
/** 店铺ID */
|
||||
shopId: number;
|
||||
/** 店铺名称 */
|
||||
shopName: string;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo: string;
|
||||
/** 订单状态ID */
|
||||
statusId: number;
|
||||
/** 订单状态名称 */
|
||||
statusName: string;
|
||||
/** 商家实收金额 */
|
||||
receivedAmount: number;
|
||||
/** 运费 */
|
||||
shippingFee: number;
|
||||
/** 下单时间 */
|
||||
orderDate: string;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建人ID */
|
||||
createBy?: number;
|
||||
/** 更新人ID */
|
||||
updateBy?: number;
|
||||
/** 商品ID */
|
||||
productId: number;
|
||||
/** 商品规格ID */
|
||||
productSpecId?: number;
|
||||
/** 商品名称(冗余存储) */
|
||||
productName: string;
|
||||
/** 规格名称(冗余存储) */
|
||||
specName?: string;
|
||||
/** 数量 */
|
||||
quantity: number;
|
||||
/** 销售单价 */
|
||||
unitPrice: number;
|
||||
/** 成本价(下单时快照) */
|
||||
costPrice: number;
|
||||
/** 成本小计 */
|
||||
costTotal: number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* 推广费类型相关VO类型定义
|
||||
*/
|
||||
|
||||
export namespace PromotionFeeTypeVO {
|
||||
/** 推广费类型信息 */
|
||||
export interface Info {
|
||||
/** 推广费类型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