| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 用户标签 |
| | | * |
| | | * @param communityId 社区id |
| | | * @return 标签集合 |
| | | */ |
| | | @Override |
| | | public R listComMngUserTag(Long communityId) { |
| | | List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO.selectList(new QueryWrapper<ComMngUserTagDO>().lambda().eq(ComMngUserTagDO::getCommunityId, communityId)); |
| | | if (ObjectUtils.isEmpty(comMngUserTagDOS)) { |
| | | return R.fail(); |
| | | } |
| | | List<ComMngUserTagVO> comMngUserTagVOList=new ArrayList<>(); |
| | | comMngUserTagDOS.forEach(comMngUserTagDO -> { |
| | | ComMngUserTagVO comMngUserTagVO=new ComMngUserTagVO(); |
| | | BeanUtils.copyProperties(comMngUserTagDO,comMngUserTagVO); |
| | | comMngUserTagVOList.add(comMngUserTagVO); |
| | | }); |
| | | return R.ok(comMngUserTagVOList); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String encode = new BCryptPasswordEncoder().encode("123456"); |
| | | System.out.println(encode); |