pty.js 798 Bytes
Newer Older
潘际乾 committed
1 2 3
import Api from "~/service/Api"

export function queryByPage(data) {
xionglin committed
4
    return Api.post("/service/pty/queryByPage", data)
潘际乾 committed
5 6 7
}

export function queryDetailById(inr) {
xionglin committed
8
    return Api.post(`/service/pty/queryDetailById?inr=${inr}`)
潘际乾 committed
9 10 11
}

export function add(data) {
xionglin committed
12
    return Api.post("/service/pty/add", data)
潘际乾 committed
13 14 15
}

export function edit(data) {
xionglin committed
16
    return Api.post("/service/pty/edit", data)
潘际乾 committed
17 18 19
}

export function deleteById(inr) {
xionglin committed
20
    return Api.post(`/service/pty/deleteById?inr=${inr}`)
潘际乾 committed
21 22
}

潘际乾 committed
23
export function addAdrData(inr, data) {
xionglin committed
24
    return Api.post(`/service/pty/addAdrData?inr=${inr}`, data)
潘际乾 committed
25
}
潘际乾 committed
26

潘际乾 committed
27
export function updateAdrData(inr, data) {
xionglin committed
28
    return Api.post(`/service/pty/updateAdrData?inr=${inr}`, data)
潘际乾 committed
29
}
潘际乾 committed
30

潘际乾 committed
31
export function deleteAdrData(data) {
xionglin committed
32
    return Api.post(`/service/pty/deleteAdrData`, data)
潘际乾 committed
33
}