model.js 2.89 KB
/**
 * Created by JiangMin on 2016/3/17.
 * 模特管理
 */
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: '/shotManage/model/index',//访问路由
        method: 'GET',//方法
        view: 'pages/shotManage/model',//视图
        src: '/shotManage/model',//控制层
        data:{
            type:1,
            typeName:'拍摄模特管理'
        }
    },
    //api请求数据
    {
        route: '/shotManage/model/getAllModels',
        method: 'POST',
        url: '/model/queryModelList',
        params: [
            {name: 'englishName', type: 'string'},//英文名
            {name: 'modelName', type: 'string'},//名称
            {name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
            {name: 'modelType', type: 'Number'},//模特类型:1拍摄模特 2试穿模特
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //新增模特
    {
        route: '/shotManage/model/addModel',
        method: 'POST',
        url: '/model/addModel',
        params: [
            {name: 'englishName', type: 'string'},//英文名
            {name: 'height', type: 'Number'},//身高
            {name: 'dressSize', type: 'string'},//穿衣尺码
            {name: 'modelName', type: 'string'},//名称
            {name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
            {name: 'nationality', type: 'string'},//国籍
            {name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
            {name: 'shoeSize', type: 'string'},//鞋尺码
            {name: 'vitalStatistics', type: 'string'},//三围
            {name: 'weight', type: 'Number'},//体重
            {name: 'avatar', type: 'string'},//头像
            {name: 'modelCard', type: 'string'}//模特卡
        ]
    },
    //修改模特
    {
        route: '/shotManage/model/updateModel',
        method: 'POST',
        url: '/model/updateModel',
        params: [
            {name: 'id', type: 'Number'},//主键
            {name: 'englishName', type: 'string'},//英文名
            {name: 'height', type: 'Number'},//身高
            {name: 'dressSize', type: 'string'},//穿衣尺码
            {name: 'modelName', type: 'string'},//名称
            {name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
            {name: 'nationality', type: 'string'},//国籍
            {name: 'shoeSize', type: 'string'},//鞋尺码
            {name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
            {name: 'vitalStatistics', type: 'string'},//三围
            {name: 'weight', type: 'Number'},//体重
            {name: 'avatar', type: 'string'}//头像
        ]
    }
];