martial-arts/jsFile/public-api.js

18 lines
519 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);
}
// 查询购物车数量
export function checkCartNum() {
return request.get("/api/order/shopping-cart-count");
}