/**
 * Created by TaoHuang on 2016/6/21.
 */

'use strict';

const serviceAPI = global.yoho.ServiceAPI;

const config = global.yoho.config;

/**
 * 资源码找资源
 */
const getResourceAsync = resourceCode => {
    return serviceAPI.get('/operations/api/v5/resource/get', {
        content_code: resourceCode
    }, config.apiCache);
};

module.exports = {
    getResourceAsync
};