diff --git a/luoo_music/src/main/java/com/luoo/music/controller/SearchController.java b/luoo_music/src/main/java/com/luoo/music/controller/SearchController.java index c7e3c85..20a74dc 100644 --- a/luoo_music/src/main/java/com/luoo/music/controller/SearchController.java +++ b/luoo_music/src/main/java/com/luoo/music/controller/SearchController.java @@ -93,6 +93,7 @@ public class SearchController { SearchCategoryDTO searchCategoryDTO = new SearchCategoryDTO(); BeanUtils.copyProperties(tag, searchCategoryDTO); searchCategoryDTO.setImage(Constants.TAG_RESOURCE_PREFIX + tag.getImage()); + searchCategoryDTO.setThumbnail(Constants.TAG_RESOURCE_PREFIX + tag.getThumbnail()); return searchCategoryDTO; } } diff --git a/luoo_music/src/main/java/com/luoo/music/dto/response/SearchCategoryDTO.java b/luoo_music/src/main/java/com/luoo/music/dto/response/SearchCategoryDTO.java index 32e0c91..7a064d0 100644 --- a/luoo_music/src/main/java/com/luoo/music/dto/response/SearchCategoryDTO.java +++ b/luoo_music/src/main/java/com/luoo/music/dto/response/SearchCategoryDTO.java @@ -13,6 +13,8 @@ public class SearchCategoryDTO { private String nameEn; @ApiModelProperty(value = "图片路径") private String image; + @ApiModelProperty(value = "缩略图路径") + private String thumbnail; @ApiModelProperty(value = "说明文案") private String description; } diff --git a/luoo_music/src/main/java/com/luoo/music/pojo/Tag.java b/luoo_music/src/main/java/com/luoo/music/pojo/Tag.java index 9a4d5f2..26d28e0 100644 --- a/luoo_music/src/main/java/com/luoo/music/pojo/Tag.java +++ b/luoo_music/src/main/java/com/luoo/music/pojo/Tag.java @@ -65,6 +65,10 @@ public class Tag implements Serializable { * 图片路径 */ private String image; + /** + * 缩略图路径 + */ + private String thumbnail; /** * 创建人用户ID