Commit 8b8822c7 authored by Bright1996's avatar Bright1996

用户行为审计调整

parent 1cfccb42
...@@ -10,6 +10,7 @@ type LogManagementRep struct { ...@@ -10,6 +10,7 @@ type LogManagementRep struct {
Name string `json:"name"` // 所属组织名称 Name string `json:"name"` // 所属组织名称
SystemAccount string `json:"system_account" xorm:"system_account"` // 系统账号 SystemAccount string `json:"system_account" xorm:"system_account"` // 系统账号
Phone string `json:"phone" xorm:"phone"` // 联系人电话 Phone string `json:"phone" xorm:"phone"` // 联系人电话
ContactPhone string `json:"contact_phone" xorm:"contact_phone"`
//IsAdmin string `json:"is_admin" xorm:"is_admin"` // 用户类型 (1.业务系统账号 2.组织管理员账号 3.平台用户账号 4.超级管理员) //IsAdmin string `json:"is_admin" xorm:"is_admin"` // 用户类型 (1.业务系统账号 2.组织管理员账号 3.平台用户账号 4.超级管理员)
LastAccessTimes jsontime.Time `json:"-" xorm:"last_access_time"` // 用户最后访问时间 LastAccessTimes jsontime.Time `json:"-" xorm:"last_access_time"` // 用户最后访问时间
LastAccessTime jsontime.Time `json:"last_access_time" xorm:"-"` // 用户最后访问时间 LastAccessTime jsontime.Time `json:"last_access_time" xorm:"-"` // 用户最后访问时间
......
...@@ -295,6 +295,7 @@ func (s *LogManagement) LogUserAccountAuditList(params *request.LogManagementLis ...@@ -295,6 +295,7 @@ func (s *LogManagement) LogUserAccountAuditList(params *request.LogManagementLis
active := getActivity(time.Time(logManagementRep[k].LastAccessTimes)) active := getActivity(time.Time(logManagementRep[k].LastAccessTimes))
logManagementRep[k].Active = active logManagementRep[k].Active = active
logManagementRep[k].LastAccessTime = logManagementRep[k].LastAccessTimes logManagementRep[k].LastAccessTime = logManagementRep[k].LastAccessTimes
logManagementRep[k].ContactPhone = logManagementRep[k].Phone
} }
return logManagementRep, count, nil return logManagementRep, count, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment