pull/46/head
kunfei 5 years ago
parent 2861a0c4b4
commit 456a2e3043
  1. 13
      app/src/main/java/io/legado/app/data/dao/CookieDao.kt
  2. 11
      app/src/main/java/io/legado/app/data/entities/Cookie.kt

@ -0,0 +1,13 @@
package io.legado.app.data.dao
import androidx.room.Dao
import androidx.room.Query
@Dao
interface CookieDao {
@Query("select * from cookies where url = :url")
fun get(url: String)
}

@ -0,0 +1,11 @@
package io.legado.app.data.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "cookies")
data class Cookie(
@PrimaryKey
var url: String,
var cookie: String
)
Loading…
Cancel
Save