Skip to content

Commit 5bb5a54

Browse files
committed
Refactor code
1 parent f300d86 commit 5bb5a54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ type UserInfo struct {
1717
SuccessTime *time.Time `yaml:"success_time" mapstructure:"success_time" json:"successTime,omitempty" gorm:"column:success_time" bson:"successTime,omitempty" dynamodbav:"successTime,omitempty" firestore:"successTime,omitempty"`
1818
FailTime *time.Time `yaml:"fail_time" mapstructure:"fail_time" json:"failTime,omitempty" gorm:"column:fail_time" bson:"failTime,omitempty" dynamodbav:"failTime,omitempty" firestore:"failTime,omitempty"`
1919
FailCount *int `yaml:"fail_count" mapstructure:"fail_count" json:"failCount,omitempty" gorm:"column:fail_count" bson:"failCount,omitempty" dynamodbav:"failCount,omitempty" firestore:"failCount,omitempty"`
20-
PasswordChangedTime *time.Time `yaml:"password_changed_time" mapstructure:"password_changed_time" json:"passwordChangedTime,omitempty" gorm:"column:passwordchangedtime" bson:"passwordChangedTime,omitempty" dynamodbav:"passwordChangedTime,omitempty" firestore:"passwordChangedTime,omitempty"`
20+
PasswordChangedTime *time.Time `yaml:"password_changed_time" mapstructure:"password_changed_time" json:"passwordChangedTime,omitempty" gorm:"column:password_changed_time" bson:"passwordChangedTime,omitempty" dynamodbav:"passwordChangedTime,omitempty" firestore:"passwordChangedTime,omitempty"`
2121
MaxPasswordAge *int32 `yaml:"max_password_age" mapstructure:"max_password_age" json:"maxPasswordAge,omitempty" gorm:"column:max_password_age" bson:"maxPasswordAge,omitempty" dynamodbav:"maxPasswordAge,omitempty" firestore:"maxPasswordAge,omitempty"`
22-
UserType *string `yaml:"user_type" mapstructure:"user_type" json:"userType,omitempty" gorm:"column:usertype" bson:"userType,omitempty" dynamodbav:"userType,omitempty" firestore:"userType,omitempty"`
22+
UserType *string `yaml:"user_type" mapstructure:"user_type" json:"userType,omitempty" gorm:"column:user_type" bson:"userType,omitempty" dynamodbav:"userType,omitempty" firestore:"userType,omitempty"`
2323
Roles []string `yaml:"roles" mapstructure:"roles" json:"roles,omitempty" gorm:"column:roles" bson:"roles,omitempty" dynamodbav:"roles,omitempty" firestore:"roles,omitempty"`
2424
Privileges []string `yaml:"privileges" mapstructure:"privileges" json:"privileges,omitempty" gorm:"column:privileges" bson:"privileges,omitempty" dynamodbav:"privileges,omitempty" firestore:"privileges,omitempty"`
2525
AccessDateFrom *time.Time `yaml:"access_date_from" mapstructure:"access_date_from" json:"accessDateFrom,omitempty" gorm:"column:access_date_from" bson:"accessDateFrom,omitempty" dynamodbav:"accessDateFrom,omitempty" firestore:"accessDateFrom,omitempty"`

0 commit comments

Comments
 (0)