operations.salecategory.js 7.27 KB
/**
 * Created by ty on 2016/6/23.
 * 销售类目
 */

module.exports={
    namespace:"salecategory",
    apis:{
        querySCList:{
            title: "销售类目列表",
            url: '/salesCategory/querySCList',
            params: [
                {name: 'state', type: 'string'}
            ]
        },
        querySCById:{
            title: "根据id获取单个销售类目",
            url: '/salesCategory/querySCById',
            params:[
                {name: 'categoryId', type: 'number'}
            ]
        },
        querySCLabelList:{
            title: "标签管理列表数据接口",
            url: '/salesCategoryLabel/querySCLabelList',
            params: [
                {name: 'categoryId', type: 'string'},
                {name: 'status', type: 'string'}
            ]
        },
        updateSCLabel:{
            title: "更新标签接口",
            url: '/salesCategoryLabel/updateSCLabel',
            params: [
                {name: 'labelId', type: 'string'},
                {name: 'labelName', type: 'string'},
                {name: 'categoryId', type: 'string'},
                {name: 'orderBy', type: 'string'},
                {name: 'status', type: 'string'},
                {name: 'id', type: 'string'}
            ]
        },
        addSC:{
            title: "添加销售类目接口",
            url: '/salesCategory/addSC',
            params: [
                {name: 'categoryName', type: 'string'},
                {name: 'appType', type: 'number'},
                {name: 'relationParameter', type: 'string'},
                {name: 'relationUrl', type: 'string'},
                {name: 'parentId', type: 'string'},
                {name: 'orderBy', type: 'string'},
                {name: 'icon', type: 'string'},
                {name:'productSkn',type:'number'},
                {name:'url',type:'string'},
                {name:'goTo',type:'string'}
            ]
        },
        updateSC:{
            title: "更新销售类目接口",
            url: '/salesCategory/updateSC',
            params: [
                {name: 'categoryId', type: 'string'},
                {name: 'categoryName', type: 'string'},
                {name: 'appType', type: 'number'},
                {name: 'relationParameter', type: 'string'},
                {name: 'relationUrl', type: 'string'},
                {name: 'parentId', type: 'string'},
                {name: 'orderBy', type: 'string'},
                {name: 'icon', type: 'string'},
                {name: 'state', type: 'string'},
                {name:'productSkn',type:'number'},
                {name:'url',type:'string'},
                {name:'goTo',type:'string'}
            ]
        },
        updateSCStatus:{
            title: "开关销售类目",
            url: '/salesCategory/updateSCStatus',
            params: [
                {name: 'categoryId', type: 'string'},
                {name: 'state', type: 'string'}
            ]
        },
        delSC:{
            title: "删除销售类目",
            url: '/salesCategory/delSC',
            params: [
                {name: 'categoryId', type: 'string'}
            ]
        },
        addSCLabel:{
            title: "批量添加标签接口",
            url: '/salesCategoryLabel/addSCLabel',
            params: [
                {name: 'labelName', type: 'string'},
                {name: 'categoryId', type: 'string'},
                {name: 'parentId', type: 'string'},
                {name: 'orderBy', type: 'string'},
                {name: 'labelLevel', type: 'string'},
                {name: 'status', type: 'string'}
            ]
        },
        productSearchLabelList:{
            title: "搜索标签列表数据接口",
            url: '/searchLabel/productSearchLabelList',
            params: [
                {name: 'status', type: 'number'},
                {name: 'categoryId', type: 'number'},
                {name: 'labelName', type: 'string'},
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'}
            ]
        },
        querySCSearchLabelList:{
            title: "销售类目已关联搜索标签列表数据接口",
            url: '/salesCategorySearchLabel/querySCSearchLabelList',
            params: [
                {name: 'categoryId', type: 'number'}
            ]
        },
        updateSCSearchLabelOrderBy:{
            title: "销售类目绑定搜索标签列表,修改排序值接口",
            url: '/salesCategorySearchLabel/updateSCSearchLabelOrderBy',
            params: [
                {name: 'id', type: 'number'},
                {name: 'orderBy', type: 'number'}
            ]
        },
        batchInsertSCSearchLabel:{
            title: "销售类目绑定搜索标签接口",
            url: '/salesCategorySearchLabel/batchInsertSCSearchLabel',
            params: [
                {name: 'labelId', type: 'number'},
                {name: 'categoryId', type: 'number'}
            ]
        },
        batchDeleteSCSearchLabel:{
            title: "取消销售类目绑定搜索标签接口",
            url: '/salesCategorySearchLabel/batchDeleteSCSearchLabel',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        deleteSCSearchLabelByCategoryId:{
            title: "取消销售类目绑定搜索标签接口",
            url: '/salesCategorySearchLabel/deleteSCSearchLabelByCategoryId',
            params: [
                {name: 'labelId', type: 'number'},
                {name: 'categoryId', type: 'number'},
                {name: 'sourceName',type: 'string'}
            ]
        },
        queryCategorySourceList:{
            title: "搜索资源位直通车列表",
            url: '/categorySource/queryCategorySourceList',
            params: [
                {name: 'state', type: 'number'},
                {name: 'sourceName', type: 'string'},
                {name: 'categoryId', type: 'number'},
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'}
            ]
        },
        insertCategorySourceLink:{
            title: "关联资源位直通车和销售类目",
            url: '/categorySource/insertCategorySourceLink',
            params: [
                {name: 'sourceId', type: 'number'},
                {name: 'categoryId', type: 'number'}
            ]
        },
        deleteCategorySourceLink:{
            title: "取消资源位直通车和销售类目关联关系",
            url: '/categorySource/deleteCategorySourceLink',
            params: [
                {name: 'sourceId', type: 'number'},
                {name: 'categoryId', type: 'number'}
            ]
        },
        batchInsertCategorySourceLink:{
            title: "批量关联资源位直通车和销售类目",
            url: '/categorySource/batchInsertCategorySourceLink',
            params: [
                {name: 'sourceIds', type: 'string'},
                {name: 'categoryId', type: 'number'}
            ]
        },
        batchDeleteCategorySourceLink:{
            title: "批量取消资源位直通车和销售类目关联关系",
            url: '/categorySource/batchDeleteCategorySourceLink',
            params: [
                {name: 'sourceIds', type: 'string'},
                {name: 'categoryId', type: 'number'}
            ]
        }
    }
}