netSaleTy.js 1.52 KB
exports.domain = require('../config/common.js').domain;

exports.res = [
{
	//保存搜索顺序
	route:'/netSale/saveSearchSort',
	method:'POST',
	url: '/product/saveSearchSort',
	params: [
		{name: 'searchSortList', type: 'string'}
	]
},
{
	//查找热搜词
	route:'/netSale/queryHotSearchTerms',
	method:'POST',
	url: '/searchWords/queryHotSearchTerms',
	params: [
		{name: 'page', type: 'number'},
		{name: 'size', type: 'number', def: 10}
	]
},
{
	//查找洗涤提示
	route:'/netSale/getAll4Select',
	method:'POST',
	url: '/washTips/getAll4Select/',
	params: []
},
{
	//查找材质参数
	route:'/netSale/queryAllBySortId4Select',
	method:'POST',
	url: '/productMaterial/queryAllBySortId4Select',
	params: [
		{name: 'param', type: 'number'}
	]
},
{
	//查找所有商品参数信息 //暂时没用
	route:'/netSale/queryAllGoodsParams',
	method:'POST',
	apis: {
		washTipsList: {
			url: '/washTips/getAll4Select/'
		},
		materialList: {
			url: 'productMaterial/queryAllBySortId4Select',
			params: [
				{name: 'param', type: 'number'}
			],
			isJsonRaw: true
		}
	}
},
{
	//保存搜索关键词
	route:'/netSale/saveNetSaleSearchKeys',
	method:'POST',
	url: '/product/saveNetSaleSearchKeys',
	params: [
		{name: 'productSkn', type: 'number'},
		{name: 'searchKeys', type: 'string'}
	]
},
{
	//保存商品参数
	route:'/netSale/saveProductParam',
	method:'POST',
	url: '/product/saveProductParam',
	params: [
		{name: 'productSkn', type: 'number'},
		{name: 'washTips', type: 'string'},
		{name: 'productMaterial', type: 'string'}
	]
}
];