public abstract class BaseOperService<T extends BaseModel> extends BaseDataService
Constructor and Description |
---|
BaseOperService(String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(T t)
添加实体
|
void |
deleteItem(String id)
删除实体
|
T |
getItem(String id)
工具id 获取 实体
|
com.alibaba.fastjson.JSONObject |
getJSONObject() |
List<T> |
list()
获取所有数据
|
<E> List<E> |
list(Class<E> cls) |
void |
updateItem(T t)
修改实体
|
deleteJson, getDataFilePath, getJSONObject, getJsonObjectById, saveJson, updateJson
public BaseOperService(String fileName)
Copyright © 2017–2022. All rights reserved.