This commit is contained in:
laodaming
2023-11-07 18:40:24 +08:00
parent d42437d63b
commit 11096ad67f
3 changed files with 4 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ type FsFeishuUser struct {
EmployeeNo *string `gorm:"default:'';" json:"employee_no"` //
EmployeeType *int64 `gorm:"default:0;" json:"employee_type"` // 0:未设置 1正式员工 2实习生 3外包 4劳务 5顾问
Orders *[]byte `gorm:"default:'';" json:"orders"` //
JoinTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"join_time"` //
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
}

View File

@@ -26,5 +26,6 @@ func (u *FsFeishuUserModel) CreateOrUpdate(ctx context.Context, appId, openId st
}
return err
}
data.Ctime = nil
return u.Update(ctx, data)
}