import Api from "~/service/Api"

// 列表分页查询机构权限信息
export function queryDeptAuthorityByPage(data) {
    return Api.post("/bchAuthority/listBchAuthorityPagingInfo", data);
}

// 保存机构权限信息
export function saveBchAuthorityInfo(data){
    return Api.post("/bchAuthority/saveBchAuthorityInfo",data);
}

// 列表分页查询电子签章信息
export function queryElecSealByPage(data) {
    return Api.post("/seal/listSealPagingInfo", data);
}

// 保存电子签章信息
export function saveElecSealInfo(data){
    return Api.post("/seal/saveSealInfo",data);
}

// 查看电子签章详情信息
export function getElecSealInfo(data){
    return Api.post("/seal/getSealInfo",data);
}

// 删除电子签章信息
export function deleteElecSeal(data){
    return Api.post("/seal/deleteSeal",data);
}

// 保存国结机构信息
export function saveDeptInfo(data){
    return Api.post("/bch/saveBch",data);
}

// 查看国结机构信息
export function getDeptInfo(data){
    return Api.post("/bch/getDepartmentAndBch",data);
}

// 分页查询交易权限信息
export function queryTrnAuthorityByPage(data){
    return Api.post("/trl/queryByPage",data);
}

// 查看交易权限信息
export function getTrnAuthorityInfo(data){
    return Api.post("/trl/getInfo",data);
}

// 保存交易权限信息
export function saveTrnAuthorityInfo(data){
    return Api.post("/trl/save",data);
}


// 删除交易权限信息
export function deleteTrnAuthorityInfo(data){
    return Api.post("/trl/delete",data);
}

// 根据branch查询国结机构信息
export function getBchInfo(data){
    return Api.post("/bch/getByBranch",data);
}





// 分页查询收单行模式配置
export function queryAtpbchByPage(data){
    return Api.post("/atpbch/queryByPage",data);
}

// 查看收单行模式配置信息
export function getAtpbchInfo(data){
    return Api.post("/atpbch/getInfo",data);
}

// 保存收单行模式配置信息
export function saveAtpbchInfo(data){
    return Api.post("/atpbch/save",data);
}


// 删除收单行模式配置信息
export function deleteAtpbchInfo(data){
    return Api.post("/atpbch/delete",data);
}

export function getBranchList(data) {
    return Api.post(`/atpbch/getBranchList`,data)
}

export function queryVpbsCfgByPage(data){
    return Api.post(`/vpbscfg/listVpbsCfgPagingInfo`,data)
}

export function saveVpbsCfg(data){
    return Api.post(`/vpbscfg/saveVpbsCfg`,data)
}

export function deleteVpbsCfg(data){
    return Api.post(`/vpbscfg/deleteVpbsCfg`,data)
}

export function updateHyfcfg(data){
  return Api.post(`/hyfcfg/update`,data)
}

export function listBch(data){
  return Api.post(`/hyfcfg/listBch`,data)
}

export function getHyfcfgInfo(data){
  return Api.post(`/hyfcfg/getInfo`,data)
}