12 changed files with 430 additions and 30 deletions
Unified View
Diff Options
-
BINassets/images/phone_help.png
-
BINassets/images/realname_help.png
-
42lib/controller/mine/mine_controller.dart
-
37lib/controller/mine/my_friend_controller.dart
-
84lib/model/mine/friend_apply_data.dart
-
21lib/model/mine/user_count_data.dart
-
4lib/network/api_urls.dart
-
13lib/network/user_api.dart
-
72lib/network/user_api.g.dart
-
37lib/pages/mine/mine_page.dart
-
149lib/pages/mine/my_friend_page.dart
-
1lib/pages/mine/user_help_center_page.dart
@ -0,0 +1,84 @@ |
|||||
|
class FriendApplyData { |
||||
|
List<Records>? records; |
||||
|
int? total; |
||||
|
int? size; |
||||
|
int? current; |
||||
|
int? pages; |
||||
|
|
||||
|
FriendApplyData( |
||||
|
{this.records, this.total, this.size, this.current, this.pages}); |
||||
|
|
||||
|
FriendApplyData.fromJson(Map<String, dynamic> json) { |
||||
|
if (json['records'] != null) { |
||||
|
records = <Records>[]; |
||||
|
json['records'].forEach((v) { |
||||
|
records!.add(new Records.fromJson(v)); |
||||
|
}); |
||||
|
} |
||||
|
total = json['total']; |
||||
|
size = json['size']; |
||||
|
current = json['current']; |
||||
|
pages = json['pages']; |
||||
|
} |
||||
|
|
||||
|
Map<String, dynamic> toJson() { |
||||
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
||||
|
if (this.records != null) { |
||||
|
data['records'] = this.records!.map((v) => v.toJson()).toList(); |
||||
|
} |
||||
|
data['total'] = this.total; |
||||
|
data['size'] = this.size; |
||||
|
data['current'] = this.current; |
||||
|
data['pages'] = this.pages; |
||||
|
return data; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
class Records { |
||||
|
String? id; |
||||
|
String? toUserId; |
||||
|
String? toMiId; |
||||
|
int? toUId; |
||||
|
String? toNickName; |
||||
|
String? toProfilePhoto; |
||||
|
int? toGenderCode; |
||||
|
Null? applyMsg; |
||||
|
int? status; |
||||
|
|
||||
|
Records( |
||||
|
{this.id, |
||||
|
this.toUserId, |
||||
|
this.toMiId, |
||||
|
this.toUId, |
||||
|
this.toNickName, |
||||
|
this.toProfilePhoto, |
||||
|
this.toGenderCode, |
||||
|
this.applyMsg, |
||||
|
this.status}); |
||||
|
|
||||
|
Records.fromJson(Map<String, dynamic> json) { |
||||
|
id = json['id']; |
||||
|
toUserId = json['toUserId']; |
||||
|
toMiId = json['toMiId']; |
||||
|
toUId = json['toUId']; |
||||
|
toNickName = json['toNickName']; |
||||
|
toProfilePhoto = json['toProfilePhoto']; |
||||
|
toGenderCode = json['toGenderCode']; |
||||
|
applyMsg = json['applyMsg']; |
||||
|
status = json['status']; |
||||
|
} |
||||
|
|
||||
|
Map<String, dynamic> toJson() { |
||||
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
||||
|
data['id'] = this.id; |
||||
|
data['toUserId'] = this.toUserId; |
||||
|
data['toMiId'] = this.toMiId; |
||||
|
data['toUId'] = this.toUId; |
||||
|
data['toNickName'] = this.toNickName; |
||||
|
data['toProfilePhoto'] = this.toProfilePhoto; |
||||
|
data['toGenderCode'] = this.toGenderCode; |
||||
|
data['applyMsg'] = this.applyMsg; |
||||
|
data['status'] = this.status; |
||||
|
return data; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,21 @@ |
|||||
|
class UserCountData { |
||||
|
int? friendNum; |
||||
|
int? friendApplyNum; |
||||
|
int? visitorNum; |
||||
|
|
||||
|
UserCountData({this.friendNum, this.friendApplyNum, this.visitorNum}); |
||||
|
|
||||
|
UserCountData.fromJson(Map<String, dynamic> json) { |
||||
|
friendNum = json['friendNum']; |
||||
|
friendApplyNum = json['friendApplyNum']; |
||||
|
visitorNum = json['visitorNum']; |
||||
|
} |
||||
|
|
||||
|
Map<String, dynamic> toJson() { |
||||
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
||||
|
data['friendNum'] = this.friendNum; |
||||
|
data['friendApplyNum'] = this.friendApplyNum; |
||||
|
data['visitorNum'] = this.visitorNum; |
||||
|
return data; |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save