rimashah25 commented on a change in pull request #6009:
URL: https://github.com/apache/trafficcontrol/pull/6009#discussion_r668244287
##########
File path: lib/go-tc/users.go
##########
@@ -107,20 +109,27 @@ type User struct {
commonUserFields
}
-// UserV40 contains ChangeLogCount field
+// UserV40 contains ChangeLogCount field.
type UserV40 struct {
User
- ChangeLogCount *int `json:"changeLogCount" db:"change_log_count"`
+ ChangeLogCount *int `json:"changeLogCount"
db:"change_log_count"`
+ LastAuthenticated *TimeNoMod `json:"lastAuthenticated"
db:"last_authenticated"`
}
-// UserCurrent represents the profile for the authenticated user
+// UserCurrent represents the profile for the authenticated user.
type UserCurrent struct {
UserName *string `json:"username"`
LocalUser *bool `json:"localUser"`
RoleName *string `json:"roleName"`
commonUserFields
}
+// UserCurrentV40 contains LastAuthenticated field.
+type UserCurrentV40 struct {
+ UserCurrent
+ LastAuthenticated *TimeNoMod `json:"lastAuthenticated"
db:"last_authenticated"`
Review comment:
ok.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]