Authored by weiqingting

update

/**
* Created by ty on 2016/7/4.
* 活动模板管理
*/
module.exports={
namespace:"activitytemplate",
apis:{
selectTemplateList:{
title: "查询模板列表接口",
url: "/activityTemplate/selectTemplateList",
params: [
{name: "status", type: "number"}
]
},
addTemplate:{
title: "添加模板接口",
url: "/activityTemplate/addTemplate",
params: [
{name: "title", type: "string"},
{name: "image", type: "string"},
{name: "url", type: "string"},
{name: "shareId", type: "number"}
]
},
getTemplate:{
title: "获取单个模板接口",
url: "/activityTemplate/getTemplate",
params: [
{name: "id", type: "number"}
]
},
updateTemplate:{
title: "更新模板接口",
url: "/activityTemplate/updateTemplate",
params: [
{name: "id", type: "number"},
{name: "title", type: "string"},
{name: "image", type: "string"},
{name: "url", type: "string"},
{name: "shareId", type: "number"}
]
},
publishTemplate:{
title: "开启模板接口",
url: "/activityTemplate/publishTemplate",
params: [
{name: "id", type: "number"}
]
},
closeTemplate:{
title: "关闭模板接口",
url: "/activityTemplate/closeTemplate",
params: [
{name: "id", type: "number"}
]
},
getProductListByCondition:{
title: "根据条件查询活动商品列表接口",
url: "/activityTemplate/getProductListByCondition",
params: [
{name: "templateId", type: "number"},
{name: "productSkn", type: "number"},
{name: "page", type: "number"},
{name: "size", type: "number"}
]
},
insertProduct:{
title: "插入活动商品信息接口",
url: "/activityTemplate/insertProduct",
params: [
{name: "templateId", type: "number"},
{name: "productSkn", type: "number"}
]
},
updateProduct:{
title: "更新商品信息接口",
url: "/activityTemplate/updateProduct",
params: [
{name: "id", type: "number"},
{name: "orderBy", type: "number"},
{name: "isRecommend", type: "number"},
{name: "status", type: "number"}
]
},
delOneProduct:{
title: "删除商品信息接口",
url: "/activityTemplate/delOneProduct",
params: [
{name: "id", type: "number"}
]
}
}
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/7/5.
* app图标管理
*/
module.exports={
namespace:"icon",
apis:{
getList:{
title: "查询图标列表",
url: '/icon/getList',
params: [
{name: 'type', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
addIcon:{
title: "添加图标",
url: '/icon/addIcon',
params: [
{name: 'icoName', type: 'string'},
{name: 'defaultIco', type: 'string'},
{name: 'ico', type: 'string'},
{name: 'icoKey', type: 'string'},
{name: 'type', type: 'number'}
]
},
getOneIcon:{
title: "根据ID获取图标信息",
url: '/icon/getOneIcon',
params: [
{name: 'id', type: 'number'}
]
},
updateIcon:{
title: "更新图标信息",
url: '/icon/updateIcon',
params: [
{name: 'id', type: 'number'},
{name: 'icoName', type: 'string'},
{name: 'defaultIco', type: 'string'},
{name: 'ico', type: 'string'},
{name: 'icoKey', type: 'string'},
{name: 'type', type: 'number'}
]
},
publishIcon:{
title: "开启图标入口",
url: '/icon/publishIcon',
params: [
{name: 'id', type: 'number'}
]
},
closeIcon:{
title: "关闭图标入口",
url: '/icon/closeIcon',
params: [
{name: 'id', type: 'number'}
]
}
}
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/7/6.
* 活动分享管理
*/
module.exports = {
namespace: "webshare",
apis: {
getWebShareList: {
title: "活动分享列表",
url: "/webShare/getWebShareList",
params: [
{name: "id", type: "number"},
{name: "status", type: "string"},
{name: "title", type: "string"},
{name: "page", type: "number"},
{name: "size", type: "number", default: 20}
]
},
addWebShare: {
title: "新增活动分享",
url: "/webShare/addWebShare",
params: [
{name: "title", type: "string"},
{name: "shareTitleMain", type: "string"},
{name: "shareTitleSub", type: "string"},
{name: "shareImage", type: "string"},
{name: "shareUrl", type: "string"},
{name: "status", type: "string"}
]
},
updateWebShare: {
title: "更新活动分享",
url: "/webShare/updateWebShare",
params: [
{name: "id", type: "number"},
{name: "title", type: "string"},
{name: "shareTitleMain", type: "string"},
{name: "shareTitleSub", type: "string"},
{name: "shareImage", type: "string"},
{name: "shareUrl", type: "string"},
{name: "status", type: "string"}
]
},
selectWebShare: {
title: "根据id查询数据",
url: "/webShare/selectWebShare",
params: [
{name: "id", type: "number"}
]
}
}
}
... ...
/**
* Created by ty on 2016/7/5.
* app图片包
*/
module.exports={
namespace:"ziplist",
apis:{
getZipList:{
title: "加载图片包列表",
url: '/icon/getZipList',
params: [
{name: 'platform', type: 'string'},
{name: 'status', type: 'Number'}
]
},
addZip:{
title: "上传图片包",
url: '/icon/addZip',
params: [
{name: 'zip', type: 'string'},
{name: 'platform', type: 'string'}
]
},
publishZip:{
title: "启用图片包",
url: '/icon/publishZip',
params: [
{name: 'id', type: 'number'}
]
},
closeZip:{
title: "关闭图片包",
url: '/icon/closeZip',
params: [
{name: 'id', type: 'number'}
]
}
}
}
\ No newline at end of file
... ...