diff --git a/api/v1/login_log.go b/api/v1/login_log.go index 8dca984..6c012d9 100644 --- a/api/v1/login_log.go +++ b/api/v1/login_log.go @@ -72,6 +72,7 @@ type LoginLogItem struct { Error string `json:"error"` // 错误信息 CreateUser string `json:"createUser"` // 创建人 CreateTime *gtime.Time `json:"createTime"` // 创建时间 + UpdateTime *gtime.Time `json:"updateTime"` // 更新时间 } // LoginLogPageReq 登录日志分页请求 diff --git a/api/v1/operation_log.go b/api/v1/operation_log.go index 91fce15..2d6902b 100644 --- a/api/v1/operation_log.go +++ b/api/v1/operation_log.go @@ -72,6 +72,7 @@ type OperLogItem struct { Error string `json:"error"` // 错误信息 CreateUser string `json:"createUser"` // 操作人 CreateTime *gtime.Time `json:"createTime"` // 创建时间 + UpdateTime *gtime.Time `json:"updateTime"` // 更新时间 } // OperLogPageReq 操作日志分页请求 diff --git a/internal/logic/login_log.go b/internal/logic/login_log.go index 0cfe5f5..7a92ce9 100644 --- a/internal/logic/login_log.go +++ b/internal/logic/login_log.go @@ -146,5 +146,6 @@ func (s *sLoginLog) toItem(ctx context.Context, r gdb.Record) v1.LoginLogItem { StatusText: DictGetText(ctx, loginLogSerializeMaps["status"], r["status"].Int()), Error: r["error"].String(), CreateTime: r["create_time"].GTime(), + UpdateTime: r["update_time"].GTime(), } }