index.js 1.9 KB
/**
 * Created by yoho on 2016/6/20.
 * VIP 接口定义
 */

module.exports = {
    namespace: "vip",
    apis: {
        /*************************************VIP管理*************************************/
        queryProductVipList: {
            title: "获取商品VIP列表",
            url: '/vip/queryProductVipList',
            params: {
                productSkn: {type: Number},
                shopId: {type: Number},
                brandId: {type: Number},
                vipDiscountType: {type: Number},
                vipReturnCoinStatus: {type: Number},
                page: {type: Number}
            }
        },
        changeStatus: {
            title: "修改商品VIP状态",
                url: '/vip/changeStatus',
                params: {
                productSkn: {type: Number},
                productVipStatus: {type: Number}
            }
        },
        batchChangeStatus: {
            title: "修改商品VIP状态",
            url: '/vip/batchChangeStatus',
            params: {
                sknList: {type: String},
                changeStatus: {type: Number}
            }
        },
        shopVipTrigger: {
            title: "开启关闭",
            url: "/vip/shopVipTrigger",
            params: [
                { name: 'shopsIds', type: 'String'},
                { name: 'vipStatus', type: 'Number'}
            ]
        },
        changeReturnCoinStatus: {
            title: "修改商品VIP状态",
            url: '/vip/changeReturnCoinStatus',
            params: {
                productSkn: {type: Number},
                vipReturnCoinStatus: {type: Number}
            }
        },
        batchChangeReturnCoinStatus: {
            title: "修改商品VIP状态",
            url: '/vip/batchChangeReturnCoinStatus',
            params: {
                sknList: {type: String},
                vipReturnCoinStatus: {type: Number}
            }
        }
    }
};