You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
506 B
17 lines
506 B
// import 'package:floor/floor.dart'; |
|
// import 'package:huixiang/im/database/message.dart'; |
|
// |
|
// |
|
// @dao |
|
// abstract class MessageDao { |
|
// |
|
// @Query('SELECT * FROM Message WHERE toId = :toId') |
|
// Stream<List<Message>> findMessageByToId(int toId); |
|
// |
|
// @insert |
|
// Future<void> insertMessage(Message message); |
|
// |
|
// @Query('SELECT * FROM Message WHERE toId = :userId OR fromId = :userId GROUP BY toId,fromId ORDER BY time DESC') |
|
// Future<List<Message>> findMessageByGroup(int userId); |
|
// |
|
// } |