chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -274,7 +274,7 @@ func (p *pluginServiceImpl) UpdateDraftPluginWithCode(ctx context.Context, req *
|
||||
}, e
|
||||
})
|
||||
|
||||
// 1. 删除 tool -> 关闭启用
|
||||
// 1. Delete tool - > Turn off Enable
|
||||
for api, oldTool := range oldDraftToolsMap {
|
||||
_, ok := apiSchemas[api]
|
||||
if !ok {
|
||||
@@ -286,7 +286,7 @@ func (p *pluginServiceImpl) UpdateDraftPluginWithCode(ctx context.Context, req *
|
||||
newDraftTools := make([]*entity.ToolInfo, 0, len(apis))
|
||||
for api, newOp := range apiSchemas {
|
||||
oldTool, ok := oldDraftToolsMap[api]
|
||||
if ok { // 2. 更新 tool -> 覆盖
|
||||
if ok { // 2. Update tool - > Overlay
|
||||
oldTool.ActivatedStatus = ptr.Of(model.ActivateTool)
|
||||
oldTool.Operation = newOp
|
||||
if needResetDebugStatusTool(ctx, newOp, oldTool.Operation) {
|
||||
@@ -295,7 +295,7 @@ func (p *pluginServiceImpl) UpdateDraftPluginWithCode(ctx context.Context, req *
|
||||
continue
|
||||
}
|
||||
|
||||
// 3. 新增 tool
|
||||
// 3. New tools
|
||||
newDraftTools = append(newDraftTools, &entity.ToolInfo{
|
||||
PluginID: req.PluginID,
|
||||
ActivatedStatus: ptr.Of(model.ActivateTool),
|
||||
|
||||
Reference in New Issue
Block a user