refactor(.woodpecker): 移除全局配置变量并优化SSH连接设置 移除了全局配置变量,改用YAML锚点引用方式统一管理SSH连接参数, 提高配置的可维护性并减少重复代码
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package coolconfig
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
@@ -44,6 +46,8 @@ type ServerList struct {
|
||||
Owner uint32 `gorm:"comment:'服务器属主'" json:"owner"`
|
||||
Desc string `gorm:"comment:'服务器描述'" json:"desc"`
|
||||
OldScreen string `gorm:"comment:'服务器screen参数'" json:"old_screen"`
|
||||
//到期时间ServerList
|
||||
ExpireTime time.Time `gorm:"default:0;comment:'到期时间'" json:"expire_time"`
|
||||
}
|
||||
|
||||
// OSS相关配置
|
||||
|
||||
Reference in New Issue
Block a user