<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'

// 获取studio链接数据
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
        <#list app.getAllPSAppViews() as view>
        <#assign num = view_index />
        </#list>
        <#list app.getAllPSAppViews() as view>
        "${view.getCodeName()?lower_case}": {
            "title": "${view.getTitle()}",
            "caption": "${view.getCaption()}",
            "viewtype": "${view.getViewType()}",
            "viewmodule": "${view.getPSAppModule().getCodeName()}",
            "viewname": "${view.getCodeName()}",
            "viewtag": "${view.getId()}"
        }<#if view_index != num>,</#if>
        </#list>
    }];
});