Skip to content

Commit 3700af5

Browse files
committed
init
0 parents  commit 3700af5

File tree

96 files changed

+74414
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+74414
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
/frontend/node_modules
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
Harmonify-win32-x64

1754539713568-player-script.js

Lines changed: 13862 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1754539713578-player-script.js

Lines changed: 13862 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1758686772179-player-script.js

Lines changed: 13894 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1758686772190-player-script.js

Lines changed: 13894 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/fire.ico

9.89 KB
Binary file not shown.

assets/sound.ico

8.03 KB
Binary file not shown.

controller/ZingController.js

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
import { zing } from "zingmp3-api-next";
2+
3+
class ZingController {
4+
getSong(req, res) {
5+
zing.get_song(req.query.id).then((data) => {
6+
res.json(data);
7+
});
8+
}
9+
10+
getDetailPlaylist(req, res) {
11+
zing.get_playlist(req.query.id).then((data) => {
12+
res.json(data);
13+
});
14+
}
15+
16+
getHome(req, res) {
17+
zing.get_home().then((data) => {
18+
res.json(data);
19+
});
20+
}
21+
22+
getTop100(req, res) {
23+
zing.get_top_100().then((data) => {
24+
res.json(data);
25+
});
26+
}
27+
28+
getChartHome(req, res) {
29+
zing.get_home_chart().then((data) => {
30+
res.json(data);
31+
});
32+
}
33+
34+
getNewReleaseChart(req, res) {
35+
zing.get_new_release_chart().then((data) => {
36+
res.json(data);
37+
});
38+
}
39+
40+
getInfo(req, res) {
41+
zing.get_song_info(req.query.id).then((data) => {
42+
res.json(data);
43+
});
44+
}
45+
46+
getArtist(req, res) {
47+
zing.get_artist(req.query.name).then((data) => {
48+
res.json(data);
49+
});
50+
}
51+
52+
getArtistSongs(req, res) {
53+
zing
54+
.getListArtistSong(req.query.id, req.query.page, req.query.count)
55+
.then((data) => {
56+
res.json(data);
57+
});
58+
}
59+
60+
getLyric(req, res) {
61+
zing.get_song_lyric(req.query.id).then((data) => {
62+
res.json(data);
63+
});
64+
}
65+
66+
search(req, res) {
67+
zing.search_all(req.query.keyword).then((data) => {
68+
res.json(data);
69+
});
70+
}
71+
72+
getListMV(req, res) {
73+
zing
74+
.get_list_mv(req.query.id, req.query.page, req.query.count)
75+
.then((data) => {
76+
res.json(data);
77+
});
78+
}
79+
80+
getCategoryMV(req, res) {
81+
zing.get_category_mv(req.query.id).then((data) => {
82+
res.json(data);
83+
});
84+
}
85+
86+
getHub(req, res) {
87+
zing.get_hub_home().then((data) => {
88+
res.json(data);
89+
});
90+
}
91+
92+
getRecommend(req, res) {
93+
zing.getRecommend(req.query.id).then((data) => {
94+
res.json(data);
95+
});
96+
}
97+
}
98+
99+
const zingController = new ZingController();
100+
101+
export default zingController;

0 commit comments

Comments
 (0)