57 lines
932 B
TypeScript
57 lines
932 B
TypeScript
import request from "/@/utils/request"
|
|
|
|
export function asyncAll(query?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept/sync-all",
|
|
method: "get",
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function fetchList(query?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept/page",
|
|
method: "get",
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function pageJoin(query?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept/page-join",
|
|
method: "get",
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function addObj(obj?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept",
|
|
method: "post",
|
|
data: obj,
|
|
})
|
|
}
|
|
|
|
export function getObj(id?: string) {
|
|
return request({
|
|
url: "/wallet/mch-dept/" + id,
|
|
method: "get",
|
|
})
|
|
}
|
|
|
|
export function delObjs(ids?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept",
|
|
method: "delete",
|
|
data: ids,
|
|
})
|
|
}
|
|
|
|
export function putObj(obj?: Object) {
|
|
return request({
|
|
url: "/wallet/mch-dept",
|
|
method: "put",
|
|
data: obj,
|
|
})
|
|
}
|