coupon-service.js 332 Bytes
/**
 * Created by TaoHuang on 2016/10/28.
 */

'use strict';

const api = require('./coupon-api');
const _ = require('lodash');
const decrypt = _.partial(global.yoho.crypto.decrypt, null);

const acquireAsync = _.overArgs(api.acquireAsync, [decrypt, _1 => _1]);

module.exports = {
    acquireAsync,
    listAsync: api.listAsync
};