feat(music): 增加歌单和歌手的收藏数和评论数字段

- 在 PlaylistDTO 和 SingerDTO 中添加 collectCount 和 commentCount 字段
- 更新前端 Singer 组件,使用 getSingerById API 获取歌手信息
This commit is contained in:
ikmkj
2025-07-26 13:00:38 +08:00
parent 678149df79
commit 5b30905577
3 changed files with 27 additions and 4 deletions

View File

@@ -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;
/**
* 歌单中的音乐
*/

View File

@@ -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;
/**
* 是否已收藏
*/