zuoxiao
2024-03-04 275fbc47873d5c4f78a57b4fa58a08e2e7af2dc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.dayu.recharge.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.recharge.dbBean.IpBean;
import com.dayu.recharge.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();
}