feat: 1:1还原加料管理页面与交互
This commit is contained in:
@@ -313,6 +313,7 @@ export interface ProductAddonItemDto {
|
||||
id: string;
|
||||
name: string;
|
||||
price: number;
|
||||
stock: number;
|
||||
sort: number;
|
||||
status: ProductSwitchStatus;
|
||||
}
|
||||
@@ -350,6 +351,7 @@ export interface SaveProductAddonGroupDto {
|
||||
price: number;
|
||||
sort: number;
|
||||
status: ProductSwitchStatus;
|
||||
stock: number;
|
||||
}>;
|
||||
maxSelect: number;
|
||||
minSelect: number;
|
||||
@@ -374,6 +376,13 @@ export interface ChangeProductAddonGroupStatusDto {
|
||||
storeId: string;
|
||||
}
|
||||
|
||||
/** 绑定加料组商品参数。 */
|
||||
export interface BindProductAddonGroupProductsDto {
|
||||
groupId: string;
|
||||
productIds: string[];
|
||||
storeId: string;
|
||||
}
|
||||
|
||||
/** 商品标签。 */
|
||||
export interface ProductLabelDto {
|
||||
color: string;
|
||||
@@ -696,6 +705,16 @@ export async function changeProductAddonGroupStatusApi(
|
||||
return requestClient.post('/product/addon/group/status', data);
|
||||
}
|
||||
|
||||
/** 绑定加料组商品。 */
|
||||
export async function bindProductAddonGroupProductsApi(
|
||||
data: BindProductAddonGroupProductsDto,
|
||||
) {
|
||||
return requestClient.post<ProductAddonGroupDto>(
|
||||
'/product/addon/group/products/bind',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获取标签列表。 */
|
||||
export async function getProductLabelListApi(params: ProductLabelQuery) {
|
||||
return requestClient.get<ProductLabelDto[]>('/product/label/list', {
|
||||
|
||||
Reference in New Issue
Block a user