mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-03 07:00:26 +08:00
增加操作日志查看界面
This commit is contained in:
@@ -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("")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user