currency.js 448 Bytes
/**
 * 个人中心我的有货币 controller
 * @author: weiqingting<qingting.wei@yoho.cn>
 * @date: 2016/05/16
 */
'use strict';
const currencyModel = require('../models/currency-model');

const index = (req, res, next)=>{
    let uid = req.user.uid;

    currencyModel.currencyData(uid, req.query).then(result => {
        res.render('currency', {
            content: result
        });
    }).catch(next);

};

module.exports = {
    index
};