/**
 * webapi.js 封装app所需的所有web请求
 * 供app测试使用，app加入网站后webpai应该由网站通过config,提供给每个app
 */

import {fetch} from '@ttk/utils'
const proxy = "mock"
export default {
    tableData: (option) => fetch.post(`${proxy}/gateway/org/back/roleService/query`, option),
    RolePostList: (option) => fetch.post(`${proxy}/gateway/org/back/queryRolePostList`, option),
    getTreeData: (option) => fetch.post(`${proxy}/gateway/org/back/roleService2/queryFunctionIdCheckedByRoleId`, option),
    getcheckTree: (option) => fetch.post(`${proxy}/gateway/org/back/roleService2/V2`, option),
}