ptm.js 568 Bytes
Newer Older
xionglin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import Api from "~/service/Api";

export function queryByPage(data) {
  return Api.post("/service/ptm/queryByPage", data);
}

export function queryById(inr) {
  return Api.post(`/service/ptm/queryById?inr=${inr}`)
}


export function queryDetailById(inr) {
  return Api.post(`/service/ptm/queryDetailById?inr=${inr}`)
}

export function add(data) {
  return Api.post("/service/ptm/add", data);
}

export function edit(data) {
  return Api.post("/service/ptm/edit", data);
}

export function deleteById(data) {
  return Api.post(`/service/ptm/deleteById`, { data });
}