1.add thumbnail

main
Gary 9 months ago
parent 07293b765f
commit 97967b2eb7

@ -93,6 +93,7 @@ public class SearchController {
SearchCategoryDTO searchCategoryDTO = new SearchCategoryDTO(); SearchCategoryDTO searchCategoryDTO = new SearchCategoryDTO();
BeanUtils.copyProperties(tag, searchCategoryDTO); BeanUtils.copyProperties(tag, searchCategoryDTO);
searchCategoryDTO.setImage(Constants.TAG_RESOURCE_PREFIX + tag.getImage()); searchCategoryDTO.setImage(Constants.TAG_RESOURCE_PREFIX + tag.getImage());
searchCategoryDTO.setThumbnail(Constants.TAG_RESOURCE_PREFIX + tag.getThumbnail());
return searchCategoryDTO; return searchCategoryDTO;
} }
} }

@ -13,6 +13,8 @@ public class SearchCategoryDTO {
private String nameEn; private String nameEn;
@ApiModelProperty(value = "图片路径") @ApiModelProperty(value = "图片路径")
private String image; private String image;
@ApiModelProperty(value = "缩略图路径")
private String thumbnail;
@ApiModelProperty(value = "说明文案") @ApiModelProperty(value = "说明文案")
private String description; private String description;
} }

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

Loading…
Cancel
Save