shootMeter.index.js 7.6 KB
/**
 * Created by yoho on 2016/6/20.
 * 拍摄复尺 接口定义
 */

module.exports = {
    namespace: "shootMeter",
    apis: {
        /*************************************模特管理*************************************/
        queryModelList: {
            title: "获取所有模特数据",
            url: "/model/queryModelList",
            params: {
                englishName: {type: String},
                modelName: {type: String},
                status: {type: Number},
                modelType: {type: Number},
                page: {type: Number},
                size: {type: Number}
            }
        },

        addModel: {
            title: "新增模特",
            url: "/model/addModel",
            params: {
                englishName: {type: String},
                height: {type: Number},
                dressSize: {type: String},
                downDressSize: {type: String},
                shoulderWidth: {type: Number},
                modelName: {type: String},
                modelType: {type: Number},
                nationality: {type: String},
                status: {type: Number},
                shoeSize: {type: String},
                vitalStatistics: {type: String},
                weight: {type: Number},
                avatar: {type: String},
                modelCard: {type: String}
            }
        },

        updateModel: {
            title: "编辑模特",
            url: "/model/updateModel",
            params: {
                id: {type: Number},
                englishName: {type: String},
                height: {type: Number},
                dressSize: {type: String},
                downDressSize: {type: String},
                shoulderWidth: {type: Number},
                modelName: {type: String},
                modelType: {type: Number},
                nationality: {type: String},
                status: {type: Number},
                shoeSize: {type: String},
                vitalStatistics: {type: String},
                weight: {type: Number},
                avatar: {type: String},
                modelCard: {type: String}
            }
        },
/*        updateModel2:function(req,callback,shootMeter){
            var option={
                id:req.params("id"),
                englishName:req.params("id"),
                id:req.params("id"),
                id:req.params("id"),
            };
            if(option.englishName){
                callback(null,{code:200,mesage:"xxxxx"})
            }else{
                shootMeter.updateModel(option).done(function(data){
                    shootMeter.addModel()
                    callback(null,data);
                });
            }

        },*/

        delModel: {
            title: "删除模特",
            url: "/model/delModel",
            params: {
                id: {type: Number}
            }
        },

        /*************************************尺码测量管理*************************************/

        queryProdSizeList: {
            title: "获取所有尺码测量数据",
            url: "/productSize/queryProdSizeList",
            params: {
                page: {type: Number},
                productSkn: {type: Number},
                brandId: {type: Number},
                productSku: {type: Number},
                maxSortId: {type: Number},
                arriveStartTime: {type: Number},
                arriveEndTime: {type: Number},
                isMeasure: {type: String},
                nationalCode: {type:String},
                sknFactoryCode:{type:String},
                skuNationalCode: {type:String}
            }
        },

        saveProdSizeInfo: {
            title: "保存尺码测量数据",
            url: "/productSize/saveProdSizeInfo",
            params: {
                productSkn: {type: Number},
                sizeInfoList: {type: String},
                productSizeReferList: {type: String},
                noMeasureIds: {type: String},
                sizeImgFlag: {type: Number},

            }
        },

        getSelectItems: {
            title: "获取品牌选项",
            url: "/brand/getSelectItems",
            params: {}
        },

        /*************************************试穿信息管理*************************************/

        queryProdExtraList: {
            title: "获取所有试穿数据",
            url: "/productExtraInfo/queryProdExtraList",
            params: {
                page: {type: Number},
                size: {type: Number},
                productSkn: {type: Number},
                productSku: {type: Number},
                productName: {type: String}
            }
        },

        queryProdExtraInfo: {
            title: "获取单个skn对应的试穿信息",
            url: "/productExtraInfo/queryProdExtraInfo",
            params: {
                productSkn: {type: Number}
            }
        },

        saveProdExtraInfo: {
            title: "添加试穿信息",
            url: "/productExtraInfo/saveProdExtraInfo",
            params: {
                productSkn: {type: Number},
                productModelTry: {type: String}
            }
        },

        /*************************************拍摄要求管理*************************************/

        queryShootRequireList: {
            title: "获取所有拍摄要求数据",
            url: "/shootRequire/queryShootRequireList",
            params: {
                page: {type: Number},
                size: {type: Number},
                type: {type: Number},
                status: {type: Number}
            }
        },

        saveShootRequire: {
            title: "保存,修改,删除拍摄要求",
            url: "/shootRequire/saveShootRequire",
            params: {
                id: {type: Number},
                type: {type: Number},
                status: {type: Number},
                name: {type: String}
            }
        },
        /************************************产品图片管理*************************************/
        queryProductPhotoList: {
            title: "产品图片数据列表",
            url: "/productPhoto/queryProductPhotoList",
            params: {
                page: {type: Number},
                size: {type: Number},
                productSkn: {type: Number},
                productSku: {type: Number},
                productSkc: {type: Number},
                startTime: {type: Number},
                shopId: {type: Number},
                brandId: {type: Number},
                endTime: {type: Number},
                type : {type : Number},
                excludeType : {type : Number}
            }
        },
        addProductBatchPhoto: {
            title: "添加产品图片",
            url: "/productPhoto/addProductBatchPhoto",
            params: {
                productSkn: {type: Number},
                productSku: {type: Number},
                productSkc: {type: Number},
                ids: {type: String},
                productPhotoAddStrList: {type: String}
            }
        },
       addtryModelInfo:{
         title: "增加试穿模特",
            url: "/productExtraInfo/updateeProdExtraInfo",
            params: {
                productSkn: {type: Number},
                erpFitModel: {type: String}
            }
       },
        queryModelListForSelect:{
             title: "获取商品尺寸",
            url: "/productSize/queryProdSizeListForSel"
        },
        querySkuByNationalCode: {
            title: "根据国际码查询sku",
            url: "/product/querySkuByNationalCode",
            params: {
                params: {type: String}
            }
        }
    }
};