Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev

This commit is contained in:
2026-03-09 14:44:37 +08:00
5 changed files with 48 additions and 3 deletions
+10
View File
@@ -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);
}
}
}