马良AI写作初始化仓库
This commit is contained in:
41
AINoval/lib/models/compose_preview.dart
Normal file
41
AINoval/lib/models/compose_preview.dart
Normal file
@@ -0,0 +1,41 @@
|
||||
class ComposeChapterPreview {
|
||||
final int index;
|
||||
final String title;
|
||||
final String outline;
|
||||
final String content;
|
||||
|
||||
const ComposeChapterPreview({
|
||||
required this.index,
|
||||
this.title = '',
|
||||
this.outline = '',
|
||||
this.content = '',
|
||||
});
|
||||
|
||||
ComposeChapterPreview copyWith({
|
||||
String? title,
|
||||
String? outline,
|
||||
String? content,
|
||||
}) {
|
||||
return ComposeChapterPreview(
|
||||
index: index,
|
||||
title: title ?? this.title,
|
||||
outline: outline ?? this.outline,
|
||||
content: content ?? this.content,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class ComposeReadyInfo {
|
||||
final bool ready;
|
||||
final String reason;
|
||||
final String novelId;
|
||||
final String sessionId;
|
||||
const ComposeReadyInfo({
|
||||
required this.ready,
|
||||
required this.reason,
|
||||
required this.novelId,
|
||||
required this.sessionId,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user