cty.js 914 Bytes
Newer Older
huangxin committed
1 2 3
import Api from "~/service/Api"

export function queryByPage(data) {
liaoxing committed
4
    return Api.post("/service/cty/queryByPage", data)
huangxin committed
5 6 7
}

export function queryById(inr) {
liaoxing committed
8
    return Api.post(`/service/cty/queryById?inr=${inr}`)
huangxin committed
9 10 11
}

export function add(data) {
liaoxing committed
12
    return Api.post("/service/cty/add", data)
huangxin committed
13 14
}

hewei committed
15
export function hasCod(cod) {
liaoxing committed
16
    return Api.post(`/service/cty/hasCod?cod=${cod}`)
hewei committed
17 18
}

huangxin committed
19
export function edit(data) {
liaoxing committed
20
    return Api.post("/service/cty/edit", data)
huangxin committed
21 22 23
}

export function deleteById(inr) {
liaoxing committed
24
    return Api.post(`/service/cty/deleteById?inr=${inr}`)
huangxin committed
25 26
}

liaoxing committed
27 28 29
// export function addBopctyData(inr, data) {
//     return Api.post(`/service/cty/addBopctyData?inr=${inr}`, data)
// }
huangxin committed
30

liaoxing committed
31 32 33
// export function editBopctyData(inr, data) {
//     return Api.post(`/service/cty/editBopctyData?inr=${inr}`, data)
// }
huangxin committed
34

liaoxing committed
35 36 37
// export function deleteBopctyById(data) {
//     return Api.post(`/service/cty/deleteBopctyById`, data)
// }