feat(music): 增加歌单和歌手的收藏数和评论数字段
- 在 PlaylistDTO 和 SingerDTO 中添加 collectCount 和 commentCount 字段 - 更新前端 Singer 组件,使用 getSingerById API 获取歌手信息
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.test.musichouduan.dto;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@@ -51,6 +52,17 @@ public class PlaylistDTO {
|
||||
*/
|
||||
private Long playCount;
|
||||
|
||||
/**
|
||||
* 收藏数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* 评论数
|
||||
*/
|
||||
private Integer commentCount;
|
||||
|
||||
|
||||
/**
|
||||
* 歌单中的音乐
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.test.musichouduan.dto;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@@ -46,6 +47,16 @@ public class SingerDTO {
|
||||
*/
|
||||
private Long fansCount;
|
||||
|
||||
/**
|
||||
* 收藏数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* 评论数
|
||||
*/
|
||||
private Integer commentCount;
|
||||
|
||||
/**
|
||||
* 是否已收藏
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user