修改主题电台,增加动画资源返回

main
wangqing 5 months ago
parent c0ae79ab2e
commit 35045acaa9

@ -1,6 +1,7 @@
package com.luoo.music.dto.response;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -11,4 +12,5 @@ public class RandomTopicDTO implements Serializable {
private static final long serialVersionUID = 1L;
private int id;
private String name;
private List<String> gifList;
}

@ -61,8 +61,9 @@ public class JournalSongService {
Integer id=Integer.valueOf(segs[0]);
String name=segs[1];
List<String> tags=Arrays.stream(segs[2].split(",")).collect(Collectors.toList());
List<String> gifList=Arrays.stream(segs[3].split(",")).collect(Collectors.toList());
List<Integer> journalNos=getJournalNoByTags(tags);
randomTopicDTOs.add(new RandomTopicDTO(id,name));
randomTopicDTOs.add(new RandomTopicDTO(id,name,gifList));
topicJournalMap.put(id, journalNos);
});
}
@ -221,6 +222,7 @@ public class JournalSongService {
}
public List<RandomTopicDTO> getRandomTopic() {
return randomTopicDTOs;
}

@ -1,5 +1,5 @@
1|力量之源|金属,朋克,说唱,摇滚
2|靡靡之音|民谣,流行,爵士,乡村,蓝调,雷鬼
3|情绪之下|后摇,世界音乐,古典,原声,口哨,轻音乐
4|黑暗之舞|暗潮,仙音,新民谣,黑暗民谣
5|节奏之魂|电子
0|自由畅听|金属,朋克,说唱,摇滚,民谣,流行,爵士,乡村,蓝调,雷鬼,后摇,世界音乐,古典,原声,口哨,轻音乐,暗潮,仙音,新民谣,黑暗民谣,电子|https://cdn2.indie.cn/indie/media/0/1.webp
1|黑暗低语|暗潮,仙音,新民谣,黑暗民谣|https://cdn2.indie.cn/indie/media/1/1.webp,https://cdn2.indie.cn/indie/media/1/2.webp,https://cdn2.indie.cn/indie/media/1/3.webp,https://cdn2.indie.cn/indie/media/1/4.webp,https://cdn2.indie.cn/indie/media/1/5.webp
2|心灵之舞|后摇,世界音乐,古典,原声,口哨,轻音乐|https://cdn2.indie.cn/indie/media/2/1.webp,https://cdn2.indie.cn/indie/media/2/2.webp
3|暮色余晖|民谣,流行,爵士,乡村,蓝调,雷鬼|https://cdn2.indie.cn/indie/media/3/1.webp,https://cdn2.indie.cn/indie/media/3/2.webp,https://cdn2.indie.cn/indie/media/3/3.webp,https://cdn2.indie.cn/indie/media/3/4.webp,https://cdn2.indie.cn/indie/media/3/5.webp,https://cdn2.indie.cn/indie/media/3/6.webp
4|不羁之音|金属,朋克,说唱,摇滚|https://cdn2.indie.cn/indie/media/4/1.webp,https://cdn2.indie.cn/indie/media/4/2.webp,https://cdn2.indie.cn/indie/media/4/3.webp
Loading…
Cancel
Save