getGroupDetail method

Future<GroupDetail> getGroupDetail(
  1. int groupId
)

Implementation

Future<GroupDetail> getGroupDetail(int groupId) async {
  if (groupId <= 0) {
    throw ArgumentError(Phrases.t('groupId 无效'));
  }
  final resp = await _net.http.post('/api/v1/group/detail', data: {
    'group_id': groupId,
  });
  return GroupDetail.fromJson(resp);
}