From fae5c62b0ae27b1494de5bd4b0c3a689310a9786 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 26 Feb 2025 22:07:34 +0800 Subject: [PATCH] refactor: reorder fields in Spider struct for improved readability --- core/models/models/spider.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/models/models/spider.go b/core/models/models/spider.go index ddc0be16..916a6f53 100644 --- a/core/models/models/spider.go +++ b/core/models/models/spider.go @@ -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 {