mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	fix: model.FillBaseInfo遗漏调整完善等
This commit is contained in:
		@@ -21,20 +21,10 @@ type MachineCronJob struct {
 | 
			
		||||
 | 
			
		||||
// 计划任务与机器关联信息
 | 
			
		||||
type MachineCronJobRelate struct {
 | 
			
		||||
	model.DeletedModel
 | 
			
		||||
	model.CreateModel
 | 
			
		||||
 | 
			
		||||
	CronJobId  uint64
 | 
			
		||||
	MachineId  uint64
 | 
			
		||||
	Creator    string
 | 
			
		||||
	CreatorId  uint64
 | 
			
		||||
	CreateTime *time.Time
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *MachineCronJobRelate) SetBaseInfo(gt model.IdGenType, la *model.LoginAccount) {
 | 
			
		||||
	now := time.Now()
 | 
			
		||||
	m.CreateTime = &now
 | 
			
		||||
	m.Creator = la.Username
 | 
			
		||||
	m.CreatorId = la.Id
 | 
			
		||||
	CronJobId uint64
 | 
			
		||||
	MachineId uint64
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 机器任务执行记录
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user