lin
2024-04-03 e712ae7ff62fc83ac84396f01cc5a4153b88ecb1
定位代码优化
1 files added
49 ■■■■■ changed files
api/police/policTrajectoryPoint.js 49 ●●●●● patch | view | raw | blame | history
api/police/policTrajectoryPoint.js
New file
@@ -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
    })
}