|
|
@ -34,6 +34,9 @@ interface BookGroupDao { |
|
|
|
@Query("update book_groups set show = 1 where groupId = :groupId") |
|
|
|
@Query("update book_groups set show = 1 where groupId = :groupId") |
|
|
|
fun enableGroup(groupId: Long) |
|
|
|
fun enableGroup(groupId: Long) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Query("select groupName from book_groups where groupId > 0 and (groupId & :id) > 0") |
|
|
|
|
|
|
|
fun getGroupNames(id: Long): List<String> |
|
|
|
|
|
|
|
|
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
fun insert(vararg bookGroup: BookGroup) |
|
|
|
fun insert(vararg bookGroup: BookGroup) |
|
|
|
|
|
|
|
|
|
|
|