sourceSort.js 1.39 KB
/**
 * Created by ty on 2016/3/23.
 * 资源分类列表
 */

exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.115:8080/platform';//王伟
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境

exports.res = [
    {
        route: '/resource/sort/index',
        method: 'GET',
        view: 'pages/sourceManage/resourceSortManage',
        src: '/sourceManage/resourceSortManage'
    },
    {
        route: '/resources/resSortIndex',
        method: 'POST',
        url: '/resources/resSortIndex',
        params: []
    },
    {
        route: '/resources/addResSort',
        method: 'POST',
        url: '/resources/addResSort',
        params: [
            {name: 'sortName', type: 'string'},
            {name: 'platformId', type: 'number'},
            {name: 'status', type: 'number'}
        ]
    },
    {
        route: '/resources/updateResSort',
        method: 'POST',
        url: '/resources/updateResSort',
        params: [
            {name: 'sortId', type: 'number'},
            {name: 'sortName', type: 'string'},
            {name: 'platformId', type: 'number'},
            {name: 'status', type: 'number'}
        ]
    },
    {
        route: '/resources/deleteResourcesSort',
        method: 'POST',
        url: '/resources/deleteResourcesSort',
        params: [
            {name: 'sortId', type: 'number'}
        ]
    }
];