feat: 写手端上传接口替换
This commit is contained in:
@ -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 },
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user