Browse Source

改造登录流程

kobe6258 7 months ago
parent
commit
b004eeb36e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/user/template_user.go

+ 1 - 0
models/user/template_user.go

@@ -31,6 +31,7 @@ type TemplateUser struct {
 
 func (t *TemplateUser) BeforeCreate(tx *gorm.DB) (err error) {
 	t.CreatedTime = time.Now()
+	t.LoginStatus = Logout
 	t.IsDeleted = NotDeleted
 	return
 }