chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -56,7 +56,7 @@ func (a agentToolVersionPO) ToDO() *entity.ToolInfo {
}
}
// TODO(@maronghong): 简化查询代码,封装查询条件
// TODO (@maronghong): Simplify query code and encapsulate query conditions
func (at *AgentToolVersionDAO) GetWithToolName(ctx context.Context, agentID int64, toolName string, agentVersion *string) (tool *entity.ToolInfo, exist bool, err error) {
table := at.query.AgentToolVersion

View File

@@ -129,7 +129,7 @@ func parseCURL(_ context.Context, rawCURL string) (req *curlRequest, err error)
Method: "",
Header: http.Header{},
Query: url.Values{},
Body: map[string]any{}, // TODO(@maronghong): 支持 array
Body: map[string]any{}, // TODO (@maronghong): support array
dataToQuery: false,
}
@@ -559,7 +559,7 @@ func parseRequestToBodySchemaRef(ctx context.Context, desc string, value any) (*
}
func curlBodyToOpenAPI(ctx context.Context, mediaType string, bodyValue any, op *openapi3.Operation) (newOP *openapi3.Operation, err error) {
bodyValue, ok := bodyValue.(map[string]any) // TODO(@maronghong): 支持 array
bodyValue, ok := bodyValue.(map[string]any) // TODO (@maronghong): support array
if !ok {
return nil, errorx.New(errno.ErrPluginConvertProtocolFailed, errorx.KV(errno.PluginMsgKey,
"request body only supports 'object' type"))