feat:增加服务器接口模块

This commit is contained in:
2026-06-17 23:40:14 +08:00
parent ddd1c1960e
commit b816cdbc1c
18 changed files with 693 additions and 69 deletions

20
lib/models/ImMessage.dart Normal file
View File

@@ -0,0 +1,20 @@
class ImMessage {
final String type;
final String from;
final String to;
final String content;
ImMessage({
required this.type,
required this.from,
required this.to,
required this.content,
});
Map<String, dynamic> toJson() => {
'type': type,
'from': from,
'to': to,
'content': content,
};
}