proPhoto.js 1.61 KB
/**
 * Created by JiangMin on 2016/3/22.
 * 产品图片管理
 */
exports.domain = require('../config/common.js').domain;

exports.res = [
    //主界面
    {
        route: '/shotManage/proPhoto/index',//访问路由
        method: 'GET',//方法
        view: 'pages/shotManage/proPhoto',//视图
        src: '/shotManage/proPhoto'//控制层
    },
    //api请求数据
    {
        route: '/shotManage/proPhoto/index2',
        method: 'POST',
        url: '/productPhoto/queryProductPhotoList',
        params: [
            //查询参数
            {name: 'productSkn', type: 'Number'},
            {name: 'productSkc', type: 'Number'},
            {name: 'productSku', type: 'Number'},
            {name: 'startTime', type: 'Number'},
            {name: 'endTime', type: 'Number'},
            //分页参数
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //编辑图片
    {
        route: '/shotManage/proPhoto/add',
        method: 'POST',
        url: '/productPhoto/addProductBatchPhoto',
        params: [
            {name: 'productSkn', type: 'Number'},
            {name: 'productSkc', type: 'Number'},
            {name: 'productSku', type: 'Number'},
            {name: 'ids', type: 'string'},
            {name: 'productPhotoAddStrList', type: 'string'}
        ]
    }
    //编辑图片
    //{
    //    route: '/shotManage/proPhoto/update',
    //    method: 'POST',
    //    url: '/productPhoto/updateProductPhoto',
    //    params: [
    //        {name: 'productSkn', type: 'Number'},
    //        {name: 'ids', type: 'string'}
    //    ]
    //}
];