aku_new_community/lib/pages/message_center_page/message_func.dart

16 lines
580 B

import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/model/message/system_message_detail_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
class MessageFunc {
static Future<SystemMessageDetailModel> getSystemMessageDetial(
int? id) async {
BaseModel baseModel =
await NetUtil().get(API.message.getSystemMessageDetial, params: {
'sysMessageId': id,
});
return SystemMessageDetailModel.fromJson(baseModel.data);
}
}