14 lines
408 B
JavaScript
14 lines
408 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("/universal/api.upload/upload", data, 'file');
|
|
}
|
|
// 视频播放记录上报
|
|
export function reportRecord(data) {
|
|
return request.post("/api/user/video-view", data);
|
|
}
|