add group fuc

This commit is contained in:
hrxiang
2021-07-08 18:41:00 +08:00
parent 073b91ba99
commit 3acbacda6d
26 changed files with 536 additions and 141 deletions

View File

@@ -1,5 +1,5 @@
class GroupInfo {
String? groupID;
String groupID;
String? groupName;
String? notification;
String? introduction;
@@ -9,7 +9,7 @@ class GroupInfo {
int? memberCount;
GroupInfo(
{this.groupID,
{required this.groupID,
this.groupName,
this.notification,
this.introduction,
@@ -18,8 +18,8 @@ class GroupInfo {
this.createTime,
this.memberCount});
GroupInfo.fromJson(Map<String, dynamic> json) {
groupID = json['groupID'];
GroupInfo.fromJson(Map<String, dynamic> json): groupID = json['groupID'] {
/*groupID = json['groupID'];*/
groupName = json['groupName'];
notification = json['notification'];
introduction = json['introduction'];
@@ -126,7 +126,7 @@ class GroupInviteResult {
class GroupMemberRole {
String? uid;
int? setRole; //0普通成员2管理员
int? setRole;
GroupMemberRole({this.uid, this.setRole});