import request from "@/utils/request"

/** 科技项目指南 — 分页列表 */
export function listTechProjectGuide(query) {
  return request({
    url: "/innovationPlatform/techProjectGuide/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getTechProjectGuide(id) {
  return request({
    url: "/innovationPlatform/techProjectGuide/" + id,
    method: "get"
  })
}

/** 新增 */
export function addTechProjectGuide(data) {
  return request({
    url: "/innovationPlatform/techProjectGuide",
    method: "post",
    data
  })
}

/** 修改 */
export function updateTechProjectGuide(data) {
  return request({
    url: "/innovationPlatform/techProjectGuide",
    method: "put",
    data
  })
}

/** 删除 */
export function delTechProjectGuide(ids) {
  return request({
    url: "/innovationPlatform/techProjectGuide/" + ids,
    method: "delete"
  })
}

/** 发布 */
export function publishTechProjectGuide(id) {
  return request({
    url: "/innovationPlatform/techProjectGuide/publish/" + id,
    method: "post"
  })
}

/** 下架 */
export function offlineTechProjectGuide(id) {
  return request({
    url: "/innovationPlatform/techProjectGuide/offline/" + id,
    method: "post"
  })
}
