feat: 写手端上传接口替换

This commit is contained in:
rd
2025-08-12 15:00:04 +08:00
parent cb5c07e4ab
commit b886123746
2 changed files with 20 additions and 4 deletions

View File

@ -144,3 +144,17 @@ export const postWorksByLinkWriter = (writerCode: string, params = {}) => {
export const postWorksByFileWriter = (params = {}, config = {}) => {
return Http.post('/v1/writer/works/by-file', params, config);
};
// 获取图片上传地址
export const getImagePreSignedUrlWriter = (writerCode: string,params = {}) => {
return Http.get('/v1/writer/oss/image-pre-signed-url', params, {
headers: { 'writer-code': writerCode },
});
};
// 获取视频上传地址
export const getVideoPreSignedUrlWriter = (writerCode: string,params = {}) => {
return Http.get('/v1/writer/oss/video-pre-signed-url', params, {
headers: { 'writer-code': writerCode },
});
};