tryModel.js 2.3 KB
/**
 * 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'}//头像
        ]
    }
];