16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
import {get, post} from '../request';
|
|
|
|
const prefix = 'w-oss/'
|
|
|
|
export const getImageApi = async (hash = '') => {
|
|
return await get(`${prefix}getImage`, {
|
|
hash
|
|
})
|
|
}
|
|
export const uploadImageWatermarkApi = async (imageUrl = '', watermark = 'BRM') => {
|
|
return await post(`${prefix}watermark`, {
|
|
image_url: imageUrl,
|
|
watermark
|
|
})
|
|
}
|