|
@@ -1,6 +1,7 @@
|
|
package com.yonge.cooleshow.biz.dal.wrapper;
|
|
package com.yonge.cooleshow.biz.dal.wrapper;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.microsvc.toolkit.common.response.paging.QueryInfo;
|
|
import com.microsvc.toolkit.common.response.paging.QueryInfo;
|
|
import com.yonge.cooleshow.biz.dal.entity.MusicTag;
|
|
import com.yonge.cooleshow.biz.dal.entity.MusicTag;
|
|
import com.yonge.cooleshow.biz.dal.entity.Subject;
|
|
import com.yonge.cooleshow.biz.dal.entity.Subject;
|
|
@@ -17,6 +18,9 @@ import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
|
+import javax.validation.constraints.Size;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 机构专辑曲目
|
|
* 机构专辑曲目
|
|
* 2023-07-21 17:32:49
|
|
* 2023-07-21 17:32:49
|
|
@@ -111,4 +115,129 @@ public class TenantAlbumMusicWrapper {
|
|
return JSON.parseObject(json, TenantAlbumMusic.class);
|
|
return JSON.parseObject(json, TenantAlbumMusic.class);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Data
|
|
|
|
+ @Builder
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
+ @ApiModel(" TenantAlbumMusicQuery-学生端专辑曲目分页查询")
|
|
|
|
+ public static class StudentTenantAlbumMusicQuery implements QueryInfo {
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("当前页")
|
|
|
|
+ private Integer page;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("分页行数")
|
|
|
|
+ private Integer rows;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("关键字匹配")
|
|
|
|
+ private String keyword;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "专辑", hidden = true)
|
|
|
|
+ private List<Long> albumIds;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("声部分类(ENSEMBLE, MUSIC, SUBJECT)")
|
|
|
|
+ private SubjectTypeEnum subjectType;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("声部id")
|
|
|
|
+ private Long subjectId;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("级别")
|
|
|
|
+ private String level;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("类型")
|
|
|
|
+ private String type;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("标签")
|
|
|
|
+ private Long musicTagId;
|
|
|
|
+
|
|
|
|
+ public String getKeyword() {
|
|
|
|
+ return Optional.ofNullable(keyword).filter(StringUtils::isNotBlank).orElse(null);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String jsonString() {
|
|
|
|
+ return JSON.toJSONString(this);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static TenantAlbumMusicQuery from(String json) {
|
|
|
|
+ return JSON.parseObject(json, TenantAlbumMusicQuery.class);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ @Data
|
|
|
|
+ @Builder
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
+ @ApiModel(" TenantAlbumMusic-学生端专辑曲目返回")
|
|
|
|
+ public static class StudentTenantAlbumMusic implements QueryInfo {
|
|
|
|
+
|
|
|
|
+ @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;
|
|
|
|
+
|
|
|
|
+ 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 {
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("当前页")
|
|
|
|
+ private Integer page;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("分页行数")
|
|
|
|
+ private Integer rows;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("曲谱表ids")
|
|
|
|
+ private List<Long> musicSheetIds;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("标签")
|
|
|
|
+ private Long musicTagId;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("声部id")
|
|
|
|
+ private Long subjectId;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public String jsonString() {
|
|
|
|
+ return JSON.toJSONString(this);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static StudentMusicSheetQuery from(String json) {
|
|
|
|
+ return JSON.parseObject(json, StudentMusicSheetQuery.class);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|