api-map.js 1.03 KB
module.exports = {
    '/api/product/data': {
        api: 'app.product.data',
        cache: true,
        params: {
            product_id: {type: Number},
            uid: {type: Number, require: false}
        }
    },
    '/api/product/refundExchange': {
        api: 'app.product.refundExchange',
        cache: true,
        params: {
            product_skn: {type: Number}
        }
    },
    '/api/favorite/isFavoriteNew': {
        api: 'app.favorite.isFavoriteNew',
        params: {
            id: {type: Number},
            uid: {type: Number}
        }
    },
    '/api/resource/get': {
        api: 'operations/api/v5/resource/get',
        cache: true,
        service: true,
        params: {
            content_code: {type: String},
        }
    },
    '/api/search/fuzzy': {
        api: 'app.search.fuzzy',
        params: {
            keyword: {type: String, require: true},
        }
    },
    '/sort/list': {
        api: 'app.sort.get',
        cache: true,
        params: {
            app_type: 1,
        }
    }
};