|
@@ -0,0 +1,131 @@
|
|
|
+package com.yonge.cooleshow.admin.io.request;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.microsvc.toolkit.common.response.paging.QueryInfo;
|
|
|
+import com.yonge.cooleshow.biz.dal.entity.TenantAlbumMusic;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.SubjectTypeEnum;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Builder;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 机构专辑
|
|
|
+ * 2023-07-28 10:17:46
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@Builder
|
|
|
+@NoArgsConstructor
|
|
|
+@ApiModel(value = "TenantAlbumVo对象", description = "机构专辑查询视图对象")
|
|
|
+public class TenantAlbumVo {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Builder
|
|
|
+ @NoArgsConstructor
|
|
|
+ @AllArgsConstructor
|
|
|
+ @ApiModel(" TenantAlbum-机构专辑")
|
|
|
+ public static class TenantAlbum {
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty("主键ID")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty("机构ID")
|
|
|
+ private Long tenantId;
|
|
|
+
|
|
|
+
|
|
|
+ @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;
|
|
|
+
|
|
|
+ @ApiModelProperty("曲目相关信息")
|
|
|
+ private List<MusicSheetData> musicSheetData = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+ private List<TenantAlbumMusic> tenantAlbumMusics = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+ public String jsonString() {
|
|
|
+ return JSON.toJSONString(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static TenantAlbum from(String json) {
|
|
|
+ return JSON.parseObject(json, TenantAlbum.class);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class MusicSheetData{
|
|
|
+ private SubjectTypeEnum subjectType;
|
|
|
+
|
|
|
+ private List<Long> musicSheetIdList = new ArrayList<>();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class tenantAlbumMusics{
|
|
|
+ private Long id;
|
|
|
+ private Long tenantId;
|
|
|
+ private SubjectTypeEnum subjectType;
|
|
|
+ private Long tenantAlbumId;
|
|
|
+ private Long musicSheetId;
|
|
|
+ private Integer sortNumber;
|
|
|
+ private Boolean delFlag;
|
|
|
+ private Date updateTime;
|
|
|
+ private Date createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|