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,{
                "msgopenaccesseditview": {
            "title": "接入开放平台编辑视图",
            "caption": "接入开放平台",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "notify",
            "viewname": "MsgOpenAccessEditView",
            "viewtag": "21df20858e3e04237f987b6aabb7d53e"
        },
        "msgtemplategridview": {
            "title": "消息模板表格视图",
            "caption": "消息模板",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "notify",
            "viewname": "MsgTemplateGridView",
            "viewtag": "24012ef8f76c1733b2b2271b864aa293"
        },
        "msgopenaccesspickupview": {
            "title": "接入开放平台数据选择视图",
            "caption": "接入开放平台",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "notify",
            "viewname": "MsgOpenAccessPickupView",
            "viewtag": "2b1e4ec8cc8d1b7d3df4c738dd32abbd"
        },
        "msgopenaccesspickupgridview": {
            "title": "接入开放平台选择表格视图",
            "caption": "接入开放平台",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "notify",
            "viewname": "MsgOpenAccessPickupGridView",
            "viewtag": "7dbf0d79bec7466c6597036b21833b07"
        },
        "msgopenaccessgridview": {
            "title": "接入开放平台表格视图",
            "caption": "接入开放平台",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "notify",
            "viewname": "MsgOpenAccessGridView",
            "viewtag": "8563f7be052a93dffe667fdaa0dbc387"
        },
        "msguseraccounteditview": {
            "title": "绑定消息账号编辑视图",
            "caption": "绑定消息账号",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "notify",
            "viewname": "MsgUserAccountEditView",
            "viewtag": "8fe61032f4a886c82b93251368df0533"
        },
        "notifyindexview": {
            "title": "notify",
            "caption": "ibizlab",
            "viewtype": "APPINDEXVIEW",
            "viewmodule": "notify",
            "viewname": "NotifyIndexView",
            "viewtag": "AB032BD4-8B7A-4848-B3D5-880390C396DC"
        },
        "msgtemplateeditview": {
            "title": "消息模板编辑视图",
            "caption": "消息模板",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "notify",
            "viewname": "MsgTemplateEditView",
            "viewtag": "d40d28e6e7b714c11cc3e965236b212d"
        },
        "msguseraccountgridview": {
            "title": "绑定消息账号表格视图",
            "caption": "绑定消息账号",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "notify",
            "viewname": "MsgUserAccountGridView",
            "viewtag": "e6bf4bf11c92edd8e7bfdb621580d73b"
        }
    }];
});