mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Dao追加
This commit is contained in:
parent
3be6185c21
commit
1c3fdf921d
|
@ -31,6 +31,9 @@ public interface DocumentDao {
|
||||||
@Query("SELECT * FROM Document WHERE public_path = :publicPath LIMIT :limit")
|
@Query("SELECT * FROM Document WHERE public_path = :publicPath LIMIT :limit")
|
||||||
List<DocumentEntity> findByPublicPathWithLimit(String publicPath, int limit);
|
List<DocumentEntity> findByPublicPathWithLimit(String publicPath, int limit);
|
||||||
|
|
||||||
|
@Query("SELECT * FROM Document ORDER BY created_at DESC LIMIT :limit")
|
||||||
|
List<DocumentEntity> getRecentDocument(int limit);
|
||||||
|
|
||||||
// Insert
|
// Insert
|
||||||
@Insert
|
@Insert
|
||||||
void insert(DocumentEntity document);
|
void insert(DocumentEntity document);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user