14 lines
403 B
JavaScript
14 lines
403 B
JavaScript
import request from './requst.js';
|
|
// 图片上传
|
|
export function uploadImg(data) {
|
|
return request.upload("/universal/api.upload/upload", data);
|
|
}
|
|
// 视频上传\音频\文件
|
|
export function uploadFile(data) {
|
|
return request.upload("/api/file/upload/video", data, 'video');
|
|
}
|
|
// 视频播放记录上报
|
|
export function reportRecord(data) {
|
|
return request.post("/api/user/video-view", data);
|
|
}
|