浏览代码

模块配置接口文件

DESKTOP-2S67K1S\31396 2 年之前
父节点
当前提交
f5fda0d3c0
共有 1 个文件被更改,包括 35 次插入0 次删除
  1. 35 0
      src/api/operation/module.js

+ 35 - 0
src/api/operation/module.js

@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+// 列表
+export function list(data) {
+  return request({
+    url: `/recommend/type/page`,
+    method: 'post',
+    data
+  })
+}
+
+// 新增 / 编辑
+export function submit(data) {
+  return request({
+    url: `/recommend/type/saveOrUpdate`,
+    method: 'post',
+    data
+  })
+}
+
+// 详情
+export function detail(id) {
+  return request({
+    url: `/recommend/type/get/${id}`,
+    method: 'get'
+  })
+}
+
+// 删除
+export function remove(id) {
+  return request({
+    url: `/recommend/type/delete/${id}`,
+    method: 'delete'
+  })
+}