1.add thumbnail

main
Gary 9 months ago
parent 07293b765f
commit 97967b2eb7

@ -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;
}
}

@ -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;
}

@ -65,6 +65,10 @@ public class Tag implements Serializable {
*
*/
private String image;
/**
*
*/
private String thumbnail;
/**
* ID

Loading…
Cancel
Save