需要添加直播接口
This commit is contained in:
@@ -80,3 +80,28 @@ export const getAnchorDetail = () => {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/** 添加修改直播 */
|
||||
export const imAddLive = (data, method = 'post') => {
|
||||
return http({
|
||||
url: '/api/service/imLiveRoom',
|
||||
method,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 开始直播 */
|
||||
export const imDataStartLive = (roomId) => {
|
||||
return http({
|
||||
url: `/api/service/imLiveRoom/start/${roomId}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
/** 结束直播 */
|
||||
export const imDataEndLive = (roomId) => {
|
||||
return http({
|
||||
url: `/api/service/imLiveRoom/${roomId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user