shop.shopCategory.js 3.58 KB
module.exports={
    namespace:"shopCategory",
    apis:{
        selectCategoryNameById:{
            title:"根据ID获取店铺名称或者类目名称",
            url:"/ShopsSalesCategoryRest/selectNameById",
            params:[
                {name:"categoryId",type:"Number"}
            ]
        },

        shopsCategoryList:{
            title:"店铺商品分类列表",
            url:"/ShopsSalesCategoryRest/shopsCategoryList",
            params:[]
        },

        selectCategoryList:{
            title:"店铺商品分类列表,仅用于装修页面,下拉选择商品分类场景",
            url:"/ShopsSalesCategoryRest/selectCategoryList",
            params:[
                {name:"shopId",type:"Number"}
            ]
        },

        insertShopsAndLinkCategory:{
            title:"新增店铺商品分类",
            url:"/ShopsSalesCategoryRest/insertShopsAndLinkCategory",
            params:[
                {name:"categoryName",type:"String"}
            ]
        },

        updateShopsAndLinkCategory:{
            title:"编辑店铺商品分类",
            url:"/ShopsSalesCategoryRest/updateShopsAndLinkCategory",
            params:[
                {name:"categoryId",type:"Number"},
                {name:"categoryName",type:"String"}
            ]
        },

        deleteShopsCategory:{
            title:"删除店铺商品分类",
            url:"/ShopsSalesCategoryRest/deleteShopsCategory",
            params:[
                {name:"categoryId",type:"Number"}
            ]
        },

        selectAllProduct:{
            title:"获取店铺下该类目所有商品接口",
            url:"/ShopsSalesCategoryRest/selectAllProduct",
            params:[
                {name:"categoryId",type:"Number"},
                {name:"productSKN",type:"Number"},
                {name:"productName",type:"String"},
                {name:"page",type:"Number"},
                {name:"maxSortId",type:"Number"},
                {name:"middleSortId",type:"Number"},
                {name:"smallSortId",type:"Number"},
                {name:"status",type:"Number"}
            ]
        },

        selectCheckedProduct:{
            title:"获取店铺下该类目已选商品接口",
            url:"/ShopsSalesCategoryRest/selectCheckedProduct",
            params:[
                {name:"categoryId",type:"Number"},
                {name:"productSKN",type:"Number"},
                {name:"productName",type:"String"},
                {name:"page",type:"Number"},
                {name:"maxSortId",type:"Number"},
                {name:"middleSortId",type:"Number"},
                {name:"smallSortId",type:"Number"},
                {name:"status",type:"Number"}
            ]
        },

        insertProductLinkCategory:{
            title:"单个将商品关联类目",
            url:"/ShopsSalesCategoryRest/insertProductLinkCategory",
            params:[
                {name:"categoryId",type:"Number"},
                {name:"productSKN",type:"Number"}
            ]
        },

        deleteProductLinkCategory:{
            title:"单个将商品取消与类目的关联",
            url:"/ShopsSalesCategoryRest/deleteProductLinkCategory",
            params:[
                {name:"categoryId",type:"Number"},
                {name:"productSKN",type:"Number"}
            ]
        },

        deleteAllProductLinkedCategory:{
            title:"取消所有商品与类目的关联关系",
            url:"/ShopsSalesCategoryRest/deleteAllProductLinkedCategory",
            params:[
                {name:"categoryId",type:"Number"}
            ]
        }
    }
}