|
|
/**
|
|
|
* 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 |
...
|
...
|
|