| package com.dayu.qiheonlinelibrary.dao; | 
|   | 
| import androidx.room.Dao; | 
| import androidx.room.Delete; | 
| import androidx.room.Insert; | 
| import androidx.room.OnConflictStrategy; | 
| import androidx.room.Query; | 
| import androidx.room.Update; | 
|   | 
| import com.dayu.qiheonlinelibrary.dbBean.IpBean; | 
|   | 
|   | 
| /** | 
|  * Copyright (C), 2023, | 
|  * Author: zuo | 
|  * Date: 2023-11-09 11:57 | 
|  * Description: | 
|  */ | 
| @Dao | 
| public interface IpDao { | 
|     @Insert(onConflict = OnConflictStrategy.REPLACE) | 
|     void insert(IpBean IpBean); | 
|   | 
|     @Update | 
|     void update(IpBean IpBean); | 
|   | 
|     @Delete | 
|     void delete(IpBean IpBean); | 
|   | 
|     @Query("select  * from IpBean limit 1") | 
|     IpBean findFirst(); | 
| } |