| | |
| | | import androidx.room.Update; |
| | | |
| | | import com.dayu.pipirrapp.bean.db.CenterPointBean; |
| | | import com.dayu.pipirrapp.bean.db.TagBean; |
| | | |
| | | import io.reactivex.rxjava3.core.Maybe; |
| | | |
| | | |
| | | /** |
| | | * author: zuo |
| | |
| | | */ |
| | | @Dao |
| | | public interface CenterPointDao { |
| | | @Query("SELECT * FROM CenterPointBean LIMIT 1") |
| | | Maybe<CenterPointBean> findFirst(); |
| | | |
| | | @Insert(onConflict = OnConflictStrategy.REPLACE) |
| | | void insert(CenterPointBean adminData); |
| | | void insert(CenterPointBean centerPointBean); |
| | | |
| | | @Update |
| | | void update(CenterPointBean adminData); |
| | |
| | | @Delete |
| | | void delete(CenterPointBean adminData); |
| | | |
| | | @Query("select * from CenterPointBean limit 1") |
| | | CenterPointBean findFirst(); |
| | | } |