feat(project): rebuild schedule supply module with split structure

This commit is contained in:
2026-02-21 11:52:09 +08:00
parent a53db5f0a4
commit 270c51de59
21 changed files with 2368 additions and 617 deletions

View File

@@ -424,25 +424,17 @@ export interface ChangeProductLabelStatusDto {
storeId: string;
}
/** 时段条目。 */
export interface ProductScheduleSlotDto {
endTime: string;
id: string;
startTime: string;
weekDays: number[];
}
/** 时段模板。 */
export interface ProductScheduleDto {
description: string;
endTime: string;
id: string;
name: string;
productCount: number;
productIds: string[];
slots: ProductScheduleSlotDto[];
sort: number;
startTime: string;
status: ProductSwitchStatus;
updatedAt: string;
weekDays: number[];
}
/** 时段查询参数。 */
@@ -454,19 +446,14 @@ export interface ProductScheduleQuery {
/** 保存时段参数。 */
export interface SaveProductScheduleDto {
description: string;
endTime: string;
id?: string;
name: string;
productIds: string[];
slots: Array<{
endTime: string;
id?: string;
startTime: string;
weekDays: number[];
}>;
sort: number;
startTime: string;
status: ProductSwitchStatus;
storeId: string;
weekDays: number[];
}
/** 删除时段参数。 */