Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev
This commit is contained in:
@@ -292,5 +292,15 @@ namespace IM_API.Services
|
||||
|
||||
return _mapper.Map<GroupInfoVo>(groupInfo);
|
||||
}
|
||||
|
||||
public async Task<GroupInfoVo> GetGroupInfoAsync(int groupId)
|
||||
{
|
||||
var groupInfo = await _context.Groups.FirstOrDefaultAsync(x => x.Id == groupId);
|
||||
|
||||
if (groupInfo is null)
|
||||
throw new BaseException(CodeDefine.GROUP_NOT_FOUND);
|
||||
|
||||
return _mapper.Map<GroupInfoVo>(groupInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user