staticFile.js 1.56 KB
/**
 * Created by ty on 2016/6/23.
 * 静态文件管理
 */

module.exports={
    namespace:"staticFile",
    apis:{
        add:{
            title: "静态文件添加",
            url: '/staticFileManage/add',
            params: [
                {name: 'fileType', type: 'Number'},
                {name: 'pageTitle', type: 'String'},
                {name: 'keyWord', type: 'String'},
                {name: 'pageDesc', type: 'String'},
                {name: 'zip', type: 'String'}
            ]
        },
        deleteById:{
            title: "静态文件删除",
            url: '/staticFileManage/deleteById',
            params: [
                {name: 'id', type: 'Number'}
            ]
        },
        update:{
            title: "静态文件修改",
            url: '/staticFileManage/update',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'fileType', type: 'Number'},
                {name: 'pageTitle', type: 'String'},
                {name: 'keyWord', type: 'String'},
                {name: 'pageDesc', type: 'String'},
                {name: 'content', type: 'String'}
            ]
        },
        queryByCondition:{
            title: "静态文件查询",
            url: '/staticFileManage/queryByCondition',
            params: [
                {name: 'fileType', type: 'Number'},
                {name: 'beginTime', type: 'String'},
                {name: 'endTime', type: 'String'},
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        }
    }
}