marketing.Department.js 1.1 KB

/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "Department",
    apis: {
        /************************************部门信息*************************************/
        add: {
            title: "新增部门",
            url: '/coupon/insertDepartment',
            params: {
                departmentName: {type: String}
            }
        },
        update: {
            title: "编辑部门",
            url: '/coupon/updateDepartment',
            params: {
                department: {type: Number},
                departmentName: {type: String}
            }
        },
        list:{
            title:"列表",
            url:"/coupon/queryDepartmentList",
            params: {
                page: {type: Number},
                size: {type: Number},
                department: {type: Number},
                departmentSel:{type:Number}
            }
        },
        queryById: {
            title: "查询信息",
            url: '/coupon/selectByDepartmentId',
            params: {
                department: {type: Number}
            }
        }
    }
};