proattr.js 2.54 KB
module.exports={
    namespace:"porattr",
    apis:{
        queryProductSortListByConf:{
        	title:'产品属性',
        	url:'/product/queryProductSortListByConf',
	        params:{
	            status:{type:String,default:1}
	        }
        },
        addProductAttribute:{
        	title:'添加产品属性ajax',
        	url: '/product/addProductAttribute',
	        params: [
	            {name: 'attributeName', type: 'String'},
	            {name: 'saleType', type: 'Number'},
	            {name: 'inputType', type: 'String'},
	            {name: 'attributeType', type: 'String'},
	            {name: 'isMust', type: 'String'},
	            {name: 'isSearch', type: 'String'},
	            {name: 'maxValueLen', type: 'Number'},
	            {name: 'isAllowAlias', type: 'String'},
	            {name: 'orderBy', type: 'Number'},
	            {name: 'state', type: 'Number'},
	            {name: 'remark', type: 'String'},
	            {name: 'attributeValues', type: 'String'},
	            {name: 'displayPosition', type: 'Number'},
	            {name: 'categoryId', type: 'Number'}
	        ]
        },
        updateProductAttribute:{
        	title:'更新产品属性ajax',
        	url: '/product/updateProductAttribute',
	        params: [
	            {name: 'attributeName', type: 'String'},
	            {name: 'saleType', type: 'Number'},
	            {name: 'inputType', type: 'String'},
	            {name: 'attributeType', type: 'String'},
	            {name: 'isMust', type: 'String'},
	            {name: 'isSearch', type: 'String'},
	            {name: 'maxValueLen', type: 'Number'},
	            {name: 'isAllowAlias', type: 'String'},
	            {name: 'orderBy', type: 'Number'},
	            {name: 'state', type: 'Number'},
	            {name: 'remark', type: 'String'},
	            {name: 'attributeValues', type: 'String'},
	            {name: 'displayPosition', type: 'Number'},
	            {name: 'attributeId', type: 'Number'},
	            {name: 'categoryId', type: 'Number'}
	        ]
        },
        queryProductAttributeList:{
        	title:'根据类目ID ajax查询属性列表',
        	url: '/product/queryProductAttributeList',
	        params: [
	            {name: 'categoryId', type: 'Number'},
	            {name: 'page', type: 'Number'},
	            {name: 'size', type: 'Number'}
	        ]
        },
        getProductAttribute:{
        	title:'ajax查询属性的详细信息',
        	url: '/product/getProductAttribute',
	        params: [
	            {name: 'attributeId', type: 'Number'}
	        ]
        }
    }
}