mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
docs: log的save功能注释
This commit is contained in:
parent
285e7eadc8
commit
861143fe9e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user