tryModel.js
2.3 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* Created by JiangMin on 2016/3/22.
* 试穿模特管理
*/
exports.domain = require('../config/common.js').domain;
exports.res = [
//主界面
{
route: '/meterManage/tryModel/index',//访问路由
method: 'GET',//方法
view: 'pages/meterManage/tryModel',//视图
src: '/meterManage/tryModel',//控制层
data: {
type: 2,
typeName:'试穿模特管理',
status:""
}
},
//api请求数据
{
route: '/meterManage/tryModel/index1',
method: 'POST',
url: '/model/queryModelList',
params: [
{name: 'modelName', type: 'string'},//名称
{name: 'beginTime', type: 'Number'},
{name: 'endTime', type: 'Number'},
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
//新增模特
{
route: '/meterManage/tryModel/addModel',
method: 'POST',
url: '/model/addModel',
params: [
{name: 'height', type: 'Number'},//身高
{name: 'modelName', type: 'string'},//名称
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'vitalStatistics', type: 'string'},//三围
{name: 'weight', type: 'Number'},//体重
{name: 'avatar', type: 'string'}//头像
]
},
//修改模特
{
route: '/meterManage/tryModel/updateModel',
method: 'POST',
url: '/model/updateModel',
params: [
{name: 'id', type: 'Number'},//主键
{name: 'height', type: 'Number'},//身高
{name: 'modelName', type: 'string'},//名称
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'vitalStatistics', type: 'string'},//三围
{name: 'weight', type: 'Number'},//体重
{name: 'avatar', type: 'string'}//头像
]
}
];