需要添加视频直播测试

This commit is contained in:
cbb
2026-01-09 17:46:57 +08:00
parent 2e5a72c25e
commit 83fec2617c
5 changed files with 191 additions and 47 deletions

View File

@@ -59,3 +59,24 @@ export const receiveRedEnvelope = data => {
})
}
/**
* 新增/修改主播
* @param {*} data
* @param {*} method post 新增 put 修改
* @returns
*/
export const addAnchor = (data, method = 'post') => {
return http({
url: '/api/service/liveAnchor',
method,
data
})
}
/** 主播详情 */
export const getAnchorDetail = () => {
return http({
url: `/api/service/liveAnchor/details`,
method: 'get'
})
}