Skip to content

Commit ae2fc60

Browse files
committed
refactor: correct the stageName to avgName for StoryInfo
1 parent 75076aa commit ae2fc60

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

generator/plugin-offline/src/main/kotlin/vip/cdms/arkreader/gradle/analyze/GenAppScoreImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class GenAppScoreImpl(private val context: StaticContext) {
7171
stories.forEach { story ->
7272
add(
7373
"new \$T(\$S, \$S, \$S, \$L) {\n",
74-
StaticContext.StoryInfoImplClass, story.name, story.stageName, story.summary, story.wordcount
74+
StaticContext.StoryInfoImplClass, story.name, story.avgName, story.summary, story.wordcount
7575
)
7676
indent()
7777
add("@Override\n")

generator/resource-network/src/main/java/vip/cdms/arkreader/resource/network/implement/AppScoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static StoryInfo[] getStoryInfos(JsonArray infoUnlockDatas) {
8282
.storyGroup(storyInfo.get("storyGroup").asString())
8383
.storyTxt(storyInfo.get("storyTxt").asString())
8484
.name(storyInfo.get("storyName").asString())
85-
.stageName(storyCode.isBlank() ? avgTag : (storyCode + " " + avgTag))
85+
.avgName(storyCode.isBlank() ? avgTag : (storyCode + " " + avgTag))
8686
.build();
8787
}
8888
return infos;

generator/resource-network/src/main/java/vip/cdms/arkreader/resource/network/implement/StoryInfoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class StoryInfoImpl implements StoryInfo {
1414
private String storyTxt;
1515

1616
private String name;
17-
private String stageName;
17+
private String avgName;
1818

1919
@Override
2020
public String getSummary() {

generator/resource-structure/src/main/java/vip/cdms/arkreader/resource/StoryInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public interface StoryInfo extends WordCountable {
66
String getName();
77

8-
String getStageName();
8+
String getAvgName();
99

1010
String getSummary();
1111

0 commit comments

Comments
 (0)