榆山数据端小程序
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.

242 lines
5.5 KiB

import request from '../utils/rerquest'
/**
*
* @param {string} noticeId id
* @param {string} readType 01
*/
export function getNoticeReadList({ noticeId, readType }: { noticeId: string, readType: string}) {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/getNoticeReadList',
options: {
noticeId,
readType
}
})
}
/**
*
* @param {number} pageIndex 0
* @param {number} pageSize 10
* @param {string} id 10
*/
export function getGridEvaList({ pageIndex,pageSize,id}: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/getGroupMessageList',
options: {
pageIndex,
pageSize,
id
}
})
}
/**
*
*/
export function getTopicDetail(topicId:string) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/getTopicDetail/${topicId}`,
})
}
/**
*
*/
export function getMemberList() {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/getMemberList'
})
}
/**
*
*/
export function getNoticeDetail(noticeId:string) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/getNoticeDetail/${noticeId}`,
})
}
/**
* /
* @param {String} noticeId ID
* @param {String} topType 12
*/
export function setTopNotice({ noticeId, topType }: { noticeId: string, topType: string }) {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/setTopNotice',
options: {
noticeId,
topType
}
})
}
/**
*
*/
export function closeNotice(noticeId: string) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/closeNotice/${noticeId}`,
})
}
/**
*
* @param {String} topicContent
* @param {Array} images
*/
export function topicSubmit({ topicContent,images }: RequestAPIOptionsLogin) {
return request({
method: 'POST',
url: 'cloudAnalysis/masterGroup/topicSubmit',
options: {
topicContent,
images
}
})
}
/**
*
* @param {String} noticeTitle
* @param {String} noticeContent
* @param {Array} images
*/
export function noticeSubmit({ noticeTitle,noticeContent,images }: RequestAPIOptionsLogin) {
return request({
method: 'POST',
url: 'cloudAnalysis/masterGroup/noticeSubmit',
options: {
noticeTitle,
noticeContent,
images
}
})
}
/**
* /
* @param {String} topicId id
* @param {String} topType 12
*/
export function SetTopTopic({ topicId,topType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/SetTopTopic',
options: {
topicId,
topType
}
})
}
/**
* /
* @param {String} topicId id
*/
export function closeTopic(topicId:string) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/closeTopic/${topicId}`,
})
}
/**
* /
* @param {String} topicId id
* @param {String} attitude 0123
*/
export function topicStatement({ topicId,attitude }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/topicStatement`,
options: {
topicId,
attitude
}
})
}
/**
*
* @param {number} pageIndex 0
* @param {number} pageSize 10
* @param {String} topicId id
* @param {String} orderType 0: 获取最新列表1: 获取最热列表
*/
export function getCommentList({ pageIndex,pageSize,topicId,orderType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/masterGroup/getCommentList',
options: {
pageIndex,
pageSize,
topicId,
orderType
}
})
}
/**
* /
* @param {String} topicId id
* @param {String} attitude 01
* @param {String} commentId 01
*/
export function commentStatement({ attitude,commentId,topicId }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/commentStatement`,
options: {
attitude,
topicId,
commentId
}
})
}
/**
*
* @param {String} topicId id
* @param {String} faCommentId ID
* @param {String} content
*/
export function commentSubmit({ topicId,faCommentId,content }: RequestAPIOptionsLogin) {
return request({
method: 'POST',
url: `cloudAnalysis/masterGroup/commentSubmit`,
options: {
topicId,
faCommentId,
content
}
})
}
/**
*
*/
export function checkUpdateAvatar() {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/checkUpdateAvatar`,
})
}
/**
*
* @param {String} avatar
*/
export function updateAvatar({ avatar }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: `cloudAnalysis/masterGroup/updateAvatar`,
options: {
avatar
}
})
}