/** * Created by yoho on 2016/6/20. */ module.exports = function (app) { /*************************************拍摄模特*************************************/ //列表页 app.get("/shotManage/model/index", "shootMeter.Model.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'拍摄模特管理', type:1, typeName:"拍摄模特" } }); //获取所有拍摄模特的信息 app.post("/shotManage/model/getAllModels", "shootMeter_queryModelList"); //添加模特信息 app.post("/shotManage/model/addModel", "shootMeter_addModel"); //编辑模特信息 app.post("/shotManage/model/updateModel", "shootMeter_updateModel"); //删除模特信息 app.post("/shotManage/model/delModel", "shootMeter_delModel"); /*************************************试穿模特*************************************/ //列表页 app.get("/meterManage/tryModel/index", "shootMeter.TryModel.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'试穿模特管理', type: 2, typeName:'试穿模特管理' } }); //获取所有试穿模特的信息 app.post("/meterManage/tryModel/index1", "shootMeter_queryModelList"); //添加模特信息 app.post("/meterManage/tryModel/addModel", "shootMeter_addModel"); //编辑模特信息 app.post("/meterManage/tryModel/updateModel", "shootMeter_updateModel"); //删除模特信息 app.post("/meterManage/tryModel/delModel", "shootMeter_delModel"); /*************************************尺码测量管理*************************************/ //列表页 app.get("/meterManage/meterSize/index", "shootMeter.MeterSize.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'尺码测量管理' } }); //获取所有尺码测量数据 app.post("/meterManage/productSize/queryProdSizeList", "shootMeter_queryProdSizeList"); //添加尺码测量数据界面 app.get("/meterManage/meterSize/add", "shootMeter.MeterSize.Add",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'添加尺码信息' } }); //添加尺码测量数据 app.post("/meterManage/productSize/saveProdSizeInfo", "shootMeter_saveProdSizeInfo"); //编辑品牌选项 app.post("/meterManage/brand/getSelectItems", "shootMeter_getSelectItems"); /*************************************试穿信息管理*************************************/ //列表页 app.get("/meterManage/tryInfo/index", "shootMeter.TryInfo.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'试穿信息管理' } }); //上传文件 app.get("/meterManage/tryInfo/batch", "shootMeter.TryInfo.Batch",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'上传文件' } }); //获取所有试穿信息 app.post("/meterManage/tryInfo/index2", "shootMeter_queryProdExtraList"); //获取单个skn对应的试穿信息 app.post("/meterManage/tryInfo/info1", "shootMeter_queryProdExtraInfo"); //添加试穿信息 app.post("/meterManage/tryInfo/add", "shootMeter_saveProdExtraInfo"); /*************************************拍摄要求管理*************************************/ //列表页 app.get("/shotManage/shotRequire/index", "shootMeter.ShootRequire.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'拍摄要求管理' } }); //获取所有拍摄要求信息 app.post("/shotManage/shotRequire/index1", "shootMeter_queryShootRequireList"); //保存拍摄要求 app.post("/shotManage/shotRequire/add", "shootMeter_saveShootRequire"); //修改、删除拍摄要求 app.post("/shotManage/shotRequire/update", "shootMeter_saveShootRequire"); /*************************************产品图片管理*************************************/ //列表页 app.get("/shotManage/proPhoto/index", "shootMeter.ProPhoto.Index",function(){ this.$extend={ moduleName:'拍摄复尺', pageName:'产品图片管理' } }); //产品图片数据列表 app.post("/shotManage/proPhoto/index2", "shootMeter_queryProductPhotoList"); //添加产品图片 app.post("/shotManage/proPhoto/add", "shootMeter_addProductBatchPhoto"); };