tryModel.js 2.37 KB
/**
 * Created by JiangMin on 2016/3/22.
 * 试穿模特管理
 */
//exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8088/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境

exports.res = [
    //主界面
    {
        route: '/meterManage/tryModel/index',//访问路由
        method: 'GET',//方法
        view: 'pages/meterManage/tryModel',//视图
        src: '/meterManage/tryModel',//控制层
        data: {
            search:false,
            type: 2,
            typeName:'试穿模特管理',
            status:1
        }
    },
    //api请求数据
    {
        route: '/meterManage/tryModel/index1',
        method: 'POST',
        url: '/model/queryModelList',
        params: [
            {name: 'modelName', type: 'string'},//名称
            {name: 'beginTime', type: 'Number'},
            {name: 'endTime', type: 'Number'},
            {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'}//头像
        ]
    }
];