Newer
Older
KaiFengPC / src / api / system / newsManage.js
@zhangdeliang zhangdeliang on 20 May 979 bytes 项目初始化
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",
  });
}