Skip to content

Commit

Permalink
feat: barrage entity
Browse files Browse the repository at this point in the history
  • Loading branch information
septem1997 committed Sep 10, 2022
1 parent aa66b4f commit 7799a12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/lib/common/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Request {

Future<List<RoomTag>> getHallData() async {
var r = await dio.get(
"/room/tags/rooms",
"room/tags/rooms",
options: _options,
);
List<RoomTag> list = [];
Expand Down
4 changes: 1 addition & 3 deletions android/lib/model/barrage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ class Barrage {
String content;
String sender;
String createTime;

int type;
Barrage({this.id, this.content, this.createTime, this.sender});

factory Barrage.fromJson(Map<String, dynamic> json) => _$BarrageFromJson(json);

Map<String, dynamic> toJson() => _$BarrageToJson(this);
}

0 comments on commit 7799a12

Please sign in to comment.