fix: remark get and set #100

This commit is contained in:
duorameng
2026-05-12 16:27:07 +08:00
parent 2b0f37b7ea
commit e37deac281
3 changed files with 12 additions and 6 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
type TaskVO struct {
ID string `json:"id"`
Name string `json:"name"`
Remark string `json:"remark"`
Command string `json:"command"`
PreCommand string `json:"pre_command"`
PostCommand string `json:"post_command"`
@@ -45,6 +46,7 @@ func ToTaskVO(task *models.Task) *TaskVO {
return &TaskVO{
ID: task.ID,
Name: task.Name,
Remark: task.Remark,
Command: string(task.Command),
PreCommand: string(task.PreCommand),
PostCommand: string(task.PostCommand),