staticFileManager.js 1.78 KB
/**
 * Created by wangqianjun on 16/5/16.
 */
exports.domain = require('../config/common.js').domain;

exports.res = [
    {//逛-> 资讯管理 空白页
        route: '/operations/staticFileManager/index',
        method: 'GET',
        view: 'pages/operations/staticFileManager',
        src: '/operations/staticFileManager',
        data: {
            iscreate: true
        }
    }, { // 新增
        route: '/staticFileManage/add',
        method: 'POST',
        url: '/staticFileManage/add',
        params: [
            {name: 'fileType', type: 'Number'},
            {name: 'pageTitle', type: 'String'},
            {name: 'keyWord', type: 'String'},
            {name: 'pageDesc', type: 'String'},
            {name: 'content', type: 'String'}
        ]
    }, { // 删除
        route: '/staticFileManage/deleteById',
        method: 'POST',
        url: '/staticFileManage/deleteById',
        params: [
            {name: 'id', type: 'Number'}
        ]
    }, { // 修改
        route: '/staticFileManage/update',
        method: 'POST',
        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'}
        ]
    }, { // 查询
        route: '/staticFileManage/queryByCondition',
        method: 'POST',
        url: '/staticFileManage/queryByCondition',
        params: [
            {name: 'fileType', type: 'Number'},
            {name: 'beginTime', type: 'String'},
            {name: 'endTime', type: 'String'},
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    }
];