singleResource.js 1.55 KB
/**
 * 单个模板管理
 */
module.exports={
    namespace:"singleResource",
    apis:{
        getSingleResourceList:{
            title: "模板列表 ajax 分页",
            url: '/resources/listSingleResource',
            params: [
                {name: 'module', type: 'String'},
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        },
        triggerSingleResource: {
            title: "模板 开启关闭",
            url: '/resources/triggerSingleResource',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'status', type: 'Number'}
            ]
        },
        getSingleResource: {
            title: "获取单个模板",
            url: '/resources/getSingleResource',
            params: [
                {name: 'id', type: 'Number'}
            ]
        },
        saveSingleResource: {
            title: "保存模板",
            url: '/resources/saveSingleResource',
            params: [
                {name: 'module', type: 'String'},
                {name: 'templateKey', type: 'String'},
                {name: 'contentData', type: 'String'}
            ]
        },
        updateSingleResource: {
            title: "保存模板",
            url: '/resources/updateSingleResource',
            params: [
            	{name: 'id', type: 'Number'},
                {name: 'module', type: 'String'},
                {name: 'templateKey', type: 'String'},
                {name: 'contentData', type: 'String'}
            ]
        }
    }
}