14 changed files with 71 additions and 0 deletions
@ -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...
|
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class ArticleRepository { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class BlogStrategy { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class Command { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class CrawlCommand { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class CrawlStrategy { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class CrawlerException { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class HnuNewsStrategy { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class Main { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class NetworkException { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class NewsStrategy { |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
package PACKAGE_NAME; |
|||
|
|||
public class ParseException { |
|||
} |
|||
Loading…
Reference in new issue