🐛 fix: edite user failed (#150)

This commit is contained in:
Martial BE 2024-04-15 09:43:16 +08:00
parent 2b17c98b34
commit bbaa4eec4b
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -31,7 +31,7 @@ type User struct {
AffCode string `json:"aff_code" gorm:"type:varchar(32);column:aff_code;uniqueIndex"`
InviterId int `json:"inviter_id" gorm:"type:int;column:inviter_id;index"`
CreatedTime int64 `json:"created_time" gorm:"bigint"`
DeletedAt gorm.DeletedAt `gorm:"index"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}
type UserUpdates func(*User)