mirror of
				https://github.com/langhuihui/monibuca.git
				synced 2025-10-31 20:32:34 +08:00 
			
		
		
		
	feat: console add task tree ui
This commit is contained in:
		
							
								
								
									
										19
									
								
								plugin/monitor/pkg/schema-task.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								plugin/monitor/pkg/schema-task.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| package monitor | ||||
|  | ||||
| import ( | ||||
| 	"time" | ||||
| ) | ||||
|  | ||||
| type Task struct { | ||||
| 	ID          uint32 `gorm:"primarykey"` | ||||
| 	CreatedAt   time.Time | ||||
| 	StartTime   time.Time | ||||
| 	OwnerType   string | ||||
| 	TaskType    byte | ||||
| 	Description string | ||||
| 	Reason      string | ||||
| } | ||||
|  | ||||
| func (i *Task) GetKey() uint32 { | ||||
| 	return i.ID | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 langhuihui
					langhuihui