fix(api): close session when terminal away & refactor(api): deploy

This commit is contained in:
ttk
2024-09-04 14:56:39 +08:00
parent 171db09600
commit cbaff314b7
25 changed files with 174 additions and 177 deletions

View File

@@ -60,6 +60,13 @@ var (
d.AssetCount = m[d.Id]
}
},
func(ctx *gin.Context, data []*model.Gateway) {
for _, d := range data {
d.Password = util.DecryptAES(d.Password)
d.Pk = util.DecryptAES(d.Pk)
d.Phrase = util.DecryptAES(d.Phrase)
}
},
}
gatewayDcs = []deleteCheck{
func(ctx *gin.Context, id int) {