feat(project): rebuild schedule supply module with split structure
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
/** 删除时段参数。 */
|
||||
|
||||
Reference in New Issue
Block a user