<commit_before>/**
 * Created by lewiskit on 15/7/7.
 * 邮件审核
 */

var proxy = require('../proxy');
var MailProxy = proxy.Mail;


exports.getCheckList = function (req, res, next) {
    var user = req.body.user;
    var page = req.body.page;

    var query = {checkMan: user._id, isHandled: true};

    MailProxy.getCheckMailList(query, page, function (err, results, pageCount, itemCount) {
        if (err) return next(err);

    });




};


<commit_msg>更改model<commit_after>/**
 * Created by lewiskit on 15/7/7.
 * 邮件审核
 */

var proxy = require('../proxy');
var MailProxy = proxy.Mail;
var moment = require('moment');


exports.getCheckList = function (req, res, next) {
    var user = req.body.user;
    var page = req.body.page;

    var query = {checkMan: user._id, isHandled: true};

    MailProxy.getCheckMailList(query, page, function (err, results, pageCount, itemCount) {
        if (err) return next(err);

        var data = {};
        data[pageCount] = pageCount;

        var list = [];

        for (var item in results) {
            list.push({
                mailId: item._id,
                title: item.subject,
                senderName: item.from,
                receiveTime: item.receivedDate,
                fromNow: moment(results[i].receivedDate).locale('zh-cn').toNow()
            });
        }

    });




};



{'fraction_non_alphanumeric': 0.14200743494423793, 'fraction_numerical': 0.005947955390334572, 'mean_word_length': 2.2278177458033572, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '788959', 'n_tokens_mistral': 457, 'n_tokens_neox': 431, 'n_words': 107}