2.7.0Beta Bug修复 (#1826)

* feature:调整package注入路由方法

* feature:调整package回滚路由方法

* feature:调整创建自动化代码enter重复import的问题

* feature:调整package创建时enter的问题

* feature:调整package回滚问题
This commit is contained in:
PiexlMax(奇淼
2024-07-23 00:19:21 +08:00
committed by GitHub
parent 39be2d0351
commit b3a0f187d7
2 changed files with 10 additions and 10 deletions

View File

@@ -114,9 +114,7 @@ func (s *autoCodeHistory) RollBack(ctx context.Context, info request.SysAutoHist
var injection ast.Ast
switch key {
case ast.TypePackageApiEnter, ast.TypePackageRouterEnter, ast.TypePackageServiceEnter:
var entity ast.PackageEnter
_ = json.Unmarshal([]byte(value), &entity)
injection = &entity
case ast.TypePackageApiModuleEnter, ast.TypePackageRouterModuleEnter, ast.TypePackageServiceModuleEnter:
var entity ast.PackageModuleEnter
_ = json.Unmarshal([]byte(value), &entity)