2.7.0Beta Bug修复 (#1826)
* feature:调整package注入路由方法 * feature:调整package回滚路由方法 * feature:调整创建自动化代码enter重复import的问题 * feature:调整package创建时enter的问题 * feature:调整package回滚问题
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user