marketing.ProductPool.js 4.18 KB
/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "ProductPool",
    apis: {
        /************************************商品池*************************************/
        queryProductPoolPage: {
            title: "商品池列表",
            url: '/pool/queryProductPoolPage',
            params: {
                id: {type: Number},
                poolName: {type: String},
                diffType: {type: Number},
                page: {type: Number},
                size: {type: Number,default:10}
            }
        },
        addProductPoolBo: {
            title: "添加商品池",
            url: '/pool/addProductPoolBo',
            params: {
                activityid: {type: Number},
                poolName: {type: String},
                comment: {type: String},
                producttype: {type: String},
                diffType: {type: Number},
                productSkns: {type: String},
                productDetailInfo: {type: String},
                bannerUrl: {type: String},
                backImageUrl: {type: String},
                tokens: {type: String},
            }
        },
        updateProductPool: {
            title: "编辑商品池",
            url: '/pool/updateProductPool',
            params: {
                id: {type: Number},
                poolName: {type: String},
                comment: {type: String},
                producttype: {type: String},
                productSkns: {type: String},
                productDetailInfo: {type: String},
                bannerUrl: {type: String},
                backImageUrl: {type: String},
                tokens: {type: String}
            }
        },
        clearProductPool: {
            title: "清空商品池",
            url: '/pool/clearProductPool',
            params: {
                id: {type: Number}
            }
        },
        clearProductPoolBanner: {
            title: "清空商品池banner",
            url: '/pool/clearProductPoolBanner',
            params: {
                id: {type: Number}
            }
        },
        clearProductPoolBackImageUrl: {
            title: "清空商品池活动背景图",
            url: '/pool/clearProductPoolBackImageUrl',
            params: {
                id: {type: Number}
            }
        },
        deleteProductPool: {
            title: "删除商品池",
            url: '/pool/deleteProductPool',
            params: {
                id: {type: Number}
            }
        },
        queryProductPoolDetailPage: {
            title: "详情列表",
            url: '/pool/queryProductPoolDetailPage',
            params: {
                id: {type: Number},
                productSkn:{type: Number},
                maxSortId:{type: Number},
                middleSortId:{type: Number},
                smallSortId:{type: Number},
                brandId:{type: Number},
                page: {type: Number},
                size: {type: Number,default:10}
            }
        },
        deleteProductPoolDetailBo: {
            title: "详情删除SKN",
            url: '/pool/deleteProductPoolDetailBo',
            params: {
                id: {type: Number}
            }
        },
        addProductPoolDetailBo: {
            title: "详情添加SKN",
            url: '/pool/addProductPoolDetailBo',
            params: {
                activityid: {type: Number},
                poolId: {type: Number},
                productskn: {type: Number},
                producttype: {type: Number}
            }
        },
        updateProductPoolDetailSort: {
            title: "详情修改排序",
            url: '/pool/updateProductPoolDetailSort',
            params: {
                id: {type: Number},
                producttype: {type: Number},
                sort: {type: Number}
            }
        },
        batchAddProductPool: {
            title: "批量添加SKN",
            url: '/pool/batchAddProductPool',
            params: {
                activityid: {type: Number},
                id: {type: Number},
                producttype: {type: Number},
                productSkns: {type: String},
                productDetailInfo: {type: String}
            }
        }
    }
};