From f6b0e262db2af5ca2e5ed76f95e746c1dd3c58e3 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 01 二月 2024 15:17:47 +0800
Subject: [PATCH] 开发业务接口

---
 platform/src/api/business/dispatchUnit.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/platform/src/api/business/dispatchUnit.js b/platform/src/api/business/dispatchUnit.js
index af8149a..22a2e2a 100644
--- a/platform/src/api/business/dispatchUnit.js
+++ b/platform/src/api/business/dispatchUnit.js
@@ -2,12 +2,22 @@
 
 // 鏌ヨ
 export function fetchList (data) {
-    return request.post('/business/dispatchUnit/page', data, {
-        trim: true
-    })
+  return request.post('/business/dispatchUnit/page', data, {
+    trim: true
+  })
 }
 
 // 鍒涘缓
 export function create (data) {
-    return request.post('/business/dispatchUnit/create', data)
+  return request.post('/business/dispatchUnit/create', data)
+}
+
+// 淇敼
+export function updateById (data) {
+  return request.post('/business/dispatchUnit/updateById', data)
+}
+
+// 鏍规嵁ID鏌ヨ
+export function getById (id) {
+  return request.get(`/business/dispatchUnit/${id}`)
 }

--
Gitblit v1.9.3