import request from '../utils/requestClerk' /** * 获得消息阅读情况列表 * noticeId 消息id * readType 阅读类型:0未读,1已读 */ export function getNoticeReadList({ noticeId, readType }) { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/getNoticeReadList', options: { noticeId, readType } }) } /** * 获得群聊消息列表 (话题,通知)置顶 时间优先 * pageIndex 0 * pageSize 10 * id 10 */ export function getGridEvaList({ pageIndex, pageSize, id }) { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/getGroupMessageList', options: { pageIndex, pageSize, id } }) } /** * 获得话题详情 */ export function getTopicDetail(topicId) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/getTopicDetail/${topicId}`, }) } /** * 查看群成员列表 */ export function getMemberList() { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/getMemberList' }) } /** * 通知详情 */ export function getNoticeDetail(noticeId) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/getNoticeDetail/${noticeId}`, }) } /** * 置顶通知(置顶/取消) * noticeId 通知ID * topType 操作类型:1,置顶,2取消 */ export function setTopNotice({ noticeId, topType }) { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/setTopNotice', options: { noticeId, topType } }) } /** * 关闭通知 */ export function closeNotice(noticeId) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/closeNotice/${noticeId}`, }) } /** * 发布话题 * topicContent 话题内容 * images 图片 */ export function topicSubmit({ topicContent, images }) { return request({ method: 'POST', url: 'cloudAnalysis/masterGroup/topicSubmit', options: { topicContent, images } }) } /** * 发布通知 * noticeTitle 通知标题 * noticeContent 话题内容 * images 图片 */ export function noticeSubmit({ noticeTitle, noticeContent, images }) { return request({ method: 'POST', url: 'cloudAnalysis/masterGroup/noticeSubmit', options: { noticeTitle, noticeContent, images } }) } /** * 置顶话题(置顶/取消) * topicId 话题id * topType 操作类型:1,置顶,2取消 */ export function SetTopTopic({ topicId, topType }) { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/SetTopTopic', options: { topicId, topType } }) } /** * 置顶话题(置顶/取消) * topicId 话题id */ export function closeTopic(topicId) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/closeTopic/${topicId}`, }) } /** * 表态话题(赞/踩) * topicId 话题id * attitude 表态 0赞;1踩;2取消赞;3取消踩 */ export function topicStatement({ topicId, attitude }) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/topicStatement`, options: { topicId, attitude } }) } /** * 获取评论列表 * pageIndex 0 * pageSize 10 * topicId 话题id * orderType 排序方式 0: 获取最新列表,1: 获取最热列表 */ export function getCommentList({ pageIndex, pageSize, topicId, orderType }) { return request({ method: 'GET', url: 'cloudAnalysis/masterGroup/getCommentList', options: { pageIndex, pageSize, topicId, orderType } }) } /** * 表态评论(赞/踩) * topicId 话题id * attitude 表态 0赞;1踩; * commentId 表态 0赞;1踩; */ export function commentStatement({ attitude, commentId, topicId }) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/commentStatement`, options: { attitude, topicId, commentId } }) } /** * 提交评论 * topicId 话题id * faCommentId 父评论ID; * content 评论内容 */ export function commentSubmit({ topicId, faCommentId, content }) { return request({ method: 'POST', url: `cloudAnalysis/masterGroup/commentSubmit`, options: { topicId, faCommentId, content } }) } /** * 判断是否更新头像 */ export function checkUpdateAvatar() { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/checkUpdateAvatar`, }) } /** * 更新头像 * avatar 头像地址 */ export function updateAvatar({ avatar }) { return request({ method: 'GET', url: `cloudAnalysis/masterGroup/updateAvatar`, options: { avatar } }) }