Blame view

apps/product/models/coupon-service.js 332 Bytes
htoooth authored
1 2 3
/**
 * Created by TaoHuang on 2016/10/28.
 */
htoooth authored
4 5 6 7

'use strict';

const api = require('./coupon-api');
htoooth authored
8 9
const _ = require('lodash');
const decrypt = _.partial(global.yoho.crypto.decrypt, null);
htoooth authored
10
htoooth authored
11
const acquireAsync = _.overArgs(api.acquireAsync, [decrypt, _1 => _1]);
htoooth authored
12 13 14 15 16

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