suggestFeedBack.js
415 Bytes
/**
* 意见反馈 controller
* @return jsonp
* @author: gxh<xuhui.ge@yoho.cn>
* @date: 2017/04/06
*/
'use strict';
const suggestFeedBackModel = require('../models/suggestFeedBack-service');
const getFeedBack = (req, res, next) => {
req.ctx(suggestFeedBackModel).suggestFeedBack(req.user.uid).then((result) => {
res.jsonp(result);
}).catch(next);
};
module.exports = {
getFeedBack
};