common.js
438 Bytes
/**
* common controller
* @author: yyq<yanqing.yang@yoho.cn>
* @date: 2016/08/03
*/
'use strict';
const common = require('../models/common');
/**
* 获取banner
* @function getBanner
* @return { Object } 银行列表
*/
const getBanner = (req, res, next) => {
const code = req.query.code;
common.getBannerData(code).then(result => {
res.json(result);
}).catch(next);
};
module.exports = {
getBanner
};