@@ -24,6 +24,16 @@ export const getDjRecommend = () => {
24
24
} ) ;
25
25
} ;
26
26
27
+ /**
28
+ * 电台个性推荐
29
+ */
30
+ export const getDjPersonalRec = ( ) => {
31
+ return axios ( {
32
+ method : "GET" ,
33
+ url : "/dj/personalize/recommend" ,
34
+ } ) ;
35
+ } ;
36
+
27
37
/**
28
38
* 获取电台 - 推荐类型
29
39
*/
@@ -33,3 +43,94 @@ export const getDjCategoryRec = () => {
33
43
url : "/dj/category/recommend" ,
34
44
} ) ;
35
45
} ;
46
+
47
+ /**
48
+ * 私人 DJ
49
+ */
50
+ export const getPrivateDj = ( ) => {
51
+ return axios ( {
52
+ method : "GET" ,
53
+ url : "/aidj/content/rcmd" ,
54
+ } ) ;
55
+ } ;
56
+
57
+ /**
58
+ * 电台 - 类别热门电台
59
+ * @param {string } cateId - 类别 id
60
+ * @param {number } [limit=50] - 返回数量,默认 50
61
+ * @param {number } [offset=0] - 偏移数量,默认 0
62
+ */
63
+ export const getRadioHot = ( cateId , limit = 50 , offset = 0 ) => {
64
+ return axios ( {
65
+ method : "GET" ,
66
+ url : "/dj/radio/hot" ,
67
+ params : {
68
+ cateId,
69
+ limit,
70
+ offset,
71
+ } ,
72
+ } ) ;
73
+ } ;
74
+
75
+ /**
76
+ * 电台 - 分类推荐
77
+ * @param {string } type - 类别 id
78
+ */
79
+ export const getRecType = ( type ) => {
80
+ return axios ( {
81
+ method : "GET" ,
82
+ url : "/dj/recommend/type" ,
83
+ params : {
84
+ type,
85
+ } ,
86
+ } ) ;
87
+ } ;
88
+
89
+ /**
90
+ * 电台 - 详情
91
+ * @param {string } rid - 电台 的 id
92
+ */
93
+ export const getDjDetail = ( rid ) => {
94
+ return axios ( {
95
+ method : "GET" ,
96
+ url : "/dj/detail" ,
97
+ params : {
98
+ rid,
99
+ } ,
100
+ } ) ;
101
+ } ;
102
+
103
+ /**
104
+ * 电台 - 节目
105
+ * @param {string } rid - 电台 的 id
106
+ * @param {number } [limit=50] - 返回数量,默认 50
107
+ * @param {number } [offset=0] - 偏移数量,默认 0
108
+ */
109
+ export const getDjProgram = ( rid , limit = 50 , offset = 0 ) => {
110
+ return axios ( {
111
+ method : "GET" ,
112
+ url : "/dj/program" ,
113
+ params : {
114
+ rid,
115
+ limit,
116
+ offset,
117
+ } ,
118
+ } ) ;
119
+ } ;
120
+
121
+ /**
122
+ * 电台 - 订阅
123
+ * @param {number } rid - 电台 的 id
124
+ * @param {number } t - 操作类型,1为收藏,0为取消收藏
125
+ */
126
+ export const likeDj = ( rid , t ) => {
127
+ return axios ( {
128
+ method : "GET" ,
129
+ url : "/dj/sub" ,
130
+ params : {
131
+ rid,
132
+ t,
133
+ timestamp : new Date ( ) . getTime ( ) ,
134
+ } ,
135
+ } ) ;
136
+ } ;
0 commit comments