You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
import {postRequest,postJsonRequest,apiUrl} from '@/utils/request.js';
|
|
let compaApi = {}
|
|
|
|
// 朋友圈帖子列表
|
|
compaApi.wechatMomentsList = (params) =>{
|
|
return postJsonRequest('enterprise/posts/index', params)
|
|
}
|
|
|
|
// 发布朋友圈
|
|
compaApi.wechatMomentsadd = (params) =>{
|
|
return postJsonRequest('enterprise/posts/add', params)
|
|
}
|
|
|
|
// 朋友圈点赞/取消点赞
|
|
compaApi.onlikes = (params) =>{
|
|
return postJsonRequest('enterprise/posts/like', params)
|
|
}
|
|
|
|
// 评论/回复
|
|
compaApi.oncomments = (params) =>{
|
|
return postJsonRequest('enterprise/posts/comment', params)
|
|
}
|
|
|
|
// 获取上次保存草稿数据
|
|
compaApi.getLastPosts = (params) =>{
|
|
return postJsonRequest('enterprise/posts/getLastPosts', params)
|
|
}
|
|
|
|
// 删除帖子
|
|
compaApi.Deleteapost = (params) =>{
|
|
return postJsonRequest('enterprise/posts/del', params)
|
|
}
|
|
|
|
// 我的朋友圈
|
|
compaApi.myPosts = (params) =>{
|
|
return postJsonRequest('enterprise/posts/myPosts', params)
|
|
}
|
|
|
|
// 我的朋友圈
|
|
compaApi.detailsList = (params) =>{
|
|
return postJsonRequest('enterprise/posts/details', params)
|
|
}
|
|
|
|
// 获取未读消息数量
|
|
compaApi.getNoticeCount = (params) =>{
|
|
return postJsonRequest('enterprise/posts/getNoticeCount', params)
|
|
}
|
|
|
|
// 消息通知列表接口
|
|
compaApi.getNoticeList = (params) =>{
|
|
return postJsonRequest('enterprise/posts/getNoticeList', params)
|
|
}
|
|
|
|
export default compaApi;
|