package com.renrenliao.im.db

import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

import com.renrenliao.im.bean.UserInfo
import com.renrenliao.im.im.AlarmEntity
import com.renrenliao.im.im.ImMsgBean
import kotlinx.coroutines.flow.Flow

/**
 **@ClassName AlarmDao
 **@Description
 **@Author gan
 **@Date 2022/6/17 15:39
 **/
//@Dao
//interface AvatarTagDao {
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun insertAvatarTag(avatarTag: AvatarTAG)
//
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun insertAvatarTags(avatarTags: List<AvatarTAG>)
//
//    @Query("SELECT * FROM avatarTag WHERE account_uid = :account_uid")
//    fun getAvatarsLiveData(account_uid:String): LiveData<List<AvatarTAG>>
//
//    @Query("SELECT * FROM avatarTag WHERE account_uid = :account_uid AND uid = :uid")
//    fun getAvatar(account_uid:String,uid:String): AvatarTAG
//
//    @Query("UPDATE avatarTag SET version = :newVersion WHERE account_uid = :account_uid AND uid = :uid")
//    fun updataAvatarVersion(account_uid:String,uid:String,newVersion:Long)
//
//    @Query("delete FROM avatarTag")
//    fun deleteAllAvatar()
//
//}