product.js 2.67 KB
module.exports = {
    '/product/updateProductSort': function (req, res) {
        res.json({
            code: 200,
            message: ''
        })
    },
    '/product/class/addProductSort': function (req, res) {
        res.json({
            code: 200,
            message: ''
        })
    },
    '/product/getProductSort': function (req, res) {
        res.json({
            data: {
                sortName: '上衣',
                sortInitials: 'acccc',
                orderBy: 10,
                status: true
            }
        })
    },
    '/product/queryAllProductSortList': function (req, res) {
        res.json({
            data: [{
                id: 1,
                parentId: 0,
                child: false,
                sortLevel: 1,
                sortName: '上衣',
                sortInitials: 'abc',
                orderBy: 100,
                status: true
            }]
        })
    },
    '/product/queryProductSortList': function (req, res) {
        res.json({
            data: [{
                "createTime": 0,
                "gender": 3,
                "id": 14,
                "isHot": "N",
                "orderBy": 2,
                "parentId": 1,
                "sortCode": "1,14,0",
                "sortInitials": "bx",
                "sortLevel": 2,
                "sortName": "背心",
                "status": 1,
                "updateTime": 0
            }]
        })
    },
    '/product/attr': function (req, res) {

        res.json({

            list: [{
                value: 1,
                parentValue: 0,
                isChild: false,
                id: 1,
                level: 1,
                name: '上衣'
            },{
                value: 2,
                parentValue: 1,
                isChild: true,
                id: 121,
                level: 2,
                name: '上衣'
            },{
                value: 3,
                parentValue: 2,
                isChild: true,
                id: 1111,
                level: 3,
                name: '上衣'
            },{
                value: 4,
                parentValue: 0,
                isChild: false,
                id: 21,
                level: 1,
                name: '上衣'
            }]
        })
    },
    '/product/getAttr': function (req, res) {
        res.json({
            data: {
                attrName: '上衣',
                saleType: 'acccc',
                inputType: '键盘',
                enableSelect: true,
                enableSearch: true
            }
        })
    },
    '/product/addAttr': function (req, res) {
        res.json({
            code: 200,
            message: ''
        })
    }
};