From f290cb63568491fbcb73fa8703396b59e620fc13 Mon Sep 17 00:00:00 2001 From: baihuijuan <3078948726@qq.com> Date: Thu, 21 May 2026 15:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90AI=E5=8D=8F=E5=90=8C=E5=AE=A1?= =?UTF-8?q?=E8=AE=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- w10/AnalyzeCommand.java | 4 ++++ w10/article.java | 27 +++++++++++++++++++++++++++ w10/articlerepository.java | 4 ++++ 3 files changed, 35 insertions(+) create mode 100644 w10/AnalyzeCommand.java create mode 100644 w10/article.java create mode 100644 w10/articlerepository.java diff --git a/w10/AnalyzeCommand.java b/w10/AnalyzeCommand.java new file mode 100644 index 0000000..8064112 --- /dev/null +++ b/w10/AnalyzeCommand.java @@ -0,0 +1,4 @@ +package PACKAGE_NAME; + +public class AnalyzeCommand { +} diff --git a/w10/article.java b/w10/article.java new file mode 100644 index 0000000..6fe5fe9 --- /dev/null +++ b/w10/article.java @@ -0,0 +1,27 @@ +import java.util.Date; + +public class Article { + private String title; + private String content; + private String url; + private String author; // 新增 + private Date publishDate; // 新增 + + // 构造器 + public Article(String title, String content, String url, String author, Date publishDate) { + this.title = title; + this.content = content; + this.url = url; + this.author = author; + this.publishDate = publishDate; + } + + // Getters and Setters + public String getAuthor() { return author; } + public void setAuthor(String author) { this.author = author; } + + public Date getPublishDate() { return publishDate; } + public void setPublishDate(Date publishDate) { this.publishDate = publishDate; } + + // 原有字段的 getter/setter... +} \ No newline at end of file diff --git a/w10/articlerepository.java b/w10/articlerepository.java new file mode 100644 index 0000000..d14d42c --- /dev/null +++ b/w10/articlerepository.java @@ -0,0 +1,4 @@ +package PACKAGE_NAME; + +public class articlerepository { +}