Newer
Older
urbanLifeline_YanAn / src / api / system / newsManage.js
@zhangqy zhangqy on 3 Oct 979 bytes first commit
import request from "@/utils/request";

// 查询新闻信息列表
export function listNews(query) {
  return request({
    url: "/system/sysNewsInfo/list",
    method: "get",
    params: query,
  });
}

// 查询新闻信息分页
export function pageNews(query) {
  return request({
    url: "/system/sysNewsInfo/page",
    method: "get",
    params: query,
  });
}

// 查询新闻信息详细
export function getNews(NewsId) {
  return request({
    url: "/system/sysNewsInfo/" + NewsId,
    method: "get",
  });
}

// 新增新闻信息
export function addNews(data) {
  return request({
    url: "/system/sysNewsInfo/add",
    method: "post",
    data: data,
  });
}

// 修改新闻信息
export function updateNews(data) {
  return request({
    url: "/system/sysNewsInfo/edit",
    method: "put",
    data: data,
  });
}

// 删除新闻信息
export function delNews(NewsId) {
  return request({
    url: "/system/sysNewsInfo/" + NewsId,
    method: "delete",
  });
}