const request = require('../../../utils/request') /** *获取图片 */ export function getImageUrl() { return request.get('imgConfig/getImgUrl/1') } /** *获取图片党群列表首页 */ export function getImageUrl2() { return request.get('imgConfig/getImgUrl/2') } /** *进入党群 */ export function getJoinGroup({partyGroupId}) { return request.get('partyGroup/group/join',{ partyGroupId }) } /** *党群名称列表 */ export function getPartyGroupList() { return request.get('partyGroup/group/list') } /** * 群成员列表 */ export function getPartyUserList({pageIndex, pageSize, partyGroupId}) { return request.get('partyGroup/user/list',{ pageIndex, pageSize, partyGroupId }) } /** * 官小带个长列表 */ export function getOfficialsList({pageIndex, pageSize, partyGroupId}) { return request.get('partyGroup/officials/list',{ pageIndex, pageSize, partyGroupId }) } /** * 当前用户信息 */ export function getCurrentUserInfo(partyGroupId) { return request.get('partyGroup/user/currentUserInfo/'+partyGroupId) } /** * 用户身份修改 */ export function postModifyIdentity({groupUserId, identityFlag}) { return request.post('partyGroup/user/modifyIdentity',{ groupUserId, identityFlag }) } /** * 用户禁言 */ export function postUserBanned({groupUserId, bannedFlag}) { return request.post('partyGroup/user/banned',{ groupUserId, bannedFlag }) } /** * 话题列表 */ export function topiclist({pageIndex,pageSize,timestamp,topicType,partyGroupId,partyTopicId}) { return request.get('partyGroup/topic/list',{ pageIndex, pageSize, timestamp, topicType, partyGroupId, partyTopicId }) } /** * 发布话题 */ export function addTopic({topicType, topicContent,topicAddress,topicLatitude,topicLongitude,partyGroupId,images}) { return request.post('partyGroup/topic/submit',{ topicType, topicContent, topicAddress, topicLatitude, topicLongitude, partyGroupId, images }) } /** * 话题评论 */ export function commentSubmit({topicId, faCommentId,content}) { return request.post('partyGroup/comment/submit',{ topicId, faCommentId, content }) } /** * 表态话题(赞/踩) */ export function statement({attitude, topicId}) { return request.post('partyGroup/topic/statement',{ topicId, attitude }) }