module.exports = function (data) {
    return {
        authorId: data.authorId,
        title: data.title,
        content: data.content,
        accessNum: 0,
        top: false,//置顶
        fine: false,//加精
        createTime: Date.now(),
        updateTime: Date.now()
    }
}
@@ -1,38 +1,430 @@
-module.exports = function (data) %7B
+'use strict';%0A%0Aconst %7BisLength%7D = require('validator');%0A%0Afunction _vaildator(data) %7B%0A    let %7Btitle, content%7D = data;%0A    console.log(title,content)%0A    return title && content && isLength(title, %7B%0A        min: 5,%0A        max: 20%0A    %7D) && isLength(content, %7B%0A        min: 20,%0A        max: 1000%0A    %7D)%0A%7D%0A%0Amodule.exports = function (data) %7B%0A    if (!_vaildator(data)) %7B%0A        throw new Error(%22Topic actor create fail%22)%0A    %7D;
 %0A   
@@ -565,16 +565,17 @@
 : false,
+ 
 //%E7%BD%AE%E9%A1%B6%0A   
@@ -591,16 +591,17 @@
 : false,
+ 
 //%E5%8A%A0%E7%B2%BE%0A   

add Topic vaildator