const outUrl:string = '/data-govern';
const appUrl:string = '/data-govern';
const Api:string = '/api';
const inapp:boolean = false;//内网true;外网false
const baseUrl = inapp?appUrl:outUrl;

const config =  {
    baseUrl:baseUrl,
    BaseURL: baseUrl,
    inapp:inapp,
    headerstring:inapp?'Basic Z3Vlc3Q6cHdk':'Basic ZGVtb3Rlc3Q6ZGVtb3Rlc3Q=',
    page:{
        index:`${baseUrl}/menu/index`,
        indexpage:'/menu/index',
        loginpage: inapp?'/api/auth/login':`${baseUrl}/view/login`,
        workpage:'/view/task',
        jdbc:`${baseUrl}/menu/datasource-manage`,
        homeIndex: `${baseUrl}/view`,
        roleTree: `${baseUrl}/view/roleTree`,
        rolemanage: `${baseUrl}/view/rolemanage`,
        metadetail:`${baseUrl}/metadetail`,
        metadotheretail:`${baseUrl}/staticmeta/detail`,
        standardmanage:`${baseUrl}/menu/datastandard`,
        relationpage:`${baseUrl}/menu/sourcemap`,
        catalogpage:`${baseUrl}/menu/domain`,
        systempage:`${baseUrl}/menu/datasys`,
        questionpage:`${baseUrl}/menu/myquestion`,
        modelpage:`${baseUrl}/menu/data-model`,
        noticepage:`${baseUrl}/menu/systemnotice`,
        metasearch:`${baseUrl}/menu/metasearch`,
        metamanage:`${baseUrl}/menu/metamanage`,
        standard:`${baseUrl}/menu/datastandard`,
        quality:`${baseUrl}/menu/data-quality`,
        assetssource:`${baseUrl}/menu/asset-resource-browse`,//资源
        asserts:`${baseUrl}/menu/asset-browse`,//资产,
        lawpolice:`${baseUrl}/menu/specificationbrowse`,
        systemdocument:`${baseUrl}/menu/specificationbrowse`,
        guideline:`${baseUrl}/menu/specificationbrowse`,
        tagmanager:`${baseUrl}/menu/tag-manage`,
        assetmap:`${baseUrl}/menu/asset-map`,
        filedetail:`${baseUrl}/noticeinfo`,
        datamodel:`${baseUrl}/datamodeler`,
        securitydetail:`${baseUrl}/security/detail`,
        dataservicedetail:`${baseUrl}/dataservice/detail`,
        indecatormanage:`${baseUrl}/menu/dataindicator`,
    },
    api:{
        houseinfo:`${Api}`,
        api:`${Api}`,
        standard:`${Api}/standard`,
        authservice:`${Api}/authservice`,
        singin: `${Api}/auth/signin`,
        signout: `${Api}/auth/signout`,
        users: `${Api}/authservice/users/:userId/domains`,
        sessionInfo: `${Api}/auth/sessionInfo`,
        userupdate: `${Api}/authservice/users/`,
        jdbcmanage: `${Api}/metadataharvester/rest/targetConfig/jdbc`,
        sysjdbcmanage: `${Api}/metadataharvester/rest/targetConfig/system/jdbc`,
        harveJdbcmanage: `${Api}/metadataharvester/rest/harvestingTarget/jdbc`,
        taskResult: `${Api}/metadataharvester/rest/taskResult`,
        task: `${Api}/metadataharvester/rest/task`,
        role: `${Api}/datacatalog/roleCtrl`,
        management: `${Api}/datacatalog/management`,
        domains: `${Api}/authservice/domains`,
        roleUser: `${Api}/authservice/roles`,
        usersRoles: `${Api}/authservice/users`,
        dataqualityapi: `${Api}/dataqualityapi`,
        dataq:`${Api}/dataq`,
        label: `${Api}/tagmanager`,
        metaRepo: `${Api}/metadatarepo`,
        metaHarvest:`${Api}/metadataharvester`,
        information: `${Api}/informationmanagement`,
        questionfeedback:`${Api}/questionfeedback`,
        fileCatalog: `${Api}/informationmanagement/rest/fileCatalog`,
        fileInformation: `${Api}/informationmanagement/rest/fileInformation`,
        dataInformation: `${Api}/informationmanagement/rest/dataInformation`,
        issuetrack: `${Api}/questionfeedback/rest/issuetrack`,
        questionInfo: `${Api}/questionfeedback/rest/questionInfo`,
        report: `${Api}/portal/report`,
        nodeRelation: `${Api}/metadatarepo/rest/nodeRelation`,
        interfaceLog:`${Api}/auditlogger/interfaceLogCtrl`,
        finder: `${Api}/finder`,
        asset:`${Api}/dataassetmanager`,
        metadataRelation: `${Api}/metadatarelation`,
        tagger: `${Api}/tagger`,
        datamodeler: `${Api}/datamodeler`,
        dataservice:`${Api}/dataservicemanager`,
        baseservice:`${Api}/baseservice`,
        dataquality:`${Api}/dataquality`,
        datamodelercomment:`${Api}/subscribe`,
        sdataquality: `${Api}/dataquality`,
        workorder:`${Api}/workorder`,
        pdataservice:`${Api}/pdataservice`,
        dbmanager: `${Api}/dbmanager`,
        datasource:`${Api}/metadataharvester/datasource`,
        classifier:`${Api}/classifier`,
        aiagent:`${Api}/aiagenttest`,
        aiagent3:`${Api}/aiagentdataq3`,
        indicator:`${Api}/index`,
    }
}


export default config