feat: implement data import/export and optimize terminal UX

This commit is contained in:
duorameng
2026-06-28 20:46:00 +08:00
parent 33ea2fda7b
commit 81e921fa73
13 changed files with 856 additions and 102 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ func (ec *EnvController) CreateEnvVar(c *gin.Context) {
}
if req.Type == "" {
req.Type = "normal"
req.Type = constant.EnvTypeNormal
}
hidden := true
@@ -187,7 +187,7 @@ func (ec *EnvController) UpdateEnvVar(c *gin.Context) {
}
if req.Type == "" {
req.Type = "normal"
req.Type = constant.EnvTypeNormal
}
// 对于更新,获取现有数据
@@ -323,7 +323,7 @@ func (ec *EnvController) BulkSaveEnv(c *gin.Context) {
userID := c.GetString("userID")
for _, req := range reqs {
if req.Type == "secret" {
if req.Type == constant.EnvTypeSecret {
continue // 二次严苛拦截,机密变量不应下发/保存
}