浏览代码

添加大事件图片

liuhj 4 年之前
父节点
当前提交
5f2351f8e9
共有 1 个文件被更改,包括 53 次插入0 次删除
  1. 53 0
      src/api/system/eventsImg.js

+ 53 - 0
src/api/system/eventsImg.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询家族大事件图片列表
+export function listImg(query) {
+  return request({
+    url: '/system/img/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询家族大事件图片详细
+export function getImg(id) {
+  return request({
+    url: '/system/img/' + id,
+    method: 'get'
+  })
+}
+
+// 新增家族大事件图片
+export function addImg(data) {
+  return request({
+    url: '/system/img',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改家族大事件图片
+export function updateImg(data) {
+  return request({
+    url: '/system/img',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除家族大事件图片
+export function delImg(id) {
+  return request({
+    url: '/system/img/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出家族大事件图片
+export function exportImg(query) {
+  return request({
+    url: '/system/img/export',
+    method: 'get',
+    params: query
+  })
+}