feat(community): 增加社区详情信息字段并优化我的社区查询逻辑

feature/community-center
yang 2025-04-29 10:57:14 +08:00
parent 89b2c58938
commit 80fcfd12ea
2 changed files with 19 additions and 1 deletions

View File

@ -41,6 +41,12 @@ public class CommunityDetailVo {
@ApiModelProperty(value = "社区名称")
private String communityName;
/**
*
*/
@ApiModelProperty(value = "社区标签")
private Integer communityTag;
/**
*
*/
@ -53,6 +59,18 @@ public class CommunityDetailVo {
@ApiModelProperty(value = "描述")
private String description;
/**
*
*/
@ApiModelProperty(value = "社区类型")
private Integer type;
/**
*
*/
@ApiModelProperty(value = "有效期天数")
private Integer validityDay;
/**
*
*/

View File

@ -299,7 +299,7 @@ public class CommunityServiceImpl extends ServiceImpl<CommunityMapper, Community
List<Community> myJoinCommunityList = baseMapper.getMyJoinCommunity(new Page<>(1, 100),
SecurityUtils.getUserId(),
new JoinCommunityListPageRes());
JoinCommunityListPageRes.builder().isMyCreate(1).build());
Map<Long, Community> myJoinCommunityMap = myJoinCommunityList.stream()
.collect(Collectors.toMap(Community::getId, Function.identity()));