Update SearchHistory.java

fh
pvcerb4ut 1 year ago
parent 7d939b5649
commit a2b66ec38c

@ -3,26 +3,68 @@ package com.example.musicplayer.entiy;
import org.litepal.crud.LitePalSupport;
/**
* Created by on 2018/11/29.
* <pre>
* author :
* time : 2018/11/29
* desc :
* 便便
* </pre>
*/
// SearchHistory类继承自LitePalSupport类借助LitePal框架提供的功能可以方便地与数据库进行交互
// 例如将搜索历史信息持久化存储到数据库中,以便后续能从数据库里查询特定的搜索历史记录、更新已有记录的内容,
// 或者根据业务需求删除某些不再需要的搜索历史记录等,有助于高效地管理用户的搜索历史数据。
public class SearchHistory extends LitePalSupport {
/**
*
*
* 便
*/
String history;
/**
*
*
* 便
*/
int id;
/**
*
*
* 便
* @return
*/
public String getHistory() {
return history;
}
/**
*
* SearchHistory
* 便使
* @param history
*/
public void setHistory(String history) {
this.history = history;
}
/**
*
*
*
* @return
*/
public int getId() {
return id;
}
/**
*
*
* 使
* SearchHistory
* @param id
*/
public void setId(int id) {
this.id = id;
}
}
}
Loading…
Cancel
Save