소스 검색

添加大事件图片

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
+  })
+}