versionManage.js 1.54 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/version/index123213',
        method: 'GET',
        view: 'pages/operations/versionManage',
        src: '/operations/versionManage'
    },
    {//APP版本升级提醒列表
        route: '/operations/version/appVersionList',
        method: 'POST',
        url: '/version/appVersionList',
        params: []
    },
    {//新增APP版本提醒
        route: '/operations/version/addAppVersion',
        method: 'POST',
        url: '/version/addAppVersion',
        params: [
            {name: "version", type: "string"},
            {name: "clientType", type: "string"},
            {name: "content", type: "string"},
            {name: "url", type: "string"}
        ]
    },
    {//修改APP版本提醒
        route: '/operations/version/editAppVersion',
        method: 'POST',
        url: '/version/editAppVersion',
        params: [
            {name: "id", type: "number"},
            {name: "version", type: "string"},
            {name: "clientType", type: "string"},
            {name: "content", type: "string"},
            {name: "url", type: "string"}
        ]
    },
    {//改变状态
        route: '/operations/version/publishAppVersion',
        method: 'POST',
        url: '/version/publishAppVersion',
        params: [
            {name: "id", type: "number"},
            {name: "status", type: "number"}
        ]
    }
];