| | |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.enumerates.OrderDeliveryStateEnum; |
| | | import cc.mrbird.febs.common.enumerates.OrderStatusEnum; |
| | | import cc.mrbird.febs.common.utils.AppContants; |
| | | import cc.mrbird.febs.common.utils.RedisUtils; |
| | | import cc.mrbird.febs.common.utils.excl.ExcelSheetPO; |
| | | import cc.mrbird.febs.common.utils.excl.ExcelUtil; |
| | | import cc.mrbird.febs.common.utils.excl.ExcelVersion; |
| | | import cc.mrbird.febs.common.utils.excl.ResponseHeadUtil; |
| | | import cc.mrbird.febs.mall.controller.order.ViewMallOrderController; |
| | | import cc.mrbird.febs.mall.dto.AdminHappyActivityCategoryDto; |
| | | import cc.mrbird.febs.mall.dto.DeliverGoodsDto; |
| | | import cc.mrbird.febs.mall.dto.activity.AdminCategoryAddDto; |
| | |
| | | public class AdminClothesTypeController extends BaseController { |
| | | |
| | | private final ClothesTypeService clothesTypeService; |
| | | private final RedisUtils redisUtils; |
| | | |
| | | /** |
| | | * 分类列表 |
| | |
| | | } |
| | | } |
| | | Map<String, Object> data = getDataTable(clothesTypeService.getSocialListInPage(dto, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 社区列表-评论列表 |
| | | */ |
| | | @GetMapping("socialComment") |
| | | public FebsResponse socialComment(ClothesSocialComment dto, QueryRequest request, Integer parentId) { |
| | | String existToken = redisUtils.getString(AppContants.SOCIAL_COMMENT); |
| | | long socialId = Long.parseLong(existToken); |
| | | dto.setSocialId(socialId); |
| | | Map<String, Object> data = getDataTable(clothesTypeService.socialComment(dto,request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 社区-开启评论 |
| | | */ |
| | | @GetMapping("commentStateSwitch/{id}/{state}") |
| | | @ControllerEndpoint(operation = "社区-开启评论", exceptionMessage = "操作失败") |
| | | public FebsResponse commentStateSwitch(@NotNull(message = "{required}") @PathVariable Long id, |
| | | @NotNull(message = "{required}") @PathVariable Integer state) { |
| | | |
| | | return clothesTypeService.commentStateSwitch(id,state); |
| | | } |
| | | |
| | | /** |
| | | * 社区-评论-是否展示 |
| | | */ |
| | | @GetMapping("showStateSwitch/{id}/{state}") |
| | | @ControllerEndpoint(operation = "社区-评论-是否展示", exceptionMessage = "操作失败") |
| | | public FebsResponse showStateSwitch(@NotNull(message = "{required}") @PathVariable Long id, |
| | | @NotNull(message = "{required}") @PathVariable Integer state) { |
| | | |
| | | return clothesTypeService.showStateSwitch(id,state); |
| | | } |
| | | |
| | | /** |
| | | * 社区-推荐首页 |
| | | */ |
| | | @GetMapping("socialHotState/{id}/{state}") |