You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
315 B
10 lines
315 B
package com.example.datacollect.model;
|
|
import java.util.List;
|
|
// 定义数据访问接口,解耦 Command 和具体 List 实现
|
|
public interface DataService {
|
|
void saveArticle(Article article);
|
|
List<Article> getAllArticles();
|
|
void clear();
|
|
//新增删除方法
|
|
void removeArticle(int index);
|
|
}
|
|
|