feat: add notify icon read
This commit is contained in:
@@ -39,16 +39,16 @@ func ToTaskVO(task *models.Task) *TaskVO {
|
||||
return &TaskVO{
|
||||
ID: task.ID,
|
||||
Name: task.Name,
|
||||
Command: task.Command,
|
||||
Command: string(task.Command),
|
||||
Tags: task.Tags,
|
||||
Type: task.Type,
|
||||
TriggerType: task.TriggerType,
|
||||
Config: task.Config,
|
||||
Config: string(task.Config),
|
||||
Schedule: task.Schedule,
|
||||
Timeout: task.Timeout,
|
||||
WorkDir: task.WorkDir,
|
||||
CleanConfig: task.CleanConfig,
|
||||
Envs: task.Envs,
|
||||
Envs: string(task.Envs),
|
||||
Languages: task.Languages,
|
||||
AgentID: task.AgentID,
|
||||
Enabled: task.Enabled,
|
||||
@@ -112,15 +112,15 @@ func ToTaskLogVO(log *models.TaskLog) *TaskLogVO {
|
||||
ID: log.ID,
|
||||
TaskID: log.TaskID,
|
||||
AgentID: log.AgentID,
|
||||
Command: log.Command,
|
||||
Error: log.Error,
|
||||
Command: string(log.Command),
|
||||
Error: string(log.Error),
|
||||
Status: log.Status,
|
||||
Duration: log.Duration,
|
||||
ExitCode: log.ExitCode,
|
||||
StartTime: log.StartTime,
|
||||
EndTime: log.EndTime,
|
||||
CreatedAt: log.CreatedAt,
|
||||
Output: log.Output,
|
||||
Output: string(log.Output),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user