| | |
| | | import cn.lili.common.enums.ResultUtil; |
| | | import cn.lili.common.security.AuthUser; |
| | | import cn.lili.common.security.context.UserContext; |
| | | import cn.lili.common.utils.StringUtils; |
| | | import cn.lili.common.vo.PageVO; |
| | | import cn.lili.common.vo.ResultMessage; |
| | | import cn.lili.modules.goods.entity.vos.StoreGoodsLabelVO; |
| | |
| | | import cn.lili.modules.store.entity.vos.*; |
| | | import cn.lili.modules.store.service.StoreDetailService; |
| | | import cn.lili.modules.store.service.StoreService; |
| | | import cn.lili.utils.COSUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | */ |
| | | @Autowired |
| | | private StoreDetailService storeDetailService; |
| | | @Autowired |
| | | private COSUtil cosUtil; |
| | | |
| | | @ApiOperation(value = "获取店铺列表分页") |
| | | @GetMapping |
| | |
| | | @ApiImplicitParam(name = "id", value = "店铺ID", required = true, paramType = "path") |
| | | @GetMapping(value = "/get/detail/{id}") |
| | | public ResultMessage<StoreBasicInfoVO> detail(@NotNull @PathVariable String id) { |
| | | return ResultUtil.data(storeDetailService.getStoreBasicInfoDTO(id)); |
| | | StoreBasicInfoVO storeBasicInfoDTO = storeDetailService.getStoreBasicInfoDTO(id); |
| | | if (StringUtils.isNotBlank(storeBasicInfoDTO.getStoreLogo())&&!storeBasicInfoDTO.getStoreLogo().contains("http")) { |
| | | storeBasicInfoDTO.setStoreLogo(cosUtil.getPreviewUrl(storeBasicInfoDTO.getStoreLogo())); |
| | | } |
| | | return ResultUtil.data(storeBasicInfoDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "通过id获取店铺详细信息-营业执照") |