package shop.alien.entity.store.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 官方相册详情VO（包含相册名称、图片列表和数量）
 *
 * @author zhangchen
 * @since 2025-01-16
 */
@Data
@JsonInclude
@ApiModel(value = "StoreAlbumDetailVo", description = "官方相册详情VO")
public class StoreAlbumDetailVo {

    @ApiModelProperty(value = "相册名称")
    private String albumName;

    @ApiModelProperty(value = "该相册下的图片数量")
    private Integer imgCount;

    @ApiModelProperty(value = "该相册下的图片列表")
    private List<StoreImgInfo> imgList;

    /**
     * 图片信息
     */
    @Data
    @JsonInclude
    @ApiModel(value = "StoreImgInfo", description = "图片信息")
    public static class StoreImgInfo {
        @ApiModelProperty(value = "图片ID")
        private Integer id;

        @ApiModelProperty(value = "图片链接")
        private String imgUrl;

        @ApiModelProperty(value = "图片描述")
        private String imgDescription;

        @ApiModelProperty(value = "图片排序")
        private Integer imgSort;

        @ApiModelProperty(value = "图片类型")
        private Integer imgType;
    }
}

