package com.example.datacollect.model; import java.util.List; // 定义数据访问接口,解耦 Command 和具体 List 实现 public interface DataService { void saveArticle(Article article); List
getAllArticles(); void clear(); //新增删除方法 void removeArticle(int index); }