entrance.js 2.23 KB
/**
 * Created by ty on 2016/3/22.
 * 入口管理
 */

exports.domain = require('../config/common.js').domain;
// exports.domain = "http://172.16.6.127:8088/platform";

exports.res = [
    {//入口信息管理界面
        route:'/operations/entrance/index1',
        method: 'GET',
        view: 'pages/product/entrance',
        src: '/product/entrance'
    },
    {//入口列表
        route: '/operations/entrance/selectEntranceList',
        method: 'POST',
        url:'/entrance/selectEntranceList',
        params: [
            {name: "platform", type:"string"},
            {name: "status", type:"string"},
            {name: "page", type:"number"}
        ]
    },
    {//添加入口
        route: '/operations/entrance/insertEntrance',
        method: 'POST',
        url: '/entrance/insertEntrance',
        params: [
            {name: "entryName", type:"string"},
            {name: "clickBeforeImg", type:"string"},
            {name: "clickAfterImg", type:"string"},
            {name: "url", type:"string"},
            {name: "platform", type:"string"},
            {name: "orderBy", type:"string"},
            {name: "status", type:"string"},
            {name: "zipUrl", type:"string"},
            {name: "channelId", type:"string"},
            {name: "gender", type:"string"}
        ]
    },
    {//修改入口
        route: '/operations/entrance/updateEntrance',
        method: 'POST',
        url: '/entrance/updateEntrance',
        params: [
            {name: "id", type:"number"},
            {name: "entryName", type:"string"},
            {name: "clickBeforeImg", type:"string"},
            {name: "clickAfterImg", type:"string"},
            {name: "url", type:"string"},
            {name: "platform", type:"string"},
            {name: "orderBy", type:"string"},
            {name: "status", type:"string"},
            {name: "zipUrl", type:"string"},
            {name: "channelId", type:"string"},
            {name: "gender", type:"string"}
        ]
    },
    {//更改入口状态
        route: '/operations/entrance/publishEntrance',
        method: 'POST',
        url: '/entrance/publishEntrance',
        params: [
            {name: "id", type: "number"},
            {name: "status", type: "string"}
        ]
    }
];