|
@@ -22,6 +22,7 @@ import lombok.NoArgsConstructor;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
|
/**
|
|
@@ -32,25 +33,25 @@ import javax.validation.constraints.Size;
|
|
|
public class TenantAlbumMusicWrapper {
|
|
|
|
|
|
@Data
|
|
|
- @Builder
|
|
|
+ @Builder
|
|
|
@NoArgsConstructor
|
|
|
@AllArgsConstructor
|
|
|
@ApiModel(" TenantAlbumMusicQuery-机构专辑曲目")
|
|
|
public static class TenantAlbumMusicQuery implements QueryInfo {
|
|
|
-
|
|
|
- @ApiModelProperty("当前页")
|
|
|
+
|
|
|
+ @ApiModelProperty("当前页")
|
|
|
private Integer page;
|
|
|
-
|
|
|
+
|
|
|
@ApiModelProperty("分页行数")
|
|
|
private Integer rows;
|
|
|
-
|
|
|
+
|
|
|
@ApiModelProperty("关键字匹配")
|
|
|
- private String keyword;
|
|
|
-
|
|
|
+ private String keyword;
|
|
|
+
|
|
|
public String getKeyword() {
|
|
|
return Optional.ofNullable(keyword).filter(StringUtils::isNotBlank).orElse(null);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public String jsonString() {
|
|
|
return JSON.toJSONString(this);
|
|
|
}
|
|
@@ -58,11 +59,11 @@ public class TenantAlbumMusicWrapper {
|
|
|
public static TenantAlbumMusicQuery from(String json) {
|
|
|
return JSON.parseObject(json, TenantAlbumMusicQuery.class);
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- @ApiModel(" TenantAlbumMusic-机构专辑曲目")
|
|
|
+ @ApiModel(" TenantAlbumMusic-机构专辑曲目")
|
|
|
public static class TenantAlbumMusic {
|
|
|
-
|
|
|
+
|
|
|
public String jsonString() {
|
|
|
return JSON.toJSONString(this);
|
|
|
}
|
|
@@ -70,9 +71,7 @@ public class TenantAlbumMusicWrapper {
|
|
|
public static TenantAlbumMusic from(String json) {
|
|
|
return JSON.parseObject(json, TenantAlbumMusic.class);
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
|
|
|
@Data
|
|
@@ -82,7 +81,7 @@ public class TenantAlbumMusicWrapper {
|
|
|
@ApiModelProperty("声部分类(ENSEMBLE, MUSIC, SUBJECT)")
|
|
|
private SubjectTypeEnum subjectType;
|
|
|
|
|
|
- @ApiModelProperty(value = "用户ID",hidden = true)
|
|
|
+ @ApiModelProperty(value = "用户ID", hidden = true)
|
|
|
private Long userId;
|
|
|
|
|
|
public String jsonString() {
|
|
@@ -127,8 +126,6 @@ public class TenantAlbumMusicWrapper {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
@Data
|
|
|
@Builder
|
|
|
@NoArgsConstructor
|
|
@@ -137,7 +134,8 @@ public class TenantAlbumMusicWrapper {
|
|
|
public static class StudentTenantAlbumMusicQuery implements QueryInfo {
|
|
|
|
|
|
@ApiModelProperty(value = "详情专辑id")
|
|
|
- private String albumId;
|
|
|
+ @NotNull(message = "专辑id不能为空")
|
|
|
+ private Long albumId;
|
|
|
|
|
|
@ApiModelProperty("当前页")
|
|
|
private Integer page;
|
|
@@ -148,9 +146,6 @@ public class TenantAlbumMusicWrapper {
|
|
|
@ApiModelProperty("关键字匹配")
|
|
|
private String keyword;
|
|
|
|
|
|
- /*@ApiModelProperty(value = "专辑id集合")
|
|
|
- private List<Long> albumIds;*/
|
|
|
-
|
|
|
@ApiModelProperty("声部分类(ENSEMBLE, MUSIC, SUBJECT)")
|
|
|
private SubjectTypeEnum subjectType;
|
|
|
|
|
@@ -166,14 +161,11 @@ public class TenantAlbumMusicWrapper {
|
|
|
@ApiModelProperty("标签")
|
|
|
private Long musicTagId;
|
|
|
|
|
|
- @ApiModelProperty("端类型")
|
|
|
+ @ApiModelProperty(value = "端类型",hidden = true)
|
|
|
private ClientEnum clientType;
|
|
|
|
|
|
- @ApiModelProperty("机构id")
|
|
|
- private Long tenantId;
|
|
|
-
|
|
|
- @ApiModelProperty(name = "集合")
|
|
|
- private String collect;
|
|
|
+ @ApiModelProperty(value = "用户ID",hidden = true)
|
|
|
+ private Long userId;
|
|
|
|
|
|
|
|
|
public String getKeyword() {
|
|
@@ -190,99 +182,57 @@ public class TenantAlbumMusicWrapper {
|
|
|
|
|
|
|
|
|
}
|
|
|
- @Data
|
|
|
- @Builder
|
|
|
- @NoArgsConstructor
|
|
|
- @AllArgsConstructor
|
|
|
- @ApiModel(" TenantAlbumMusic-学生端专辑曲目返回")
|
|
|
- public static class StudentTenantAlbumMusic implements QueryInfo {
|
|
|
- @ApiModelProperty(value = "曲目表id")
|
|
|
- private Long id;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "精品标志")
|
|
|
- private String exquisiteFlag;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "曲谱名称")
|
|
|
- private String musicSheetName;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "封面图")
|
|
|
- private String titleImg; //曲谱名称
|
|
|
-
|
|
|
- @ApiModelProperty(value = "曲谱来源(平台用户ID或者是老师ID)")
|
|
|
- private Long userId; //曲谱来源(平台用户ID或者是老师ID)
|
|
|
-
|
|
|
- @ApiModelProperty(value = "艺术家")
|
|
|
- private String composer; //音乐家
|
|
|
-
|
|
|
- @ApiModelProperty(value = "曲谱声部(适用的乐器,可能是多个,用逗号分隔)")
|
|
|
- private String musicSubject; //曲谱声部(适用的乐器,可能是多个,用逗号分隔)
|
|
|
-
|
|
|
- @ApiModelProperty(value = "曲谱声部名称(适用的乐器,可能是多个,用逗号分隔)")
|
|
|
- private String musicSubjectName; //曲谱声部名称(适用的乐器,可能是多个,用逗号分隔)
|
|
|
-
|
|
|
- @ApiModelProperty(value = "上传人")
|
|
|
- private String userName;
|
|
|
-
|
|
|
- @ApiModelProperty("曲目收藏数")
|
|
|
- private Integer musicSheetLikeCounts;
|
|
|
-
|
|
|
- @ApiModelProperty("1:收藏 0:未收藏")
|
|
|
- private boolean favorite;
|
|
|
-
|
|
|
- @ApiModelProperty("声谱类型,SINGLE:单曲,CONCERT:合奏")
|
|
|
- private String musicSheetType;
|
|
|
-
|
|
|
- public String jsonString() {
|
|
|
- return JSON.toJSONString(this);
|
|
|
- }
|
|
|
-
|
|
|
- public static TenantAlbumMusic from(String json) {
|
|
|
- return JSON.parseObject(json, TenantAlbumMusic.class);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
@Data
|
|
|
@Builder
|
|
|
@NoArgsConstructor
|
|
|
@AllArgsConstructor
|
|
|
- @ApiModel(" StudentMusicSheetQuery-学生端专辑曲目分页")
|
|
|
- public static class StudentMusicSheetQuery implements QueryInfo {
|
|
|
+ @ApiModel(" TenantAlbumMusic-学生端专辑曲目返回")
|
|
|
+ public static class StudentTenantAlbumMusic implements QueryInfo {
|
|
|
+ @ApiModelProperty(value = "曲目表id")
|
|
|
+ private Long id;
|
|
|
|
|
|
- @ApiModelProperty("当前页")
|
|
|
- private Integer page;
|
|
|
+ @ApiModelProperty(value = "精品标志")
|
|
|
+ private String exquisiteFlag;
|
|
|
|
|
|
- @ApiModelProperty("分页行数")
|
|
|
- private Integer rows;
|
|
|
+ @ApiModelProperty(value = "曲谱名称")
|
|
|
+ private String musicSheetName;
|
|
|
|
|
|
- @ApiModelProperty("曲谱表ids")
|
|
|
- private List<Long> musicSheetIds;
|
|
|
+ @ApiModelProperty(value = "封面图")
|
|
|
+ private String titleImg; //曲谱名称
|
|
|
|
|
|
- @ApiModelProperty("标签")
|
|
|
- private Long musicTagId;
|
|
|
+ @ApiModelProperty(value = "曲谱来源(平台用户ID或者是老师ID)")
|
|
|
+ private Long userId; //曲谱来源(平台用户ID或者是老师ID)
|
|
|
|
|
|
- @ApiModelProperty("声部id")
|
|
|
- private Long subjectId;
|
|
|
+ @ApiModelProperty(value = "艺术家")
|
|
|
+ private String composer; //音乐家
|
|
|
|
|
|
- @ApiModelProperty("关键词")
|
|
|
- private String keyword;
|
|
|
+ @ApiModelProperty(value = "曲谱声部(适用的乐器,可能是多个,用逗号分隔)")
|
|
|
+ private String musicSubject; //曲谱声部(适用的乐器,可能是多个,用逗号分隔)
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "曲谱声部名称(适用的乐器,可能是多个,用逗号分隔)")
|
|
|
+ private String musicSubjectName; //曲谱声部名称(适用的乐器,可能是多个,用逗号分隔)
|
|
|
|
|
|
- @ApiModelProperty(name = "集合")
|
|
|
- private String collect;
|
|
|
+ @ApiModelProperty(value = "上传人")
|
|
|
+ private String userName;
|
|
|
|
|
|
+ @ApiModelProperty("曲目收藏数")
|
|
|
+ private Integer musicSheetLikeCounts;
|
|
|
|
|
|
+ @ApiModelProperty("1:收藏 0:未收藏")
|
|
|
+ private boolean favorite;
|
|
|
|
|
|
+ @ApiModelProperty("声谱类型,SINGLE:单曲,CONCERT:合奏")
|
|
|
+ private String musicSheetType;
|
|
|
|
|
|
public String jsonString() {
|
|
|
return JSON.toJSONString(this);
|
|
|
}
|
|
|
|
|
|
- public static StudentMusicSheetQuery from(String json) {
|
|
|
- return JSON.parseObject(json, StudentMusicSheetQuery.class);
|
|
|
+ public static TenantAlbumMusic from(String json) {
|
|
|
+ return JSON.parseObject(json, TenantAlbumMusic.class);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
+}
|