fix: 店铺模块支持logoImageId字段及logo URL返回

- ShopPO/UpdateShopDTO/CreateShopDTO 新增logoImageId字段
- ShopServiceImpl.convertToVO 通过sysFileService.getFileAccessUrl()解析logo URL
This commit is contained in:
小蟑螂
2026-04-20 02:17:44 +08:00
parent 3c98347b25
commit dd2dcd7d88
4 changed files with 13 additions and 0 deletions
@@ -21,6 +21,9 @@ public class CreateShopDTO {
/**
* logo图片ID
*/
@Schema(description = "logo图片ID")
private Long logoImageId;
/**
* 平台(如淘宝、京东、拼多多)
*/
@@ -21,6 +21,9 @@ public class UpdateShopDTO {
/**
* logo图片ID
*/
@Schema(description = "logo图片ID")
private Long logoImageId;
/**
* 平台(如淘宝、京东、拼多多)
*/
@@ -35,6 +35,9 @@ public class ShopPO {
/**
* logo图片ID
*/
@TableField("logo_image_id")
private Long logoImageId;
/**
* 平台(如淘宝、京东、拼多多)
*/
@@ -262,6 +262,10 @@ public class ShopServiceImpl extends ServiceImpl<ShopMapper, ShopPO> implements
ShopVO shopVO = new ShopVO();
BeanUtils.copyProperties(shop, shopVO);
if (shop.getLogoImageId() != null) {
shopVO.setLogo(sysFileService.getFileAccessUrl(shop.getLogoImageId()));
}
return shopVO;
}