Newer
Older
urbanLifeline_YanAn / src / api / system / sysModule.js
@zhangqy zhangqy on 3 Oct 1 KB first commit
import request from "@/utils/request";

// 系统模块列表
export function listsysModule(query) {
  return request({
    url: "/system/sysModule/list",
    method: "get",
    params: query,
  });
}

// 系统模块详细
export function getsysModule(sysModuleId) {
  return request({
    url: "/system/sysModule/" + sysModuleId,
    method: "get",
  });
}

// 根据系统模块键名系统模块值
export function getsysModuleKey(sysModuleKey) {
  return request({
    url: "/system/sysModule/sysModuleKey/" + sysModuleKey,
    method: "get",
  });
}

// 新增系统模块
export function addsysModule(data) {
  return request({
    url: "/system/sysModule",
    method: "post",
    data: data,
  });
}

// 修改系统模块
export function updatesysModule(data) {
  return request({
    url: "/system/sysModule",
    method: "put",
    data: data,
  });
}

// 删除系统模块
export function delsysModule(sysModuleId) {
  return request({
    url: "/system/sysModule/" + sysModuleId,
    method: "delete",
  });
}