docs: log的save功能注释

This commit is contained in:
李放 2017-07-24 12:25:46 +08:00
parent 285e7eadc8
commit 861143fe9e

View File

@ -18,6 +18,12 @@ class logModel extends baseModel {
}
}
/**
* @param {String} title log标题
* @param {String} content log内容
* @param {Enum} type log类型 ['user', 'group', 'interface', 'project', 'other']
* @param {Number} uid 用户id
*/
async save(data) {
let userInst = yapi.getInst(userModel);
let username = await userInst.findById(data.uid);