添加清空网关配置功能,更新主程序以支持清空命令

This commit is contained in:
2025-08-11 09:34:13 +08:00
parent 3782feaf85
commit 74ac39a926
5 changed files with 74 additions and 8 deletions

View File

@@ -7,15 +7,14 @@ import (
"zzman/clients/jd"
"zzman/model"
u "zzman/util"
"gorm.io/gorm"
)
type UpdateArgs struct {
Mock bool
}
func Update(tx *gorm.DB, args ...UpdateArgs) error {
func Update(args ...UpdateArgs) error {
var tx = model.DB
var arg UpdateArgs
if len(args) > 0 {
arg = args[0]