需要添加直播接口

This commit is contained in:
cbb
2026-01-12 17:52:15 +08:00
parent 83fec2617c
commit 13af9eb303
281 changed files with 313157 additions and 104 deletions

View File

@@ -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'
})
}