martial-arts/jsFile/public-api.js

18 lines
519 B
JavaScript
Raw Normal View History

2022-08-01 09:03:10 +00:00
import request from './requst.js';
// 图片上传
export function uploadImg(data) {
return request.upload("/universal/api.upload/upload", data);
}
// 视频上传\音频\文件
export function uploadFile(data) {
2022-08-12 10:14:13 +00:00
return request.upload("/api/file/upload/video", data, 'video');
2022-08-10 10:18:06 +00:00
}
// 视频播放记录上报
export function reportRecord(data) {
return request.post("/api/user/video-view", data);
}
2022-08-18 06:22:40 +00:00
// 查询购物车数量
export function checkCartNum() {
return request.get("/api/order/shopping-cart-count");
}