pull/1705/head
			
			
		
		
							parent
							
								
									edf577a40c
								
							
						
					
					
						commit
						20ca357884
					
				
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						@ -0,0 +1,23 @@ | 
				
			||||
package io.legado.app.data.dao | 
				
			||||
 | 
				
			||||
import androidx.room.* | 
				
			||||
import io.legado.app.data.entities.KeyboardAssist | 
				
			||||
 | 
				
			||||
@Dao | 
				
			||||
interface KeyboardAssistsDao { | 
				
			||||
 | 
				
			||||
    @get:Query("select * from keyboardAssists") | 
				
			||||
    val all: List<KeyboardAssist> | 
				
			||||
 | 
				
			||||
    @Query("select * from keyboardAssists where type = :type") | 
				
			||||
    fun getByType(type: Int): List<KeyboardAssist> | 
				
			||||
 | 
				
			||||
    @Insert(onConflict = OnConflictStrategy.REPLACE) | 
				
			||||
    fun insert(vararg keyboardAssist: KeyboardAssist) | 
				
			||||
 | 
				
			||||
    @Update | 
				
			||||
    fun update(vararg keyboardAssist: KeyboardAssist) | 
				
			||||
 | 
				
			||||
    @Delete | 
				
			||||
    fun delete(vararg keyboardAssist: KeyboardAssist) | 
				
			||||
} | 
				
			||||
@ -0,0 +1,16 @@ | 
				
			||||
package io.legado.app.data.entities | 
				
			||||
 | 
				
			||||
import androidx.room.ColumnInfo | 
				
			||||
import androidx.room.Entity | 
				
			||||
 | 
				
			||||
@Entity(tableName = "keyboardAssists", primaryKeys = ["type", "key"]) | 
				
			||||
data class KeyboardAssist( | 
				
			||||
    @ColumnInfo(defaultValue = "0") | 
				
			||||
    val type: Int = 0, | 
				
			||||
    @ColumnInfo(defaultValue = "") | 
				
			||||
    val key: String, | 
				
			||||
    @ColumnInfo(defaultValue = "") | 
				
			||||
    val value: String, | 
				
			||||
    @ColumnInfo(defaultValue = "0") | 
				
			||||
    val serialNo: Int | 
				
			||||
) | 
				
			||||
@ -1,4 +0,0 @@ | 
				
			||||
package io.legado.app.data.entities | 
				
			||||
 | 
				
			||||
class KeyboardHelp { | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue