mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
fix: 店铺模块支持logoImageId字段及logo URL返回
- ShopPO/UpdateShopDTO/CreateShopDTO 新增logoImageId字段 - ShopServiceImpl.convertToVO 通过sysFileService.getFileAccessUrl()解析logo URL
This commit is contained in:
+3
@@ -21,6 +21,9 @@ public class CreateShopDTO {
|
|||||||
/**
|
/**
|
||||||
* logo图片ID
|
* logo图片ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "logo图片ID")
|
||||||
|
private Long logoImageId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 平台(如淘宝、京东、拼多多)
|
* 平台(如淘宝、京东、拼多多)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
@@ -21,6 +21,9 @@ public class UpdateShopDTO {
|
|||||||
/**
|
/**
|
||||||
* logo图片ID
|
* logo图片ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "logo图片ID")
|
||||||
|
private Long logoImageId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 平台(如淘宝、京东、拼多多)
|
* 平台(如淘宝、京东、拼多多)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
@@ -35,6 +35,9 @@ public class ShopPO {
|
|||||||
/**
|
/**
|
||||||
* logo图片ID
|
* logo图片ID
|
||||||
*/
|
*/
|
||||||
|
@TableField("logo_image_id")
|
||||||
|
private Long logoImageId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 平台(如淘宝、京东、拼多多)
|
* 平台(如淘宝、京东、拼多多)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+4
@@ -262,6 +262,10 @@ public class ShopServiceImpl extends ServiceImpl<ShopMapper, ShopPO> implements
|
|||||||
ShopVO shopVO = new ShopVO();
|
ShopVO shopVO = new ShopVO();
|
||||||
BeanUtils.copyProperties(shop, shopVO);
|
BeanUtils.copyProperties(shop, shopVO);
|
||||||
|
|
||||||
|
if (shop.getLogoImageId() != null) {
|
||||||
|
shopVO.setLogo(sysFileService.getFileAccessUrl(shop.getLogoImageId()));
|
||||||
|
}
|
||||||
|
|
||||||
return shopVO;
|
return shopVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user