From e712ae7ff62fc83ac84396f01cc5a4153b88ecb1 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Wed, 03 Apr 2024 14:08:43 +0800
Subject: [PATCH] 定位代码优化
---
api/police/policTrajectoryPoint.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/api/police/policTrajectoryPoint.js b/api/police/policTrajectoryPoint.js
new file mode 100644
index 0000000..57512c4
--- /dev/null
+++ b/api/police/policTrajectoryPoint.js
@@ -0,0 +1,49 @@
+import http from '@/http/api.js'
+
+export const getList = (current, size, params) => {
+ return http.request({
+ url: '/blade-policTrajectoryPoint/policTrajectoryPoint/list',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
+
+export const getDetail = (id) => {
+ return http.request({
+ url: '/blade-policTrajectoryPoint/policTrajectoryPoint/detail',
+ method: 'get',
+ params: {
+ id
+ }
+ })
+}
+
+export const remove = (ids) => {
+ return http.request({
+ url: '/blade-policTrajectoryPoint/policTrajectoryPoint/remove',
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
+}
+
+export const add = (row) => {
+ return http.request({
+ url: '/blade-policTrajectoryPoint/policTrajectoryPoint/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const update = (row) => {
+ return http.request({
+ url: '/blade-policTrajectoryPoint/policTrajectoryPoint/submit',
+ method: 'post',
+ data: row
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3