currency.js 445 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 = '8041246';

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

};

module.exports = {
    index
};