对接接口:评论通知

hmxc
张萌 4 years ago
parent 39260008a0
commit 15089938d6

@ -1,23 +1,32 @@
class MessageCenterModel { class MessageCenterModel {
String commentTitle;
int sysCount; int sysCount;
String sysTitle; String sysTitle;
int commentCount;
MessageCenterModel.zero() { MessageCenterModel.zero() {
commentTitle = '';
sysCount = 0; sysCount = 0;
sysTitle = ''; sysTitle = '';
commentCount = 0;
} }
MessageCenterModel({this.sysCount, this.sysTitle}); MessageCenterModel(
{this.commentTitle, this.sysCount, this.sysTitle, this.commentCount});
MessageCenterModel.fromJson(Map<String, dynamic> json) { MessageCenterModel.fromJson(Map<String, dynamic> json) {
commentTitle = json['commentTitle'];
sysCount = json['sysCount']; sysCount = json['sysCount'];
sysTitle = json['sysTitle']; sysTitle = json['sysTitle'];
commentCount = json['commentCount'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['commentTitle'] = this.commentTitle;
data['sysCount'] = this.sysCount; data['sysCount'] = this.sysCount;
data['sysTitle'] = this.sysTitle; data['sysTitle'] = this.sysTitle;
data['commentCount'] = this.commentCount;
return data; return data;
} }
} }

@ -73,12 +73,12 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
count: appProvider.messageCenterModel.sysCount, count: appProvider.messageCenterModel.sysCount,
onTap: SystemMessagePage().to, onTap: SystemMessagePage().to,
), ),
// _buildCard( _buildCard(
// path: R.ASSETS_ICONS_COMMENT_NOTICE_PNG, path: R.ASSETS_ICONS_COMMENT_NOTICE_PNG,
// title: '评论通知', title: '评论通知',
// content: '', content: appProvider.messageCenterModel.commentTitle,
// count: 0, count: appProvider.messageCenterModel.commentCount,
// ), ),
// _buildCard( // _buildCard(
// path: R.ASSETS_ICONS_SHOP_NOTICE_PNG, // path: R.ASSETS_ICONS_SHOP_NOTICE_PNG,
// title: '商城通知', // title: '商城通知',

Loading…
Cancel
Save