Newer
Older
KaiFengPC / src / api / publicService / index.js
@zhangdeliang zhangdeliang on 23 May 8 KB 初始化项目
import request from '@/utils/request';

// 专题导航 搜索列表
export function specialNavPage (query) {
  return request({
    url: '/publicService/specialNavigationConfig/page',
    method: 'get',
    params: query,
  });
}
// 专题导航 新增
export function specialNavAdd (data) {
  return request({
    url: '/publicService/specialNavigationConfig/add',
    method: 'post',
    data: data,
  });
}
// 专题导航 修改
export function specialNavEdit (data) {
  return request({
    url: '/publicService/specialNavigationConfig/edit',
    method: 'put',
    data: data,
  });
}
// 专题导航 删除
export function specialNavDel (id) {
  return request({
    url: '/publicService/specialNavigationConfig/' + id,
    method: 'delete',
  });
}
// 专题导航 详情
export function specialNavDetail (id) {
  return request({
    url: '/publicService/specialNavigationConfig/' + id,
    method: 'get',
  });
}

// 通知公告 技术标准 政策法规 搜索列表
export function articlePage (query) {
  return request({
    url: '/publicService/articleConfig/page',
    method: 'get',
    params: query,
  });
}
// 通知公告 技术标准 政策法规 新增
export function articleAdd (data) {
  return request({
    url: '/publicService/articleConfig/add',
    method: 'post',
    data: data,
  });
}
// 通知公告 技术标准 政策法规 修改
export function articleEdit (data) {
  return request({
    url: '/publicService/articleConfig/edit',
    method: 'put',
    data: data,
  });
}
// 通知公告 技术标准 政策法规 删除
export function articleDel (id) {
  return request({
    url: '/publicService/articleConfig/' + id,
    method: 'delete',
  });
}
// 通知公告 技术标准 政策法规 详情
export function articleDetail (id) {
  return request({
    url: '/publicService/articleConfig/' + id,
    method: 'get',
  });
}

// 科普知识类别 搜索列表全部
export function knowledgeTypeList (query) {
  return request({
    url: '/publicService/scienceKnowledgeType/list',
    method: 'get',
    params: query,
  });
}
// 科普知识类别 搜索列表
export function knowledgeTypePage (query) {
  return request({
    url: '/publicService/scienceKnowledgeType/page',
    method: 'get',
    params: query,
  });
}
// 科普知识类别 新增
export function knowledgeTypeAdd (data) {
  return request({
    url: '/publicService/scienceKnowledgeType/add',
    method: 'post',
    data: data,
  });
}
// 科普知识类别 修改
export function knowledgeTypeEdit (data) {
  return request({
    url: '/publicService/scienceKnowledgeType/edit',
    method: 'put',
    data: data,
  });
}
// 科普知识类别 删除
export function knowledgeTypeDel (id) {
  return request({
    url: '/publicService/scienceKnowledgeType/' + id,
    method: 'delete',
  });
}
// 科普知识类别 详情
export function knowledgeTypeDetail (id) {
  return request({
    url: '/publicService/scienceKnowledgeType/' + id,
    method: 'get',
  });
}

// 科普知识管理 搜索列表
export function knowledgePage (query) {
  return request({
    url: '/publicService/scienceKnowledgeConfig/page',
    method: 'get',
    params: query,
  });
}
// 科普知识管理 新增
export function knowledgeAdd (data) {
  return request({
    url: '/publicService/scienceKnowledgeConfig/add',
    method: 'post',
    data: data,
  });
}
// 科普知识管理 修改
export function knowledgeEdit (data) {
  return request({
    url: '/publicService/scienceKnowledgeConfig/edit',
    method: 'put',
    data: data,
  });
}
// 科普知识管理 删除
export function knowledgeDel (id) {
  return request({
    url: '/publicService/scienceKnowledgeConfig/' + id,
    method: 'delete',
  });
}
// 科普知识管理 详情
export function knowledgeDetail (id) {
  return request({
    url: '/publicService/scienceKnowledgeConfig/' + id,
    method: 'get',
  });
}

// 调查问卷 搜索列表
export function quesNairePage (query) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/page',
    method: 'get',
    params: query,
  });
}
// 调查问卷 新增
export function quesNaireAdd (data) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/add',
    method: 'post',
    data: data,
  });
}
// 调查问卷 修改
export function quesNaireEdit (data) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/edit',
    method: 'put',
    data: data,
  });
}
// 调查问卷 删除
export function quesNaireDel (id) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/' + id,
    method: 'delete',
  });
}
// 调查问卷 详情
export function quesNaireDetail (id) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/' + id,
    method: 'get',
  });
}
// 调查问卷 满意度调查
export function quesNaireCount (id) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/satisfactionStatistics/' + id,
    method: 'get',
  });
}
//群众满意度接口

export function satisfactionStatisticsByYear (id) {
  return request({
    url: '/publicService/adjustmentQuestionnaireConfig/satisfactionStatisticsByYear/' + id,
    method: 'get',
  });
}
// 粉丝信息认证 列表
export function fansList (query) {
  return request({
    url: '/publicService/wechartMiniuser/page',
    method: 'get',
    params: query,
  });
}
// 粉丝信息认证 认证
export function fansCert (id) {
  return request({
    url: '/publicService/wechartMiniuser/authentication/' + id,
    method: 'put',
  });
}
// 粉丝信息认证 取消认证
export function fansCertCancel (id) {
  return request({
    url: '/publicService/wechartMiniuser/unAuthentication/' + id,
    method: 'put',
  });
}
// 粉丝信息认证 删除
export function fansDel (id) {
  return request({
    url: '/publicService/wechartMiniuser/' + id,
    method: 'delete',
  });
}
// 投诉建议 列表
export function suggestList (query) {
  return request({
    url: '/publicService/wechartSuggest/page',
    method: 'get',
    params: query,
  });
}
// 投诉建议 删除
export function suggestDel (id) {
  return request({
    url: '/publicService/wechartSuggest/' + id,
    method: 'delete',
  });
}
// 投诉建议 转工单则进行转案件处理
export function suggestOrder (id) {
  return request({
    url: '/publicService/wechartSuggest/changeEventCenter/' + id,
    method: 'put',
  });
}
// 投诉建议 详情
export function suggestDetail (id) {
  return request({
    url: '/publicService/wechartSuggest/' + id,
    method: 'get',
  });
}

// 项目评论留言 列表
export function projectComList (query) {
  return request({
    url: '/publicService/projectMiniuserComment/page',
    method: 'get',
    params: query,
  });
}
// 项目评论留言 删除
export function projectComDel (id) {
  return request({
    url: '/publicService/projectMiniuserComment/' + id,
    method: 'delete',
  });
}

// 项目基础信息管理 列表
export function projectInfoList (query) {
  return request({
    url: '/business/projectInfoNew/page',
    method: 'get',
    params: query,
  });
}
// 项目基础信息管理 置顶
export function projectInfoTop (query) {
  return request({
    url: '/business/projectInfoNew/top',
    method: 'post',
    data: query,
  });
}

// 新闻资讯 搜索列表
export function manageNewsPage (query) {
  return request({
    url: '/system/sysNewsInfo/page',
    method: 'get',
    params: query,
  });
}
// 新闻资讯 新增
export function manageNewsAdd (data) {
  return request({
    url: '/system/sysNewsInfo/add',
    method: 'post',
    data: data,
  });
}
// 新闻资讯 修改
export function manageNewsEdit (data) {
  return request({
    url: '/system/sysNewsInfo/edit',
    method: 'put',
    data: data,
  });
}
// 新闻资讯 删除
export function manageNewsDel (id) {
  return request({
    url: '/system/sysNewsInfo/' + id,
    method: 'delete',
  });
}
// 新闻资讯 详情
export function manageNewsDetail (id) {
  return request({
    url: '/system/sysNewsInfo/' + id,
    method: 'get',
  });
}

// 宣传片配置 搜索列表
export function manageVideoPage (query) {
  return request({
    url: '/publicService/propagandaVideo/page',
    method: 'get',
    params: query,
  });
}
// 宣传片配置 新增
export function manageVideoAdd (data) {
  return request({
    url: '/publicService/propagandaVideo/add',
    method: 'post',
    data: data,
  });
}
// 宣传片配置 修改
export function manageVideoEdit (data) {
  return request({
    url: '/publicService/propagandaVideo/edit',
    method: 'put',
    data: data,
  });
}
// 宣传片配置 删除
export function manageVideoDel (id) {
  return request({
    url: '/publicService/propagandaVideo/' + id,
    method: 'delete',
  });
}
// 宣传片配置 详情
export function manageVideoDetail (id) {
  return request({
    url: '/publicService/propagandaVideo/' + id,
    method: 'get',
  });
}