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

195 lines
4.1 KiB

import request from '../utils/rerquest'
/**
*
*
* @param {string} deptId Id
* @param {Number} pageIndex
* @param {Number} pageSize
* @param {string} stateType 1.2.
* { username, password, wxCode }: RequestAPIOptionsLogin
*/
export function getUnpassedList({ deptId, pageIndex, pageSize, stateType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/issue/getUnpassedList',
options: {
deptId,
pageIndex,
pageSize,
stateType
}
})
}
/**
*
*
* @param {Number} pageIndex
* @param {Number} pageSize
* @param {string} stateType 1.2.3
*/
export function getpassedList({ deptId, pageIndex, pageSize, stateType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/getpassedList',
options: {
deptId,
pageIndex,
pageSize,
stateType
}
})
}
/**
*
*
* @param {string} id
*/
export function getIssueDetail(id:string) {
return request({
method: 'GET',
url: `cloudAnalysis/issue/getIssueDetail/${id}`
})
}
/**
*
*
* @param {string} id
*/
export function getItemDetail(id: string) {
return request({
method: 'GET',
url: `cloudAnalysis/item/getItemDetail/${id}`
})
}
/**
*
*
* @param {string} id
*/
export function getTopicDetail(id: string) {
return request({
method: 'GET',
url: `cloudAnalysis/topic/getTopicDetail/${id}`
})
}
/**
*
*
* @param {string} issueId id
*/
export function issueProcessList(issueId:string) {
return request({
method: 'GET',
url: 'cloudAnalysis/issue/processList',
options: {
issueId
}
})
}
/**
*
*
* @param {string} itemId id
*/
export function itemProcessList(itemId: string) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/processList',
options: {
itemId
}
})
}
/**
*
* ()
* @param {string} eventId ID
* @param {Number} pageIndex
* @param {Number} pageSize
* @param {string} orderType 0: 获取最新列表1: 获取最热列表
*/
export function getCommentList({ eventId, pageIndex, pageSize, orderType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/event/getCommentList',
options: {
eventId,
pageIndex,
pageSize,
orderType
}
})
}
/**
*
* ()
* @param {string} topicId id
* @param {Number} pageIndex
* @param {Number} pageSize
* @param {string} orderType 0: 获取最新列表1: 获取最热列表
*/
export function gettopicCommentList({ topicId, pageIndex, pageSize, orderType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url: 'cloudAnalysis/topic/getCommentList',
options: {
topicId,
pageIndex,
pageSize,
orderType
}
})
}
/**
*
*
* @param {number} deptId Id
* @param {number} pageIndex
* @param {number} pageSize
* @param {string} stateType
*/
export function getPlatformList({deptId, pageIndex, pageSize,stateType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url:'cloudAnalysis/item/getPlatformList',
options:{
deptId,
pageIndex,
pageSize,
stateType
}
})
}
/**
*
*
*/
export function getByLoginUser(){
return request({
method: 'GET',
url:'sys/user/deptOptions/getByLoginUser',
})
}
/**
*
*
*/
export function getIssueSurvey(deptId:string){
return request({
method: 'GET',
url:`cloudAnalysis/issue/getIssueSurvey?deptId=${deptId}`,
})
}