size.js
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Created by wangqianjun on 16/2/3.
*/
exports.domain = require('../config/common.js').domain;
//路由配置
exports.res = [
{
//产品管理【品类列表】页面渲染
route: '/erpproduct/sizeattribute/index',
method: 'GET',
view: 'pages/product/size-property',
src: '/product/size-property',
}, {
route: '/erpproduct/sizeattribute/propertyList',
method: 'POST',
url: '/product/querySizeAttributeList', //接口的url
params:[
{name: 'page', type: 'Number', def: '1'}, //页码
{name: 'size', type: 'Number', def : '10'} //每页条数
]
}, {
route: '/erpproduct/sizeattribute/propertyAdd', // 添加尺码属性
method: 'POST',
url: '/product/addSizeAttribute', //接口的url
params:[
{name: 'attributeName', type: 'String'} //名称
]
}, {
route: '/erpproduct/sizeattribute/propertyModify', // 修改尺码属性
method: 'POST',
url: '/product/updateSizeAttribute', //接口的url
params:[
{name: 'id', type: 'Number'}, //id
{name: 'attributeName', type: 'String'} //名称
]
}
];