Authored by weiqingting

update

  1 +/**
  2 + * Created by ty on 2016/7/4.
  3 + * 活动模板管理
  4 + */
  5 +
  6 +module.exports={
  7 + namespace:"activitytemplate",
  8 + apis:{
  9 + selectTemplateList:{
  10 + title: "查询模板列表接口",
  11 + url: "/activityTemplate/selectTemplateList",
  12 + params: [
  13 + {name: "status", type: "number"}
  14 + ]
  15 + },
  16 + addTemplate:{
  17 + title: "添加模板接口",
  18 + url: "/activityTemplate/addTemplate",
  19 + params: [
  20 + {name: "title", type: "string"},
  21 + {name: "image", type: "string"},
  22 + {name: "url", type: "string"},
  23 + {name: "shareId", type: "number"}
  24 + ]
  25 + },
  26 + getTemplate:{
  27 + title: "获取单个模板接口",
  28 + url: "/activityTemplate/getTemplate",
  29 + params: [
  30 + {name: "id", type: "number"}
  31 + ]
  32 + },
  33 + updateTemplate:{
  34 + title: "更新模板接口",
  35 + url: "/activityTemplate/updateTemplate",
  36 + params: [
  37 + {name: "id", type: "number"},
  38 + {name: "title", type: "string"},
  39 + {name: "image", type: "string"},
  40 + {name: "url", type: "string"},
  41 + {name: "shareId", type: "number"}
  42 + ]
  43 + },
  44 + publishTemplate:{
  45 + title: "开启模板接口",
  46 + url: "/activityTemplate/publishTemplate",
  47 + params: [
  48 + {name: "id", type: "number"}
  49 + ]
  50 + },
  51 + closeTemplate:{
  52 + title: "关闭模板接口",
  53 + url: "/activityTemplate/closeTemplate",
  54 + params: [
  55 + {name: "id", type: "number"}
  56 + ]
  57 + },
  58 + getProductListByCondition:{
  59 + title: "根据条件查询活动商品列表接口",
  60 + url: "/activityTemplate/getProductListByCondition",
  61 + params: [
  62 + {name: "templateId", type: "number"},
  63 + {name: "productSkn", type: "number"},
  64 + {name: "page", type: "number"},
  65 + {name: "size", type: "number"}
  66 + ]
  67 + },
  68 + insertProduct:{
  69 + title: "插入活动商品信息接口",
  70 + url: "/activityTemplate/insertProduct",
  71 + params: [
  72 + {name: "templateId", type: "number"},
  73 + {name: "productSkn", type: "number"}
  74 + ]
  75 + },
  76 + updateProduct:{
  77 + title: "更新商品信息接口",
  78 + url: "/activityTemplate/updateProduct",
  79 + params: [
  80 + {name: "id", type: "number"},
  81 + {name: "orderBy", type: "number"},
  82 + {name: "isRecommend", type: "number"},
  83 + {name: "status", type: "number"}
  84 + ]
  85 + },
  86 + delOneProduct:{
  87 + title: "删除商品信息接口",
  88 + url: "/activityTemplate/delOneProduct",
  89 + params: [
  90 + {name: "id", type: "number"}
  91 + ]
  92 + }
  93 + }
  94 +}
  1 +/**
  2 + * Created by ty on 2016/7/5.
  3 + * app图标管理
  4 + */
  5 +
  6 +module.exports={
  7 + namespace:"icon",
  8 + apis:{
  9 + getList:{
  10 + title: "查询图标列表",
  11 + url: '/icon/getList',
  12 + params: [
  13 + {name: 'type', type: 'Number'},
  14 + {name: 'status', type: 'Number'}
  15 + ]
  16 + },
  17 + addIcon:{
  18 + title: "添加图标",
  19 + url: '/icon/addIcon',
  20 + params: [
  21 + {name: 'icoName', type: 'string'},
  22 + {name: 'defaultIco', type: 'string'},
  23 + {name: 'ico', type: 'string'},
  24 + {name: 'icoKey', type: 'string'},
  25 + {name: 'type', type: 'number'}
  26 + ]
  27 + },
  28 + getOneIcon:{
  29 + title: "根据ID获取图标信息",
  30 + url: '/icon/getOneIcon',
  31 + params: [
  32 + {name: 'id', type: 'number'}
  33 + ]
  34 + },
  35 + updateIcon:{
  36 + title: "更新图标信息",
  37 + url: '/icon/updateIcon',
  38 + params: [
  39 + {name: 'id', type: 'number'},
  40 + {name: 'icoName', type: 'string'},
  41 + {name: 'defaultIco', type: 'string'},
  42 + {name: 'ico', type: 'string'},
  43 + {name: 'icoKey', type: 'string'},
  44 + {name: 'type', type: 'number'}
  45 + ]
  46 + },
  47 + publishIcon:{
  48 + title: "开启图标入口",
  49 + url: '/icon/publishIcon',
  50 + params: [
  51 + {name: 'id', type: 'number'}
  52 + ]
  53 + },
  54 + closeIcon:{
  55 + title: "关闭图标入口",
  56 + url: '/icon/closeIcon',
  57 + params: [
  58 + {name: 'id', type: 'number'}
  59 + ]
  60 + }
  61 + }
  62 +}
  1 +/**
  2 + * Created by ty on 2016/7/6.
  3 + * 活动分享管理
  4 + */
  5 +
  6 +module.exports = {
  7 + namespace: "webshare",
  8 + apis: {
  9 + getWebShareList: {
  10 + title: "活动分享列表",
  11 + url: "/webShare/getWebShareList",
  12 + params: [
  13 + {name: "id", type: "number"},
  14 + {name: "status", type: "string"},
  15 + {name: "title", type: "string"},
  16 + {name: "page", type: "number"},
  17 + {name: "size", type: "number", default: 20}
  18 + ]
  19 + },
  20 + addWebShare: {
  21 + title: "新增活动分享",
  22 + url: "/webShare/addWebShare",
  23 + params: [
  24 + {name: "title", type: "string"},
  25 + {name: "shareTitleMain", type: "string"},
  26 + {name: "shareTitleSub", type: "string"},
  27 + {name: "shareImage", type: "string"},
  28 + {name: "shareUrl", type: "string"},
  29 + {name: "status", type: "string"}
  30 + ]
  31 + },
  32 + updateWebShare: {
  33 + title: "更新活动分享",
  34 + url: "/webShare/updateWebShare",
  35 + params: [
  36 + {name: "id", type: "number"},
  37 + {name: "title", type: "string"},
  38 + {name: "shareTitleMain", type: "string"},
  39 + {name: "shareTitleSub", type: "string"},
  40 + {name: "shareImage", type: "string"},
  41 + {name: "shareUrl", type: "string"},
  42 + {name: "status", type: "string"}
  43 + ]
  44 + },
  45 + selectWebShare: {
  46 + title: "根据id查询数据",
  47 + url: "/webShare/selectWebShare",
  48 + params: [
  49 + {name: "id", type: "number"}
  50 + ]
  51 + }
  52 + }
  53 +}
  1 +/**
  2 + * Created by ty on 2016/7/5.
  3 + * app图片包
  4 + */
  5 +
  6 +module.exports={
  7 + namespace:"ziplist",
  8 + apis:{
  9 + getZipList:{
  10 + title: "加载图片包列表",
  11 + url: '/icon/getZipList',
  12 + params: [
  13 + {name: 'platform', type: 'string'},
  14 + {name: 'status', type: 'Number'}
  15 + ]
  16 + },
  17 + addZip:{
  18 + title: "上传图片包",
  19 + url: '/icon/addZip',
  20 + params: [
  21 + {name: 'zip', type: 'string'},
  22 + {name: 'platform', type: 'string'}
  23 + ]
  24 + },
  25 + publishZip:{
  26 + title: "启用图片包",
  27 + url: '/icon/publishZip',
  28 + params: [
  29 + {name: 'id', type: 'number'}
  30 + ]
  31 + },
  32 + closeZip:{
  33 + title: "关闭图片包",
  34 + url: '/icon/closeZip',
  35 + params: [
  36 + {name: 'id', type: 'number'}
  37 + ]
  38 + }
  39 + }
  40 +}