DESKTOP-6ESHLVF\admin 4 years ago
parent
commit
355dbeef9d
1 changed files with 28 additions and 28 deletions
  1. 28 28
      src/api/ShortVideo/ShortVideo.js

+ 28 - 28
src/api/ShortVideo/ShortVideo.js

@@ -30,67 +30,67 @@ export const getUploadByAliClound = (data) => {
 
 // 获取用户关注医生列表
 export const getMyFollowList = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetMyFollowList', data )
+  return api.post(java_host + '/ymall/videoUser/GetMyFollowList', data)
 }
 
 
 // 获取用户喜欢的视频列表
 export const getMyLikeList = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetMyLikeList', data )
+  return api.post(java_host + '/ymall/videoUser/GetMyLikeList', data)
 }
 
 // 关注医生
 export const addFollow = (data) => {
-  return api.post(java_host+'/ymall/videoUser/AddFollow', data)
+  return api.post(java_host + '/ymall/videoUser/AddFollow', data)
 }
 
 // 取消关注医生
 export const cancelFollow = (data) => {
-  return api.post(java_host+'/ymall/videoUser/CancelFollow', data)
+  return api.post(java_host + '/ymall/videoUser/CancelFollow', data)
 }
 
 // 获取视频列表
 export const searchVideoList = (data) => {
-  return api.post(java_host+'/ymall/videoUser/SerachVideoList', data)
+  return api.post(java_host + '/ymall/videoUser/SerachVideoList', data)
 }
 
 // 获取首页视频列表
 export const searchVideoListByHome = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetVideoListByHome', data)
+  return api.post(java_host + '/ymall/videoUser/GetVideoListByHome', data)
 }
 
 
 // 视频点赞
 export const addLike = (data) => {
-  return api.post(java_host+'/ymall/videoUser/AddLike', data)
+  return api.post(java_host + '/ymall/videoUser/AddLike', data)
 }
 
 // 视频取消点赞
 export const cancelLike = (data) => {
-  return api.post(java_host+'/ymall/videoUser/CancelLike', data)
+  return api.post(java_host + '/ymall/videoUser/CancelLike', data)
 }
 
 
 // 视频播放次数新增
 export const addPlay = (data) => {
-  return api.post(java_host+'/ymall/videoUser/AddPlay', data)
+  return api.post(java_host + '/ymall/videoUser/AddPlay', data)
 }
 
 
 // 视频分享次数新增
 export const addShare = (data) => {
-  return api.post(java_host+'/ymall/videoUser/AddShare', data)
+  return api.post(java_host + '/ymall/videoUser/AddShare', data)
 }
 
 // 新增评论
 export const addComment = (data) => {
-  return api.post(java_host+'/ymall/videoUser/AddComment', data)
+  return api.post(java_host + '/ymall/videoUser/AddComment', data)
 }
 
 
 // 获取评论
 export const getCommentList = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetVideoCommentDTOList', data)
+  return api.post(java_host + '/ymall/videoUser/GetVideoCommentDTOList', data)
 }
 
 
@@ -100,75 +100,75 @@ export const getCommentList = (data) => {
  * @param {string} ID - 视频的ID值 
  */
 export const getVideoById = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetVideo', {
+  return api.post(java_host + '/ymall/videoUser/GetVideo', {
     ...data
   })
 }
 
 // 获取医生主页短视频API
 export const getDoctorShortVideo = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetVideoList', data)
+  return api.post(java_host + '/ymall/videoUser/GetVideoList', data)
 }
 
 
 // 搜索视频API
-export const searchVideo = (data)=>{
-  return api.post(java_host+'/ymall/videoUser/SerachVideoList', data)
+export const searchVideo = (data) => {
+  return api.post(java_host + '/ymall/videoUser/SerachVideoList', data)
 }
 
 // 搜索医生API
 export const searchDoctor = (data) => {
-  return api.post(host+'/api/Program/SearchDoctorList', data)
+  return api.post(host + '/api/Program/SearchDoctorList', data)
 }
 
 // 获取医生详细信息
 export const getDoctorInfo = (data) => {
   // return api.post(host+'/api/Program/GetDoctorDiss', data)
-  return api.get(java_host +'/ymall/doctor/getInfo', data)
+  return api.get(java_host + '/ymall/doctor/getInfo', data)
 }
 
 
 // 获取医生自己上传的视频
 export const getDoctorProduction = (data) => {
-  return api.post(java_host+'/ymall/videoDoctor/GetMyVideoList', data)
+  return api.post(java_host + '/ymall/videoDoctor/GetMyVideoList', data)
 }
 
 // 医生上传视频
-export const uploadFile = (params,config) => {
+export const uploadFile = (params, config) => {
   // return api.post(host+'/api/Home/UploadFile?isCompress=true', params,config)
-  return api.post(host+'/api/Home/UploadFile', params,config)
+  return api.post(host + '/api/Home/UploadFile', params, config)
 }
 
 // 获取视频上传地址和凭证
 export const createUploadVideo = (title) => {
-  return api.post(java_host+`/ymall/videoDoctor/CreateUploadVideo?Title=${title}`,)
+  return api.post(java_host + `/ymall/videoDoctor/CreateUploadVideo?Title=${title}`, )
 }
 
 
 // 上传视频归属到医生
-export const uploadFileByDoctor = (data)=>{
-  return api.post(java_host+'/ymall/videoDoctor/UploadFileByDoctor', data)
+export const uploadFileByDoctor = (data) => {
+  return api.post(java_host + '/ymall/videoDoctor/UploadFileByDoctor', data)
 }
 
 
 // 获取用户基本信息
 export const getUserInfo = (data) => {
-  return api.post(host+'/api/Account/GetUserInfo', data)
+  return api.post(host + '/api/Account/GetUserInfo', data)
 }
 
 
 // 获取医生上传的视频列表中正在转码的视频
 export const GetMyVideoListByTranscoding = (data) => {
-  return api.post(java_host+'/ymall/videoDoctor/GetMyVideoListByTranscoding', data)
+  return api.post(java_host + '/ymall/videoDoctor/GetMyVideoListByTranscoding', data)
 }
 
 // 获取首页推荐短视频列表
 export const getVideoByHomePage = (data) => {
-  return api.post(java_host+'/ymall/videoUser/GetVideoListByHomePage', data);
+  return api.post(java_host + '/ymall/videoUser/GetVideoListByHomePage', data);
 }
 
 
 // 获取搜索视频的二级科室
 export const getSecondDepartmentList = (data) => {
-  return api.post(host+'/api/Home/GetDepartmentListByEr', data);
+  return api.post(host + '/api/Home/GetDepartmentListByEr', data);
 }