文案ok
This commit is contained in:
@@ -24,6 +24,21 @@ class PlanStepDto {
|
||||
stepExplain = json["step_explain"];
|
||||
stepStatus = json["step_status"];
|
||||
}
|
||||
|
||||
/// 浅拷贝(只复制字段,不生成新 id)
|
||||
PlanStepDto copyWith({
|
||||
int? id,
|
||||
String? stepIcon,
|
||||
String? stepContent,
|
||||
String? stepExplain,
|
||||
int? stepStatus,
|
||||
}) => PlanStepDto(
|
||||
id: id ?? this.id,
|
||||
stepIcon: stepIcon ?? this.stepIcon,
|
||||
stepContent: stepContent ?? this.stepContent,
|
||||
stepExplain: stepExplain ?? this.stepExplain,
|
||||
stepStatus: stepStatus ?? this.stepStatus,
|
||||
);
|
||||
}
|
||||
|
||||
class PlanDetailDto {
|
||||
|
||||
Reference in New Issue
Block a user