feat:增加消息记录功能
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:sweet_chat_app/models/user.dart';
|
||||
|
||||
part 'auth.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Auth {
|
||||
final int userId;
|
||||
final User user;
|
||||
|
||||
Auth({required this.userId});
|
||||
Auth({required this.user});
|
||||
|
||||
factory Auth.fromJson(Map<String, dynamic> json) => _$AuthFromJson(json);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user