(_ *gorm.DB)
| 85 | } |
| 86 | |
| 87 | func (lock *SystemTaskLock) BeforeCreate(_ *gorm.DB) error { |
| 88 | if lock.UpdatedAt == 0 { |
| 89 | lock.UpdatedAt = common.GetTimestamp() |
| 90 | } |
| 91 | return nil |
| 92 | } |
| 93 | |
| 94 | func GenerateSystemTaskID() (string, error) { |
| 95 | key, err := common.GenerateRandomCharsKey(32) |
nothing calls this directly
no test coverage detected