feat: 内容管理
This commit is contained in:
43
src/services/prod/category-manager/index.ts
Normal file
43
src/services/prod/category-manager/index.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { request } from "@umijs/max";
|
||||
|
||||
export interface Category extends PageParam {
|
||||
parentId?: number;
|
||||
categoryName?: string; //类目名称
|
||||
categoryId?: number; //类目ID
|
||||
grade?: number; //类目层级
|
||||
parentName?: string; //父级类目
|
||||
sort?: number; //排序权重
|
||||
status?: number; // 1为开启 0 为禁用;
|
||||
createTime?: Date;
|
||||
description?: string; //描述
|
||||
tag?: string[] | string;
|
||||
}
|
||||
|
||||
export interface CategoryReq extends PageParam {
|
||||
parentName?: string;
|
||||
categoryName?: string;
|
||||
status?: number;
|
||||
grade?: number; //父级类目
|
||||
}
|
||||
|
||||
// 查询分类列表
|
||||
export const getProdCategoryPage = async (params: CategoryReq) => {
|
||||
return request("/product/category/categoryList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
// 新增分类
|
||||
export const createProdCategory = async (data: Category) => {
|
||||
return request("/product/category/create", {
|
||||
method: "GET",
|
||||
data,
|
||||
});
|
||||
};
|
||||
//编辑分类
|
||||
export const updateProdCategory = async (data: Category) => {
|
||||
return request<IResponse<boolean>>("/product/category/create", {
|
||||
method: "PUT",
|
||||
data,
|
||||
});
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
import { request } from "@umijs/max";
|
||||
export interface Prod extends PageParam {
|
||||
/**
|
||||
* 商品简称
|
||||
@@ -176,10 +177,10 @@ export interface SkuPropValues {
|
||||
id?: number;
|
||||
propValue: string;
|
||||
valueId: number;
|
||||
state: 0 | 1; // 0禁用1启用
|
||||
isExist: 0 | 1; //是否新增 0否1是
|
||||
state: number; // 0禁用1启用
|
||||
isExist: number; //是否新增 0否1是
|
||||
sort: number;
|
||||
isExpire: 0 | 1 /**是否失效0否1是**/;
|
||||
isExpire: number /**是否失效0否1是**/;
|
||||
}
|
||||
export interface SkuConfig {
|
||||
propName: string; //规格名字
|
||||
@@ -204,7 +205,209 @@ export interface ProdDetail {
|
||||
|
||||
export interface ProdReq extends PageParam {
|
||||
name?: string;
|
||||
status?: 0 | 1 | 2; //状态 1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||||
status?: number; //状态 1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||||
prodName?: string; // 商品名称
|
||||
createTime?: Date; //创建时间
|
||||
}
|
||||
|
||||
// 查询商品管理列表
|
||||
export const getProdPage = async (params: ProdReq) => {
|
||||
return request("/product/prod/page", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 查询商品回收站
|
||||
export const getProdRecycleBinPageList = async (params: ProdReq) => {
|
||||
return request("/product/prod/getProdRecycleBinPageList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 恢复商品
|
||||
export const restoreProdList = async (params: { ids: number[] }) => {
|
||||
return request("/product/prod/restoreProdList", {
|
||||
method: "POST",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 删除商品
|
||||
export const deleteProd = async (params: { id: number }) => {
|
||||
return request<PageResult<Prod[]>>("/product/prod/delete", {
|
||||
method: "DELETE",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 批量删除商品
|
||||
export const deleteSkuList = async (params: { ids: number[] }) => {
|
||||
return request<PageResult<Prod[]>>("/product/prod/deleteSkuList", {
|
||||
method: "DELETE",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 批量上下架商品
|
||||
export const updateSkuShelfList = async (params: {
|
||||
status: number;
|
||||
ids: number[];
|
||||
}) => {
|
||||
return request<PageResult<Prod[]>>("/product/prod/updateSkuShelfList", {
|
||||
method: "DELETE",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 查询商品管理详情
|
||||
|
||||
export const getProdDetail = async (params: { id: number }) => {
|
||||
return request<PageResult<Prod[]>>("/product/prod/getProdInfo", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 创建商品
|
||||
export const createProd = async (data: Prod) => {
|
||||
return request<PageResult<Prod[]>>("/product/prod/create", {
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
// 更新商品详情
|
||||
export const updateProd = async (data: Prod) => {
|
||||
return request<Promise<PageResult<Prod[]>>>("/product/prod/update", {
|
||||
method: "PUT",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 获取sku规格
|
||||
|
||||
export const getSKuPropList = async (params: Prod) => {
|
||||
return request("/product/sku/getSKuPropList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 更新sku
|
||||
|
||||
export const updateProp = async (data: Prod) => {
|
||||
return request("/product/sku/updateProp", {
|
||||
method: "PUT",
|
||||
data,
|
||||
});
|
||||
};
|
||||
//更新单品SKU
|
||||
export const updateSKu = async (data: Prod) => {
|
||||
return request("/product/sku/update", {
|
||||
method: "PUT",
|
||||
data,
|
||||
});
|
||||
};
|
||||
//更新单品SKU上下架
|
||||
|
||||
export const updateSkuShelf = async (params: {
|
||||
id?: number;
|
||||
isShelf?: number;
|
||||
}) => {
|
||||
return request("/product/sku/updateSkuShelf", {
|
||||
method: "PUT",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
//删除规格值
|
||||
|
||||
export const deletePropSku = async (params: { id?: number }) => {
|
||||
return request("/product/sku/deleteProp", {
|
||||
method: "PUT",
|
||||
params,
|
||||
});
|
||||
};
|
||||
//禁用规格值
|
||||
|
||||
export const disablePropSku = async (params: Prod) => {
|
||||
return request("/product/sku/disableProp", {
|
||||
method: "PUT",
|
||||
params,
|
||||
});
|
||||
};
|
||||
//获得SKU分页列表
|
||||
|
||||
export const getSkuPageList = async (params: Prod) => {
|
||||
return request("/product/sku/getSkuPageList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
//删除SKU
|
||||
export const deleteSku = async (id: number) => {
|
||||
return request("/product/sku/delete", {
|
||||
method: "DELETE",
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
//获得SKU回收站列表
|
||||
export const getSkuRecycleBinPageList = async (params: Prod) => {
|
||||
return request("/product/sku/getSkuRecycleBinPageList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
//获得规格回收站
|
||||
|
||||
export const getPropRecycleBinList = async (params: Prod) => {
|
||||
return request("/product/sku/getPropRecycleBinList", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
//恢复规格值
|
||||
|
||||
export const restorePropList = async (ids: number[]) => {
|
||||
return request("/product/sku/restorePropList", {
|
||||
method: "POST",
|
||||
params: { ids },
|
||||
});
|
||||
};
|
||||
//SKU回收站恢复
|
||||
export const restoreSkuList = async (ids: number[]) => {
|
||||
return request("/product/sku/restoreSkuList", {
|
||||
method: "POST",
|
||||
params: { ids },
|
||||
});
|
||||
};
|
||||
|
||||
// 规格属性修改
|
||||
export const updateProdProp = async (params: {
|
||||
id: number;
|
||||
propName: string;
|
||||
}) => {
|
||||
return request("/product/sku/updateProdProp", {
|
||||
method: "PUT",
|
||||
params,
|
||||
});
|
||||
};
|
||||
// 规格值修改
|
||||
export const updatePropValue = async (params: {
|
||||
id: number;
|
||||
propValue: string;
|
||||
}) => {
|
||||
return request("/product/sku/updatePropValue", {
|
||||
method: "PUT",
|
||||
params,
|
||||
});
|
||||
};
|
||||
// /tz/sku/update
|
||||
|
||||
// //修改服务配置
|
||||
// export const getSKuPropList = async (data: Prod) => {
|
||||
// return await request.post({ url: "/tz/sku/getSKuPropList", data: data });
|
||||
// };
|
||||
// /product/prod/uptateProdService
|
||||
|
||||
565
src/services/prod/prod-manager/rule.ts
Normal file
565
src/services/prod/prod-manager/rule.ts
Normal file
@@ -0,0 +1,565 @@
|
||||
import { request } from "@umijs/max";
|
||||
import type { Prod } from ".";
|
||||
|
||||
/**
|
||||
* ProdServiceVO
|
||||
*/
|
||||
export interface ProdServiceVO {
|
||||
/**
|
||||
* 是否特殊日期(节假日周末什么的)0关1开
|
||||
*/
|
||||
additionalFeeSwitch?: number;
|
||||
/**
|
||||
* 是否特殊时段0关1开
|
||||
*/
|
||||
additionalSwitch?: number;
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
categoryName?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 新建人
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 是否紧急响应服务0关1开
|
||||
*/
|
||||
emergencySwitch?: number;
|
||||
/**
|
||||
* 是否接单上线0关1开
|
||||
*/
|
||||
orderLimitSwitch?: number;
|
||||
/**
|
||||
* 特殊时段规则配置
|
||||
*/
|
||||
prodAdditionalFeeDatesList?: ProdAdditionalFeeDatesDO[];
|
||||
/**
|
||||
* 特殊日期规则配置
|
||||
*/
|
||||
prodAdditionalFeePeriodsList?: ProdAdditionalFeePeriodsDO[];
|
||||
/**
|
||||
* 急响应服务配置
|
||||
*/
|
||||
prodEmergencyInfoVO?: ProdEmergencyInfoVO;
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 预约配置
|
||||
*/
|
||||
prodReservationConfig?: ProdReservationInfoVO;
|
||||
/**
|
||||
* 服务区域配置
|
||||
*/
|
||||
prodServiceAreasInfo?: ProdServiceAreasInfoVO;
|
||||
/**
|
||||
* 接单上线配置
|
||||
*/
|
||||
productOrderLimitVO?: ProductOrderLimitDO;
|
||||
/**
|
||||
* 体重配置
|
||||
*/
|
||||
prodWeightConfig?: ProdWeightRangePricesSaveInfoVO;
|
||||
/**
|
||||
* 是否开启服务区域配置0关1开
|
||||
*/
|
||||
regionSwitch?: number;
|
||||
/**
|
||||
* 是否预约0关1开
|
||||
*/
|
||||
reservationSwitch?: number;
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
/**
|
||||
* 是否开启体重配置0关1开
|
||||
*/
|
||||
weightSwitch?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 特殊日期附加费用规则 DO
|
||||
*
|
||||
* ProdAdditionalFeeDatesDO
|
||||
*/
|
||||
export interface ProdAdditionalFeeDatesDO {
|
||||
/**
|
||||
* 收费方式
|
||||
*/
|
||||
chargeMode?: number;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 自定义日期时间段(JSON格式存储)
|
||||
*/
|
||||
customTimeSlots?: string[];
|
||||
/**
|
||||
* 日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'
|
||||
*/
|
||||
dateType?: number;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
deleted?: number;
|
||||
/**
|
||||
* 特殊日期规则的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 是否启用该规则
|
||||
*/
|
||||
isEnabled?: number;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期
|
||||
*/
|
||||
type?: number;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 特殊时段附加费用规则 DO
|
||||
*
|
||||
* ProdAdditionalFeePeriodsDO
|
||||
*/
|
||||
export interface ProdAdditionalFeePeriodsDO {
|
||||
/**
|
||||
* 收费方式0:'固定金额',1:'基准价上浮'
|
||||
*/
|
||||
chargeMode?: number;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
deleted?: number;
|
||||
/**
|
||||
* 浮动百分比
|
||||
*/
|
||||
floatingPercentage?: number;
|
||||
/**
|
||||
* 特殊时段规则的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 特殊时段设置(JSON格式存储)
|
||||
*/
|
||||
specialTimeSlots?: string[];
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 急响应服务配置
|
||||
*
|
||||
* ProdEmergencyInfoVO
|
||||
*/
|
||||
export interface ProdEmergencyInfoVO {
|
||||
/**
|
||||
* 紧急响应服务配置的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 紧急响应黑名单日期设置
|
||||
*/
|
||||
prodEmergencyResponseBlackList?: ProdAdditionalFeeBlackVO[];
|
||||
/**
|
||||
* 紧急响应时间区间设置
|
||||
*/
|
||||
prodEmergencyResponseIntervalsList?: ProdEmergencyResponseIntervalsDO[];
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 可响应时间段(JSON格式存储)
|
||||
*/
|
||||
responseTimeSlots?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO
|
||||
*
|
||||
* ProdAdditionalFeeBlackVO
|
||||
*/
|
||||
export interface ProdAdditionalFeeBlackVO {
|
||||
/**
|
||||
* 黑名单日期设置
|
||||
*/
|
||||
customTimeSlots?: string[];
|
||||
/**
|
||||
* 日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'
|
||||
*/
|
||||
dateType?: number;
|
||||
/**
|
||||
* 特殊日期规则的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 是否启用该规则是否启用该规则0关1开
|
||||
*/
|
||||
isEnabled?: number;
|
||||
/**
|
||||
* 类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期
|
||||
*/
|
||||
type?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 紧急响应时间区间设置 DO
|
||||
*
|
||||
* ProdEmergencyResponseIntervalsDO
|
||||
*/
|
||||
export interface ProdEmergencyResponseIntervalsDO {
|
||||
/**
|
||||
* 收费模式0:固定收费 1:浮动收费
|
||||
*/
|
||||
chargeMode?: number;
|
||||
/**
|
||||
* 关联的紧急响应服务配置ID
|
||||
*/
|
||||
configId?: number;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
deleted?: number;
|
||||
/**
|
||||
* 浮动百分比
|
||||
*/
|
||||
floatingPercentage?: number;
|
||||
/**
|
||||
* 响应时间区间的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 响应模式名称
|
||||
*/
|
||||
modeName?: string;
|
||||
name?: string;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 响应时间(小时)
|
||||
*/
|
||||
responseHours?: number;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约配置
|
||||
*
|
||||
* ProdReservationInfoVO
|
||||
*/
|
||||
export interface ProdReservationInfoVO {
|
||||
/**
|
||||
* 需提前多少小时预约
|
||||
*/
|
||||
advanceHours?: number;
|
||||
/**
|
||||
* 是否允许更改预约时间 1可以 0不可以
|
||||
*/
|
||||
allowChange?: number;
|
||||
/**
|
||||
* 更改预约时间的时间规则(如服务开始前1小时可更改)
|
||||
*/
|
||||
changeTimeRule?: number;
|
||||
/**
|
||||
* 预约配置的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 允许更改预约时间的最大次数
|
||||
*/
|
||||
maxChangeTimes?: number;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 预约黑名单日期设置
|
||||
*/
|
||||
prodReservationBlackList?: ProdAdditionalFeeBlackVO[];
|
||||
/**
|
||||
* 预约日期范围 7天 10天 15天 30天
|
||||
*/
|
||||
reservationDateRange?: number;
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
reservationTimeSlots?: string[];
|
||||
/**
|
||||
* 预约时间区间设置
|
||||
*/
|
||||
timeBook?: TimeBookVO;
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
timeSlot?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约时间区间设置
|
||||
*
|
||||
* TimeBookVO
|
||||
*/
|
||||
export interface TimeBookVO {
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
reservationTimeSlots?: string[];
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
timeSlot?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务区域配置
|
||||
*
|
||||
* ProdServiceAreasInfoVO
|
||||
*/
|
||||
export interface ProdServiceAreasInfoVO {
|
||||
/**
|
||||
* 服务区域地址名称
|
||||
*/
|
||||
areaNameList?: string[];
|
||||
/**
|
||||
* 超区费用(仅在rule_type为accept_with_fee时有效)
|
||||
*/
|
||||
fee?: number;
|
||||
/**
|
||||
* 超区规则的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)
|
||||
*/
|
||||
ruleType?: number;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 体重配置
|
||||
*
|
||||
* ProdWeightRangePricesSaveInfoVO
|
||||
*/
|
||||
export interface ProdWeightRangePricesSaveInfoVO {
|
||||
/**
|
||||
* 体重是否收费0否1是
|
||||
*/
|
||||
isWeightCharge?: number;
|
||||
/**
|
||||
* 体重配置
|
||||
*/
|
||||
prodWeightConfigList?: ProdWeightRangePricesDO[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 体重区间价格 DO
|
||||
*
|
||||
* ProdWeightRangePricesDO
|
||||
*/
|
||||
export interface ProdWeightRangePricesDO {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
deleted?: number;
|
||||
/**
|
||||
* 体重区间价格的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 是否启用该规则0否1是
|
||||
*/
|
||||
isEnabled?: number;
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 关联的体重配置ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
/**
|
||||
* 体重区间
|
||||
*/
|
||||
weightRange?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 接单上线配置
|
||||
*
|
||||
* ProductOrderLimitDO
|
||||
*/
|
||||
export interface ProductOrderLimitDO {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
deleted?: number;
|
||||
/**
|
||||
* 接单上限配置的唯一标识符
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 限制单位'0:按自然天',1:'按自然周',2:'按自然月'
|
||||
*/
|
||||
limitUnit?: number;
|
||||
/**
|
||||
* 上限阈值
|
||||
*/
|
||||
maxOrders?: number;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
prodId?: number;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
updater?: string;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export const getProdServiceRule = async (params: Prod) => {
|
||||
return request("/product/prod/getProdService", {
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const uptateProdServiceRule = async (data: ProdServiceVO) => {
|
||||
return request("/product/prod/uptateProdService", {
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
@@ -1,48 +0,0 @@
|
||||
// @ts-ignore
|
||||
/// <reference path="./typings.d.ts" />
|
||||
import { request } from "@umijs/max";
|
||||
|
||||
/** 获取菜单页面的表 GET /product/category/categoryList */
|
||||
export async function getCategoryList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductCategoryCategoryListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request("/product/category/categoryList", {
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建产品类目 创建产品类目 POST /product/category/create */
|
||||
export async function postCategoryCreate(
|
||||
body: API.CategorySaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultLong>("/product/category/create", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 更新产品类目 更新产品类目 PUT /product/category/update */
|
||||
export async function putCategoryUpdate(
|
||||
body: API.CategorySaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/category/update", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as product from "./product";
|
||||
import * as category from "./category";
|
||||
export default {
|
||||
product,
|
||||
category,
|
||||
};
|
||||
@@ -1,586 +0,0 @@
|
||||
// @ts-ignore
|
||||
/// <reference path="./typings.d.ts" />
|
||||
import { request } from "@umijs/max";
|
||||
|
||||
/** 创建商品 创建商品 POST /prod/create */
|
||||
export async function postProdCreate(
|
||||
body: API.ProdSaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultLong>("/prod/create", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建商品 创建商品 POST /product/prod/create */
|
||||
export async function postProductProdCreate(
|
||||
body: API.ProdSaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultLong>("/product/prod/create", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建商品服务配置 创建商品服务配置 POST /product/prod/createProdService */
|
||||
export async function postProductProdCreateProdService(
|
||||
body: API.ProdServiceVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/createProdService", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除商品 删除商品 DELETE /product/prod/delete */
|
||||
export async function deleteProductProdOpenApiDelete(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.deleteProductProd_openAPI_deleteParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/delete", {
|
||||
method: "DELETE",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除商品 批量删除商品 DELETE /product/prod/deleteSkuList */
|
||||
export async function deleteProductProdDeleteSkuList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.deleteProductProdDeleteSkuListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/deleteSkuList", {
|
||||
method: "DELETE",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得商品回收站分页列表 获得商品回收站分页列表 GET /product/prod/getProdRecycleBinPageList */
|
||||
export async function getProductProdGetProdRecycleBinPageList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductProdGetProdRecycleBinPageListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultPageResultProdRestoreListVO>(
|
||||
"/product/prod/getProdRecycleBinPageList",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
pageNo: params.pageNo ?? "1",
|
||||
pageSize: params.pageSize ?? "10",
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得商品服务信息 获得商品服务信息 GET /product/prod/getProdService */
|
||||
export async function getProductProdGetProdService(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductProdGetProdServiceParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultProdServiceVO>(
|
||||
"/product/prod/getProdService",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得商品分页 获得商品分页 GET /product/prod/page */
|
||||
export async function getProductProdPage(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductProdPageParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultPageResultProdListVO>("/product/prod/page", {
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
pageNo: params.pageNo ?? "1",
|
||||
pageSize: params.pageSize ?? "10",
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 恢复商品 恢复商品 POST /product/prod/restoreProdList */
|
||||
export async function postProductProdRestoreProdList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductProdRestoreProdListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/restoreProdList", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 更新商品 更新商品 PUT /product/prod/update */
|
||||
export async function putProductProdUpdate(
|
||||
body: API.ProdSaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/update", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量上下架 批量上下架 DELETE /product/prod/updateSkuShelfList */
|
||||
export async function deleteProductProdUpdateSkuShelfList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.deleteProductProdUpdateSkuShelfListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/updateSkuShelfList", {
|
||||
method: "DELETE",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改商品服务配置 修改商品服务配置 POST /product/prod/uptateProdService */
|
||||
export async function postProductProdUptateProdService(
|
||||
body: API.ProdServiceInfoVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/prod/uptateProdService", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建sku扩展服务配置 创建sku扩展服务配置 POST /product/sku/createSkuExtend */
|
||||
export async function postProductSkuCreateSkuExtend(
|
||||
body: API.SkuExtendVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/createSkuExtend", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除单品SKU 删除单品SKU DELETE /product/sku/delete */
|
||||
export async function deleteProductSkuOpenApiDelete(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.deleteProductSku_openAPI_deleteParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/delete", {
|
||||
method: "DELETE",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除规格值 删除规格值 PUT /product/sku/deleteProp */
|
||||
export async function putProductSkuDeleteProp(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuDeletePropParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/deleteProp", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除SKU 批量删除SKU DELETE /product/sku/deleteSkuList */
|
||||
export async function deleteProductSkuDeleteSkuList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.deleteProductSkuDeleteSkuListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/deleteSkuList", {
|
||||
method: "DELETE",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 禁用或者启用规格值 禁用规格值 PUT /product/sku/disableProp */
|
||||
export async function putProductSkuDisableProp(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuDisablePropParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/disableProp", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得单品SKU 获得单品SKU GET /product/sku/get */
|
||||
export async function getProductSkuGet(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductSkuGetParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultSkuRespVO>("/product/sku/get", {
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取规格回收站 获取规格回收站 GET /product/sku/getPropRecycleBinList */
|
||||
export async function getProductSkuGetPropRecycleBinList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductSkuGetPropRecycleBinListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultPageResultProPropRecycleBinVO>(
|
||||
"/product/sku/getPropRecycleBinList",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
pageNo: params.pageNo ?? "1",
|
||||
pageSize: params.pageSize ?? "10",
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 获取sku扩展服务配置信息 获取sku扩展服务配置信息 POST /product/sku/getSkuExtend */
|
||||
export async function postProductSkuGetSkuExtend(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductSkuGetSkuExtendParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultSkuExtendVO>("/product/sku/getSkuExtend", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得SKU分页列表 获得SKU分页列表 GET /product/sku/getSkuPageList */
|
||||
export async function getProductSkuGetSkuPageList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductSkuGetSkuPageListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultPageResultSkuDO>(
|
||||
"/product/sku/getSkuPageList",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
pageNo: params.pageNo ?? "1",
|
||||
pageSize: params.pageSize ?? "10",
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 获取sku规格 获取sku规格 GET /product/sku/getSKuPropList */
|
||||
export async function getProductSkuGetSKuPropList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductSkuGetSKuPropListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultSkuPropInfoVO>("/product/sku/getSKuPropList", {
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得SKU回收站分页列表 获得SKU回收站分页列表 GET /product/sku/getSkuRecycleBinPageList */
|
||||
export async function getProductSkuGetSkuRecycleBinPageList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.getProductSkuGetSkuRecycleBinPageListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultPageResultSkuRecycleBinVO>(
|
||||
"/product/sku/getSkuRecycleBinPageList",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
pageNo: params.pageNo ?? "1",
|
||||
pageSize: params.pageSize ?? "10",
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 恢复规格 恢复规格 POST /product/sku/restorePropList */
|
||||
export async function postProductSkuRestorePropList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductSkuRestorePropListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/restorePropList", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 恢复SKU 恢复SKU POST /product/sku/restoreSkuList */
|
||||
export async function postProductSkuRestoreSkuList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductSkuRestoreSkuListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/restoreSkuList", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 更新单品SKU 更新单品SKU PUT /product/sku/update */
|
||||
export async function putProductSkuUpdate(
|
||||
body: API.SkuSaveReqVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/update", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改配送方式 修改配送方式 POST /product/sku/updateDeliver */
|
||||
export async function postProductSkuUpdateDeliver(
|
||||
body: API.SkuServiceDeliverDO[],
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateDeliver", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修物料配置 修物料配置 POST /product/sku/updateMaterial */
|
||||
export async function postProductSkuUpdateMaterial(
|
||||
body: API.SkuServiceMaterialDO[],
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateMaterial", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改属性规格值 修改属性规格值 PUT /product/sku/updateProdProp */
|
||||
export async function putProductSkuUpdateProdProp(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuUpdateProdPropParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateProdProp", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增统一保存sku规格 更新sku规格 PUT /product/sku/updateProp */
|
||||
export async function putProductSkuUpdateProp(
|
||||
body: API.SkuPropVO,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateProp", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改属性下面规格值 修改属性下面规格值 PUT /product/sku/updatePropValue */
|
||||
export async function putProductSkuUpdatePropValue(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuUpdatePropValueParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updatePropValue", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改扩展服务信息配置(遗体接运扩展服务,遗体清洁配置,追思告别配置,骨灰处理配置......) 修改扩展服务信息配置(遗体接运扩展服务,遗体清洁配置,追思告别配置,骨灰处理配置......) POST /product/sku/updateServiceDetails */
|
||||
export async function postProductSkuUpdateServiceDetails(
|
||||
body: API.SkuServiceDetailsDO[],
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateServiceDetails", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改单品上下架 修改单品上下架 PUT /product/sku/updateSkuShelf */
|
||||
export async function putProductSkuUpdateSkuShelf(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuUpdateSkuShelfParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateSkuShelf", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改单品上下架 修改单品上下架 POST /product/sku/updateSkuShelf */
|
||||
export async function postProductSkuUpdateSkuShelf(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductSkuUpdateSkuShelfParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateSkuShelf", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量上下架 批量上下架 PUT /product/sku/updateSkuShelfList */
|
||||
export async function putProductSkuUpdateSkuShelfList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.putProductSkuUpdateSkuShelfListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateSkuShelfList", {
|
||||
method: "PUT",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量上下架 批量上下架 POST /product/sku/updateSkuShelfList */
|
||||
export async function postProductSkuUpdateSkuShelfList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.postProductSkuUpdateSkuShelfListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>("/product/sku/updateSkuShelfList", {
|
||||
method: "POST",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改接运地址配置 修改接运地址配置 POST /product/sku/updateTransportAdress */
|
||||
export async function postProductSkuUpdateTransportAdress(
|
||||
body: API.SkuServiceTransportDO[],
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.CommonResultBoolean>(
|
||||
"/product/sku/updateTransportAdress",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
2139
src/services/prodApi/typings.d.ts
vendored
2139
src/services/prodApi/typings.d.ts
vendored
File diff suppressed because it is too large
Load Diff
348
src/services/trade/order/detail.ts
Normal file
348
src/services/trade/order/detail.ts
Normal file
@@ -0,0 +1,348 @@
|
||||
export interface TradeServeInfo {
|
||||
boneInfo?: {
|
||||
boneUrl?: string[];
|
||||
diedReason?: string;
|
||||
diedTime?: string;
|
||||
petName?: string;
|
||||
petType?: string;
|
||||
weight?: string;
|
||||
};
|
||||
subInfo?: {
|
||||
changeRule?: string;
|
||||
merchantRemark?: string;
|
||||
pickUpAddress?: string;
|
||||
sendAddress?: string;
|
||||
subOrder?: string;
|
||||
subType?: string;
|
||||
userRemark?: string;
|
||||
};
|
||||
userId?: number;
|
||||
userMobile?: number;
|
||||
userName?: string;
|
||||
userNickName?: string;
|
||||
userRemark?: string;
|
||||
}
|
||||
export interface TradeExtendCostInfo {
|
||||
chargeType?: string; //收费方式
|
||||
costName?: string; //超区域服务费
|
||||
serveArea?: string; //可服务区域
|
||||
targetArea?: string; //目标区域
|
||||
weight?: string; //体型/体重
|
||||
respTime?: string; //响应时间
|
||||
respMode?: string; //响应模式
|
||||
chargeTime?: string; //收费时段
|
||||
payInfo?: {
|
||||
payPrice?: string;
|
||||
totalPrice?: string;
|
||||
discountPrice?: string;
|
||||
};
|
||||
refundPrice?: string;
|
||||
serveExtFee?: string; //服务附加费
|
||||
}
|
||||
export interface Serve {
|
||||
count?: string;
|
||||
handPrice?: number;
|
||||
price?: string;
|
||||
serveDesc?: string;
|
||||
serveName?: string;
|
||||
serveUrl?: string;
|
||||
}
|
||||
export interface TradeExtendServeInfo {
|
||||
discountPrice?: string;
|
||||
payPrice?: number;
|
||||
refundCount?: string;
|
||||
refundMoney?: string;
|
||||
serve?: Serve[];
|
||||
tempType?: number;
|
||||
totalPrice?: string;
|
||||
serveType?: string; //"处理方式"
|
||||
serveTitle?: string;
|
||||
address?: string;
|
||||
deliveryType?: string;
|
||||
sendUser?: string;
|
||||
userMobile?: string;
|
||||
receiveUser?: string;
|
||||
}
|
||||
|
||||
export interface TradeOrderDetailRespVO {
|
||||
/**
|
||||
* 取消原因
|
||||
*/
|
||||
cancelReason?: string;
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
cancelTime?: string;
|
||||
/**
|
||||
* 下单时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 优惠金额
|
||||
*/
|
||||
discountPrice?: number;
|
||||
/**
|
||||
* 财务状态
|
||||
*/
|
||||
financeStatus?: number;
|
||||
/**
|
||||
* 订单完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 商品列表
|
||||
*/
|
||||
items?: Item[];
|
||||
/**
|
||||
* 实收金额
|
||||
*/
|
||||
livePrice?: number;
|
||||
/**
|
||||
* 商家备注
|
||||
*/
|
||||
merchantRemark?: string;
|
||||
/**
|
||||
* 订单类目id
|
||||
*/
|
||||
orderCategoryId?: number;
|
||||
/**
|
||||
* 订单类目名称
|
||||
*/
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
orderNum?: string;
|
||||
/**
|
||||
* 订单状态
|
||||
* {@link TradeOrderStatusEnum#getStatus()}
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源
|
||||
* {@link TerminalEnum#getTerminal()}
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 订单类型
|
||||
* {@link TradeOrderTypeEnum#getType()}
|
||||
*/
|
||||
orderType?: number;
|
||||
/**
|
||||
* 支付渠道 (线上线下)
|
||||
*/
|
||||
payChannelCode?: number;
|
||||
/**
|
||||
* 交易流水号
|
||||
*/
|
||||
payOrderId?: string;
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType?: number;
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 保障状态
|
||||
*/
|
||||
propertyStatus?: number;
|
||||
/**
|
||||
* 保障时间
|
||||
*/
|
||||
propertyTime?: string;
|
||||
/**
|
||||
* 退款金额
|
||||
*/
|
||||
refundPrice?: number;
|
||||
/**
|
||||
* 退款时间
|
||||
*/
|
||||
refundTime?: string;
|
||||
/**
|
||||
* 订单状态流转记录
|
||||
*/
|
||||
statusList?: TradeOrderStatusRespVo[];
|
||||
/**
|
||||
* 附加费信息(order_serve_info配置)
|
||||
*/
|
||||
tradeExtendCostInfo?: TradeExtendCostInfo[];
|
||||
/**
|
||||
* 扩展服务信息(order_serve_info配置)
|
||||
*/
|
||||
tradeExtendServeInfo?: TradeExtendServeInfo[][];
|
||||
/**
|
||||
* 服务信息(order_serve_info配置)
|
||||
*/
|
||||
tradeServeInfo?: TradeServeInfo;
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
userAvatar?: string;
|
||||
/**
|
||||
* 用户编号
|
||||
*/
|
||||
userId?: number;
|
||||
/**
|
||||
* 用户手机号
|
||||
*/
|
||||
userMobile?: string;
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
userName?: string;
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
userNickName?: string;
|
||||
/**
|
||||
* 用户备注 - 必填,示例:你猜
|
||||
*/
|
||||
userRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderDetailRespVO.Item
|
||||
*
|
||||
* Item
|
||||
*/
|
||||
export interface Item {
|
||||
/**
|
||||
* 购买数量 - 必填,示例:1
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 商品优惠(总) - 必填,示例:100
|
||||
*/
|
||||
discountPrice?: number;
|
||||
/**
|
||||
* 成本价
|
||||
*/
|
||||
expensePrice?: number;
|
||||
/**
|
||||
* 到手价
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 订单类目id
|
||||
*/
|
||||
orderCategoryId?: number;
|
||||
/**
|
||||
* 订单类目名称
|
||||
*/
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 商品实付金额(总) - 必填,示例:100
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 商品图片 - 必填,示例:https://www.iocoder.cn/1.png
|
||||
*/
|
||||
picUrl?: string;
|
||||
/**
|
||||
* 商品原价(单) - 必填,示例:100
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 属性数组
|
||||
*/
|
||||
properties?: string;
|
||||
/**
|
||||
* 累计退款数量
|
||||
*/
|
||||
refundCount?: number;
|
||||
/**
|
||||
* 累计退款金额
|
||||
*/
|
||||
refundPrice?: number;
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
serveContent?: string;
|
||||
/**
|
||||
* 店铺logo
|
||||
*/
|
||||
shopLogo?: string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
shopName?: string;
|
||||
/**
|
||||
* 商品 SKU 编号 - 必填,示例:1
|
||||
*/
|
||||
skuId?: number;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品 SPU 编号 - 必填,示例:1
|
||||
*/
|
||||
spuId?: number;
|
||||
/**
|
||||
* 商品 SPU 名称 - 必填,示例:芋道源码
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 商品总价
|
||||
*/
|
||||
totalPrice?: number;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderStatusRespVo
|
||||
*
|
||||
* TradeOrderStatusRespVo
|
||||
*/
|
||||
export interface TradeOrderStatusRespVo {
|
||||
/**
|
||||
* 操作后状态
|
||||
*/
|
||||
afterStatus?: number;
|
||||
/**
|
||||
* 操作前状态
|
||||
*/
|
||||
beforeStatus?: number;
|
||||
/**
|
||||
* 订单日志信息
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
* 订单日志信息
|
||||
*/
|
||||
createTime?: string;
|
||||
id?: number;
|
||||
/**
|
||||
* 操作类型
|
||||
*
|
||||
* {@link TradeOrderOperateTypeEnum}
|
||||
*/
|
||||
operateType?: number;
|
||||
/**
|
||||
* 订单号
|
||||
*
|
||||
* 关联{@link TradeOrderDO#getId()}
|
||||
*/
|
||||
orderId?: number;
|
||||
}
|
||||
@@ -1,425 +1,6 @@
|
||||
import { request } from "@umijs/max";
|
||||
export interface TradeReq {
|
||||
/**
|
||||
* 售后状态,示例:1
|
||||
*/
|
||||
afterSaleStatus?: number;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string[];
|
||||
/**
|
||||
* 财务状态,示例:1
|
||||
*/
|
||||
financeStatus?: number;
|
||||
/**
|
||||
* 卖家名称
|
||||
*/
|
||||
merchantName?: string;
|
||||
/**
|
||||
* 订单类目id,示例:1
|
||||
*/
|
||||
orderCategoryId?: number;
|
||||
/**
|
||||
* 订单状态,示例:1
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源,示例:1
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 页码,从 1 开始", example = "1
|
||||
*/
|
||||
pageNo?: number;
|
||||
/**
|
||||
* 每页条数,最大值为 100"
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* 聚合检索字段(商品名称,商品id,订单号)
|
||||
*/
|
||||
prodSearch?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
subTime?: string[];
|
||||
/**
|
||||
* 预约类型,示例:1
|
||||
*/
|
||||
subType?: number;
|
||||
/**
|
||||
* 聚合检索字段 买家昵称/手机号
|
||||
*/
|
||||
userSearch?: string;
|
||||
}
|
||||
export interface TradeOrderPageRespVO {
|
||||
/**
|
||||
* 购买的商品数量
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 下单时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 财务状态
|
||||
*/
|
||||
financeStatus?: string;
|
||||
/**
|
||||
* 到手价
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 订单类目
|
||||
*/
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 订单流水号
|
||||
*/
|
||||
orderNum?: string;
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
subTime?: string;
|
||||
/**
|
||||
* 到手价
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType?: string;
|
||||
/**
|
||||
* 商品图片
|
||||
*/
|
||||
picUrl?: string;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 服务地址
|
||||
*/
|
||||
serveAddress?: string;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
userAvatar?: string;
|
||||
/**
|
||||
* 用户编号
|
||||
*/
|
||||
userId?: number;
|
||||
/**
|
||||
* 用户手机号
|
||||
*/
|
||||
userMobile?: string;
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
userName?: string;
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
userNickName?: string;
|
||||
/**
|
||||
* 用户备注 - 必填,示例:你猜
|
||||
*/
|
||||
userRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回数据
|
||||
*
|
||||
* TradeOrderDetailRespVO
|
||||
*/
|
||||
export interface TradeOrderDetailRespVO {
|
||||
/**
|
||||
* 附加费信息
|
||||
*/
|
||||
tradeExtendCostInfo?: TradeExtendCostInfo;
|
||||
/**
|
||||
* 扩展服务信息
|
||||
*/
|
||||
tradeExtendServeInfo?: TradeExtendServeInfo;
|
||||
/**
|
||||
* 基本信息
|
||||
*/
|
||||
tradeOrderInfoBase?: TradeOrderBaseInfo;
|
||||
/**
|
||||
* 商品信息
|
||||
*/
|
||||
tradeProductInfo?: TradeProductInfo;
|
||||
/**
|
||||
* 服务信息
|
||||
*/
|
||||
tradeServeInfo?: TradeServeInfo;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 附加费信息
|
||||
*
|
||||
* TradeExtendCostInfo
|
||||
*/
|
||||
export interface TradeExtendCostInfo {
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*
|
||||
* MapObject
|
||||
*/
|
||||
export interface MapObject {
|
||||
key?: { [key: string]: any };
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 扩展服务信息
|
||||
*
|
||||
* TradeExtendServeInfo
|
||||
*/
|
||||
export interface TradeExtendServeInfo {
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 基本信息
|
||||
*
|
||||
* TradeOrderBaseInfo
|
||||
*/
|
||||
export interface TradeOrderBaseInfo {
|
||||
/**
|
||||
* 取消原因
|
||||
*/
|
||||
cancelReason?: string;
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
cancelTime?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 优惠金额
|
||||
*/
|
||||
discountPrice?: string;
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
/**
|
||||
* 订单id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* 实收金额
|
||||
*/
|
||||
livePrice?: string;
|
||||
/**
|
||||
* 商家备注
|
||||
*/
|
||||
merchantRemark?: string;
|
||||
/**
|
||||
* 订单类目
|
||||
*/
|
||||
orderCategoryId?: string;
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
orderNo?: string;
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
orderStatus?: string;
|
||||
/**
|
||||
* 订单来源
|
||||
*/
|
||||
orderTerminal?: string;
|
||||
/**
|
||||
* 订单类型
|
||||
*/
|
||||
orderType?: string;
|
||||
/**
|
||||
* 支付渠道 (线上线下)
|
||||
*/
|
||||
payChannelCode?: string;
|
||||
/**
|
||||
* 交易流水号
|
||||
*/
|
||||
payOrderId?: string;
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
/**
|
||||
* 支付方式(支付宝微信)
|
||||
*/
|
||||
payType?: string;
|
||||
/**
|
||||
* 订单总价
|
||||
*/
|
||||
price?: string;
|
||||
/**
|
||||
* 保障状态
|
||||
*/
|
||||
propertyStatus?: string;
|
||||
/**
|
||||
* 保障时间
|
||||
*/
|
||||
propertyTime?: string;
|
||||
/**
|
||||
* 退款金额
|
||||
*/
|
||||
refundPrice?: string;
|
||||
/**
|
||||
* 退款时间
|
||||
*/
|
||||
refundTime?: string;
|
||||
/**
|
||||
* 用户信息
|
||||
*/
|
||||
userInfo?: string;
|
||||
userAvatar?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品信息
|
||||
*
|
||||
* TradeProductInfo
|
||||
*/
|
||||
export interface TradeProductInfo {
|
||||
/**
|
||||
* 购买数量
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 优惠金额
|
||||
*/
|
||||
discountPrice?: number;
|
||||
/**
|
||||
* 成本价
|
||||
*/
|
||||
expensePrice?: number;
|
||||
/**
|
||||
* 到手价(单价 - 优惠)
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 商品单价
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 保障
|
||||
*/
|
||||
properties?: string[];
|
||||
/**
|
||||
* 累计退款数量
|
||||
*/
|
||||
refundCount?: number;
|
||||
/**
|
||||
* 累计退款金额
|
||||
*/
|
||||
refundPrice?: number;
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
serveContent?: string;
|
||||
/**
|
||||
* 店铺log
|
||||
*/
|
||||
shopLogoUrl?: string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
shopName?: string;
|
||||
/**
|
||||
* skuid
|
||||
*/
|
||||
skuId?: number;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品规格图
|
||||
*/
|
||||
skuPicUrl?: string;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
spuId?: number;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 商品总价
|
||||
*/
|
||||
totalPrice?: number;
|
||||
/**
|
||||
* 商品单位
|
||||
*/
|
||||
unit?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务信息
|
||||
*
|
||||
* TradeServeInfo
|
||||
*/
|
||||
export interface TradeServeInfo {
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
import { TradeOrderPageRespVO, TradeReq } from "./list";
|
||||
import { TradeOrderDetailRespVO } from "./detail";
|
||||
|
||||
export const getTradeOrderPage = async (params: TradeReq) => {
|
||||
return request<PageResult<TradeOrderPageRespVO[]>>("/trade/order/page", {
|
||||
@@ -429,8 +10,10 @@ export const getTradeOrderPage = async (params: TradeReq) => {
|
||||
};
|
||||
|
||||
export const getTradeOrderDetail = async (id: number) => {
|
||||
return request<IResponse<TradeOrderDetailRespVO>>("/trade/order/get-detail", {
|
||||
return request<TradeOrderDetailRespVO>("/trade/order/get-detail", {
|
||||
method: "GET",
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
|
||||
export { TradeOrderPageRespVO, TradeOrderDetailRespVO, TradeReq };
|
||||
|
||||
194
src/services/trade/order/list.ts
Normal file
194
src/services/trade/order/list.ts
Normal file
@@ -0,0 +1,194 @@
|
||||
/**
|
||||
* CommonResultPageResultTradeOrderPageRespVO
|
||||
*/
|
||||
|
||||
/**
|
||||
* com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderPageRespVO
|
||||
*
|
||||
* TradeOrderPageRespVO
|
||||
*/
|
||||
export interface TradeOrderPageRespVO {
|
||||
serveAddress?: string;
|
||||
subTime?: string;
|
||||
payPrice?: string;
|
||||
payType?: string;
|
||||
financeStatus?: string;
|
||||
/**
|
||||
* 下单时间
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 订单完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 订单项列表
|
||||
*/
|
||||
items?: Item[];
|
||||
/**
|
||||
* 订单流水号
|
||||
*/
|
||||
orderNum?: string;
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 订单类型
|
||||
* {@link TradeOrderTypeEnum#getType()}
|
||||
*/
|
||||
orderType?: number;
|
||||
/**
|
||||
* 支付剩余时间
|
||||
*/
|
||||
payLastTime?: string;
|
||||
/**
|
||||
* 店铺log
|
||||
*/
|
||||
shopLogo?: string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
shopName?: string;
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
userAvatar?: string;
|
||||
/**
|
||||
* 用户编号
|
||||
*/
|
||||
userId?: number;
|
||||
/**
|
||||
* 用户手机号
|
||||
*/
|
||||
userMobile?: string;
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
userName?: string;
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
userNickName?: string;
|
||||
/**
|
||||
* 用户备注 - 必填,示例:你猜
|
||||
*/
|
||||
userRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderPageRespVO.Item
|
||||
*
|
||||
* Item
|
||||
*/
|
||||
export interface Item {
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* 购买数量 - 必填,示例:1
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 商品优惠(总) - 必填,示例:100
|
||||
*/
|
||||
discountPrice?: number;
|
||||
/**
|
||||
* 到手价
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 商品实付金额(总) - 必填,示例:100
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 商品图片 - 必填,示例:https://www.iocoder.cn/1.png
|
||||
*/
|
||||
picUrl?: string;
|
||||
/**
|
||||
* 商品原价(单) - 必填,示例:100
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 服务地址
|
||||
*/
|
||||
serveAddress?: string;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品 SPU 名称 - 必填,示例:芋道源码
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
subTime?: string;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
}
|
||||
|
||||
export interface TradeReq {
|
||||
/**
|
||||
* 售后状态,示例:1
|
||||
*/
|
||||
afterSaleStatus?: number;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string[];
|
||||
/**
|
||||
* 财务状态,示例:1
|
||||
*/
|
||||
financeStatus?: number;
|
||||
/**
|
||||
* 卖家名称
|
||||
*/
|
||||
merchantName?: string;
|
||||
/**
|
||||
* 订单类目id,示例:1
|
||||
*/
|
||||
orderCategoryId?: number;
|
||||
/**
|
||||
* 订单状态,示例:1
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源,示例:1
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 页码,从 1 开始", example = "1
|
||||
*/
|
||||
pageNo: number;
|
||||
/**
|
||||
* 每页条数,最大值为 100"
|
||||
*/
|
||||
pageSize: number;
|
||||
/**
|
||||
* 聚合检索字段(商品名称,商品id,订单号)
|
||||
*/
|
||||
prodSearch?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
subTime?: string[];
|
||||
/**
|
||||
* 预约类型,示例:1
|
||||
*/
|
||||
subType?: number;
|
||||
/**
|
||||
* 聚合检索字段 买家昵称/手机号
|
||||
*/
|
||||
userSearch?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user