shotRequire.js 1.56 KB
/**
 * Created by JiangMin on 2016/3/17.
 * 拍摄要求管理
 */
//exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8080/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境

exports.res = [
    //主界面
    {
        route: '/shotManage/shotRequire/index',//访问路由
        method: 'GET',//方法
        view: 'pages/shotManage/shotRequire',//视图
        src: '/shotManage/shotRequire'//控制层
    },
    //api请求数据列表
    {
        route: '/shotManage/shotRequire/index1',
        method: 'POST',
        url: '/shootRequire/queryShootRequireList',
        params: [
            {name: 'type', type: 'Number'},//类别
            {name: 'status', type: 'Number'},//状态
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //新增
    {
        route: '/shotManage/shotRequire/add',
        method: 'POST',
        url: '/shootRequire/saveShootRequire',
        params: [
            {name: 'type', type: 'Number'},//类别
            {name: 'status', type: 'Number'},//状态
            {name: 'name', type: 'string'}//名称
        ]
    },
    //删除
    {
        route: '/shotManage/shotRequire/update',
        method: 'POST',
        url: '/shootRequire/saveShootRequire',
        params: [
            {name: 'id', type: 'Number'},//主键
            {name: 'type', type: 'Number'},//类别
            {name: 'status', type: 'Number'},//状态
            {name: 'name', type: 'string'}//名称
        ]
    }
];