Authored by xuhongyun

build

  1 +module.exports = function(app) {
  2 + // 存储装修模板
  3 + app.post("/shop/sellerDecoratorRest/saveDecoratorTemplate", "sellerDecorator_saveDecoratorTemplate");
  4 +
  5 + // 更新装修模板
  6 + app.post("/shop/sellerDecoratorRest/updateDecoratorTemplate", "sellerDecorator_updateDecoratorTemplate");
  7 +
  8 + //店铺装修保存
  9 + app.post("/shop/sellerDecoratorRest/saveShopsDecorator","sellerDecorator_saveShopsDecorator");
  10 +}
  11 +
  1 +module.exports = {
  2 + namespace: "sellerDecorator",
  3 + apis: {
  4 + saveDecoratorTemplate: {
  5 + title: "存储店铺装修模板",
  6 + url: "/sellerShopsDecoratorRest/saveDecoratorTemplate",
  7 + params: [
  8 + {name: "shopId", type: "Number"},
  9 + {name: "platform", type: "Number"},
  10 + {name: 'platformType', type: 'Number'},
  11 + {name: "appType", type: "Number"},
  12 + {name: "templateName", type: "String"},
  13 + {name: "templateType", type: "String"},
  14 + {name: "modules", type: "String"},
  15 + {name: "flag", type: "Number"}
  16 + ]
  17 + },
  18 +
  19 + updateDecoratorTemplate: {
  20 + title: "更新店铺模板",
  21 + url: "/sellerShopsDecoratorRest/updateDecoratorTemplate",
  22 + params: [
  23 + {name: "templateId", type: "Number"},
  24 + {name: "shopId", type: "Number"},
  25 + {name: "platform", type: "Number"},
  26 + {name: 'platformType', type: 'Number'},
  27 + {name: "appType", type: "Number"},
  28 + {name: "templateName", type: "String"},
  29 + {name: "modules", type: "String"}
  30 + ]
  31 + },
  32 +
  33 + saveShopsDecorator:{
  34 + title:"店铺装修详情保存",
  35 + url:"/sellerShopsDecoratorRest/saveShopsDecorator",
  36 + params:[
  37 + {name: 'shopsId', type: 'Number'},
  38 + {name: 'submitStatus', type: 'Number'},
  39 + {name: 'platform', type: 'String'},
  40 + {name: 'platformType', type: 'Number'},
  41 + {name: 'templateType', type: 'String'},
  42 + {name: 'resources', type: 'String'}
  43 + ]
  44 + }
  45 + }
  46 +}