refactor: reorder fields in Spider struct for improved readability

This commit is contained in:
Marvin Zhang
2025-02-26 22:07:34 +08:00
parent 3237923f02
commit fae5c62b0a

View File

@@ -27,10 +27,9 @@ type Spider struct {
Stat *SpiderStat `json:"stat,omitempty" bson:"-"`
// execution
Cmd string `json:"cmd" bson:"cmd"` // execute command
Param string `json:"param" bson:"param"` // default task param
Priority int `json:"priority" bson:"priority"`
AutoInstall bool `json:"auto_install" bson:"auto_install"`
Cmd string `json:"cmd" bson:"cmd"` // execute command
Param string `json:"param" bson:"param"` // default task param
Priority int `json:"priority" bson:"priority"`
}
type SpiderTemplateParams struct {