package com.yonge.cooleshow.tenant.vo;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 机构专辑
 * 2023-07-25 10:27:37
 */
@ApiModel(value = "TenantAlbumVo对象", description = "机构专辑查询视图对象")
public class TenantAlbumVo {

    @Data
    @ApiModel(" TenantAlbum-机构专辑")
    public static class TenantAlbum {


        @ApiModelProperty("主键ID")
        private Long id;


        @ApiModelProperty("专辑名称")
        private String name;


        @ApiModelProperty("专辑介绍")
        private String describe;


        @ApiModelProperty("专辑封面")
        private String coverImg;


        @ApiModelProperty("曲目数")
        private Integer musicNum;


        @ApiModelProperty("平台价格")
        private BigDecimal originalPrice;


        @ApiModelProperty("机构价格")
        private BigDecimal salePrice;


        @ApiModelProperty("购买周期")
        private Integer purchaseCycle;


        @ApiModelProperty("曲目声部分类(多个,分隔)")
        private String subjectTypes;


        @ApiModelProperty("启用状态")
        private Boolean status;


        @ApiModelProperty("删除标识")
        private Boolean delFlag;


        @ApiModelProperty("更新时间")
        private Date updateTime;


        @ApiModelProperty("创建时间")
        private Date createTime;


        public String jsonString() {
            return JSON.toJSONString(this);
        }

        public static TenantAlbum from(String json) {
            return JSON.parseObject(json, TenantAlbum.class);
        }
    }
}