category.category.js 2.47 KB
module.exports={
    namespace:"category",
    apis:{
        queryAllProductSortList:{
        	title:'获取所有品类',
        	url: '/product/queryAllProductSortList',
            params: [
                {name: 'status', type: 'Number'}
            ]
        },
        addProductSort:{
        	title:'商品管理>【添加品类】ajax请求接口',
        	url: '/product/addProductSort',
	        params: [
	            {name: 'sortName', type: 'String'},
	            {name: 'sortInitials', type: 'String'},
	            {name:'firstSortId', type: 'Number'},
	            {name:'secondSortId', type:'Number'},
	            {name:'threeSortId', type:'Number'},
	            {name: 'orderBy', type: 'Number'},
	            {name: 'status', type: 'Number'},
	            {name: 'gender', type: 'Number'},
				{name: 'sortIco', type: 'String'},
				{name: 'taxRate', type: 'number'}
	        ]
        },
        getProductSort:{
        	title:'获取商品类目',
        	url:'/product/getProductSort',
	        params: [
	            {name: 'param', type: 'Number'}
	        ]
        },
        updateProductSort:{
        	title:'更新商品类目',
        	url: '/product/updateProductSort',
	        params: [
	            {name: 'id', type: 'Number'},
	            {name: 'sortName', type: 'String'},
	            {name: 'sortInitials', type: 'String'},
	            {name:'firstSortId', type: 'Number'},
	            {name:'secondSortId', type:'Number'},
	            {name:'threeSortId', type:'Number'},
	            {name: 'orderBy', type: 'Number'},
	            {name: 'status', type: 'Number'},
	            {name: 'gender', type: 'Number'},
				{name: 'sortIco', type: 'String'},
                {name: 'taxRate', type: 'number'},
                {name: 'compositeRate', type: 'number'},
                {name: 'netWeight', type: 'number'},
                {name: 'grossWeight', type: 'number'}
	        ]
        },
        publishProductSort:{
        	title:'publishProductSort',
        	url: '/product/publishProductSort',
	        params: [
	            {name: 'param', type: 'Number'}
	        ]
        },
        closeProductSort:{
        	title:'closeProductSort',
        	url: '/product/closeProductSort',
	        params: [
	            {name: 'param', type: 'Number'}
	        ]
        },
        delProductSort:{
        	title:'delProductSort',
        	url: '/product/delProductSort',
	        params: [
	            {name: 'param', type: 'Number'}
	        ]
        }
    }
}