14 changed files with 393 additions and 133 deletions
Split View
Diff Options
-
BINassets/images/mic_coupon_icon.png
-
27lib/controller/mine/mine_controller.dart
-
6lib/controller/mine/my_friend_controller.dart
-
38lib/controller/mine/rose_history_controller.dart
-
2lib/generated/assets.dart
-
30lib/model/mine/friend_apply_data.dart
-
50lib/model/mine/friend_data.dart
-
83lib/model/mine/user_prop_data.dart
-
2lib/network/api_urls.dart
-
7lib/network/user_api.dart
-
37lib/network/user_api.g.dart
-
182lib/pages/mine/mine_page.dart
-
12lib/pages/mine/my_friend_page.dart
-
50lib/pages/mine/rose_history_page.dart
@ -0,0 +1,83 @@ |
|||
class UserPropData { |
|||
int? current; |
|||
int? pages; |
|||
List<Records>? records; |
|||
int? size; |
|||
int? total; |
|||
|
|||
UserPropData({this.current, this.pages, this.records, this.size, this.total}); |
|||
|
|||
UserPropData.fromJson(Map<String, dynamic> json) { |
|||
current = json['current']; |
|||
pages = json['pages']; |
|||
if (json['records'] != null) { |
|||
records = <Records>[]; |
|||
json['records'].forEach((v) { |
|||
records!.add(new Records.fromJson(v)); |
|||
}); |
|||
} |
|||
size = json['size']; |
|||
total = json['total']; |
|||
} |
|||
|
|||
Map<String, dynamic> toJson() { |
|||
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|||
data['current'] = this.current; |
|||
data['pages'] = this.pages; |
|||
if (this.records != null) { |
|||
data['records'] = this.records!.map((v) => v.toJson()).toList(); |
|||
} |
|||
data['size'] = this.size; |
|||
data['total'] = this.total; |
|||
return data; |
|||
} |
|||
} |
|||
|
|||
class Records { |
|||
bool? enable; |
|||
String? endTime; |
|||
int? id; |
|||
String? logoUrl; |
|||
String? name; |
|||
int? num; |
|||
String? startTime; |
|||
int? type; |
|||
int? userId; |
|||
|
|||
Records( |
|||
{this.enable, |
|||
this.endTime, |
|||
this.id, |
|||
this.logoUrl, |
|||
this.name, |
|||
this.num, |
|||
this.startTime, |
|||
this.type, |
|||
this.userId}); |
|||
|
|||
Records.fromJson(Map<String, dynamic> json) { |
|||
enable = json['enable']; |
|||
endTime = json['endTime']; |
|||
id = json['id']; |
|||
logoUrl = json['logoUrl']; |
|||
name = json['name']; |
|||
num = json['num']; |
|||
startTime = json['startTime']; |
|||
type = json['type']; |
|||
userId = json['userId']; |
|||
} |
|||
|
|||
Map<String, dynamic> toJson() { |
|||
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|||
data['enable'] = this.enable; |
|||
data['endTime'] = this.endTime; |
|||
data['id'] = this.id; |
|||
data['logoUrl'] = this.logoUrl; |
|||
data['name'] = this.name; |
|||
data['num'] = this.num; |
|||
data['startTime'] = this.startTime; |
|||
data['type'] = this.type; |
|||
data['userId'] = this.userId; |
|||
return data; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save