增加操作日志查看界面

This commit is contained in:
GoEdgeLab
2020-11-10 20:30:55 +08:00
parent c3981b9811
commit 1d1cebbe47
7 changed files with 129 additions and 19 deletions

View File

@@ -59,3 +59,11 @@ func (this *UserDAO) FindEnabledUser(id uint32) (*User, error) {
}
return result.(*User), err
}
// 获取管理员名称
func (this *UserDAO) FindUserFullname(userId int64) (string, error) {
return this.Query().
Pk(userId).
Result("fullname").
FindStringCol("")
}