| | |
| | | import cc.mrbird.febs.common.controller.BaseController; |
| | | import cc.mrbird.febs.common.entity.FebsConstant; |
| | | import cc.mrbird.febs.common.enumerates.SocialPatternLocationTypeEnum; |
| | | import cc.mrbird.febs.common.utils.AppContants; |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.common.utils.RedisUtils; |
| | | import cc.mrbird.febs.mall.entity.*; |
| | | import cc.mrbird.febs.mall.mapper.*; |
| | | import cc.mrbird.febs.mall.service.ClothesTypeService; |
| | |
| | | private final MallExpressInfoMapper mallExpressInfoMapper; |
| | | private final ClothesPatternRemarkMapper clothesPatternRemarkMapper; |
| | | private final ClothesLocationRemarkMapper clothesLocationRemarkMapper; |
| | | private final RedisUtils redisUtils; |
| | | |
| | | /** |
| | | * 社区分类列表 |
| | |
| | | return FebsUtil.view("modules/clothesType/socialList"); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 社区列表-查看评论 |
| | | * @return |
| | | */ |
| | | @GetMapping("/socialComment/{id}") |
| | | @RequiresPermissions("socialComment:view") |
| | | public String socialComment(@PathVariable Long id, Model model) { |
| | | |
| | | String existToken = redisUtils.getString(AppContants.SOCIAL_COMMENT); |
| | | if (StrUtil.isNotBlank(existToken)) { |
| | | Object o = redisUtils.get(existToken); |
| | | if (ObjectUtil.isNotEmpty(o)) { |
| | | redisUtils.del(existToken); |
| | | } |
| | | } |
| | | redisUtils.set(AppContants.SOCIAL_COMMENT, id, -1); |
| | | return FebsUtil.view("modules/clothesType/socialComment"); |
| | | } |
| | | |
| | | /** |
| | | * 社区-新增 |
| | | */ |
| | |
| | | return FebsUtil.view("modules/clothesType/socialAdd"); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 社区-修改 |
| | | */ |